[SR-Users] Extract information from invite packet

Daniel-Constantin Mierla miconda at gmail.com
Thu Jun 26 09:58:55 CEST 2014


Hello,

On 26/06/14 08:01, aawaise wrote:
> I want to log some information of callee from incoming invite packet. how can
> it be done. I want to get it logged in /var/log/messages.
> Any help will be appreciated.
>
the callee address is in R-URI and in a form that could be good in To 
header. To write to syslog, use xlog() function. For example:

xlog("R-URI is [$ru] and To-URI is [$tu]\n");

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda




More information about the sr-users mailing list