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.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Extract-information-from-invite-pack... Sent from the Users mailing list archive at Nabble.com.
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
Thanks. I need some more help. Can we put some comparisons on the values of these variables like if ("$ru"=="$fu") {xlog("both are same")}; If this is not the way then what is the way to do so ??
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Extract-information-from-invite-pack... Sent from the Users mailing list archive at Nabble.com.