[Users] Variables

Douglas Garstang dgarstang at oneeighty.com
Thu Dec 15 16:09:46 CET 2005


Oh... those AVP's again which I still completely don't understand....

-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists at pernau.at]
Sent: Thursday, December 15, 2005 3:27 AM
To: Douglas Garstang
Cc: users at openser.org
Subject: Re: [Users] Variables


I think xlog can log AVPs. Thus write the callid into an AVP and xlog 
this AVP. I think you can rewrite the AVP using regexp, thus it should 
be possible to shorten the callid.

klaus

Douglas Garstang wrote:
> All,
>  
> I can't find any documentation of OpenSER use of variables. I'm sending a lot of info to syslog with xlog(), and with multiple threads (processes?) and multiple calls running, all the output is out of sequence. As a result, I'd like to prefix the debug output with the call-id. The call-id however is very long and I'd like to cut it down and only display a portion of it.
>  
> How can I extract a string from a SIP message, cut it up, extract the portion I want, and print that portion? OpenSER doesn't seem to have any concept of assigning variables by:
>  
> variable = value
>  
> Thanks,
> Doug.
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list