[OpenSIPS-Users] How to printout certain variables?

Dmitry Kravchenko dimskraft at gmail.com
Tue Oct 19 14:45:17 CEST 2010


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