[OpenSIPS-Users] How to printout certain variables?

Anca Vamanu anca at opensips.org
Tue Oct 19 15:32:09 CEST 2010


Hi,

Those values - uri and myself can only be used for comparisons/tests, 
you can not print them. The uri is the same as $ru so you can print that 
and myself is the list of local IP addresses, hostnames  and DNS names( 
if you have auto_aliases=yes) and aliases ( set with the alias parameter 
in the global section of the script).

Regards,
-- 

Anca Vamanu
www.voice-system.ro




On 10/19/2010 03:45 PM, Dmitry Kravchenko wrote:
> Hi!
>
> Is there a way to printout (with xlog) certain variables, like myself,
> uri, msg:len and so on?
>
> I have tried the following ways, but failed:
>
>
>          #xlog("L_NOTICE", "DIMS: uri (" + $uri + ") == myself (" +
> $myself + " block...");
>
>          #xlog("L_NOTICE", "DIMS: uri (" + uri + ") == myself (" +
> myself + " block...");
>
>          #$var(myuri) = uri;
>          #$var(mymyself) = myself;
>          #xlog("L_NOTICE", "DIMS: uri ($var(myuri)) == myself
> ($var(mymyself))  block...");
>
>          #xlog("L_NOTICE", "DIMS: uri ($uri) == myself ($myself)  block...");
>
>          #xlog("L_NOTICE", "DIMS: uri ($var(uri)) == myself
> ($var(myself))  block...");
>
>          #$avp(myuri) = uri;
>          #$avp(mymyself) = myself;
>          #xlog("L_NOTICE", "DIMS: uri ($vap(myuri)) == myself
> ($avp(mymyself))  block...");
>
> All versions of code cause some error.
>
> Thanks.
>    



More information about the Users mailing list