[OpenSER-Users] logging 'uri' and myself from openser.cfg

Christian Schlatter cs at unc.edu
Mon Oct 29 17:48:02 CET 2007


Gregorio,

Gregorio wrote:
> Hi all.
> 
>  
> 
> I am having some trouble with the sentence ‘if (uri==myself) ’ in the 
> config script. The REGISTER request URI is ‘sip:mydomain’ and ‘mydomain’ 
> is in my ‘hosts’ file and in the database table (‘domain’ table) but in 
> the log I can see that ‘(uri==myself)’ is false.

'myself' is not a script variable but a language construct and therefor 
cannot be logged with xlog. You should use the 'alias' core paremeter 
(http://www.openser.org/dokuwiki/doku.php/core-cookbook:1.2.x#alias) to 
add SIP domain aliases for your server. 'myself' does not look at the 
'domain' table.

The list of aliases is printed to stdout when you start openser.

/Christian


> 
> Someone can guess what is wrong?
> 
> Is it possible to log the values of ‘uri’ and ‘myself’ with xlog?
> 
>  
> 
> Thanks and best regards.
> 
> Gregorio.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users





More information about the sr-users mailing list