Hey community,
I'm trying to get a 2nd leg custom header value stored in my acc table.
Right now I'm appending the header with append_hf in a failure route and trying to use:
modparam("acc","db_extra","custom=$hdr(Custom)")
A sip trace shows the header was properly added and xlog output shows the proper $hdr(Custom) value just after I append the header, but the value doesn't show in acc.
Does acc only read from the INVITE of the incoming leg?
Any suggestions on how to get this 2nd leg INVITE header in acc is greatly appreciated.
Thanks in advance,
Ryan
It's also worth noting that I tried to use avp and it successfully added the custom value, but was causing Kamailio to crash once it tried to handle multiple calls at once.
I'm pretty green to Kamailio, so you'll have to pardon my inexperience on this probably pretty easy question.
On Fri, Mar 28, 2014 at 1:58 PM, Ryan Brindley ryan@straticsnetworks.comwrote:
Hey community,
I'm trying to get a 2nd leg custom header value stored in my acc table.
Right now I'm appending the header with append_hf in a failure route and trying to use:
modparam("acc","db_extra","custom=$hdr(Custom)")
A sip trace shows the header was properly added and xlog output shows the proper $hdr(Custom) value just after I append the header, but the value doesn't show in acc.
Does acc only read from the INVITE of the incoming leg?
Any suggestions on how to get this 2nd leg INVITE header in acc is greatly appreciated.
Thanks in advance,
Ryan
Should not crash, can you send the backtrace from the core dump? What version are you using?
Also, setting debug=3 in config file and sending the log messages will help.
Saving $avps() is something very common in my configs and haven't encountered any issues in the past years.
Cheers, Daniel
On 28/03/14 20:18, Ryan Brindley wrote:
It's also worth noting that I tried to use avp and it successfully added the custom value, but was causing Kamailio to crash once it tried to handle multiple calls at once.
I'm pretty green to Kamailio, so you'll have to pardon my inexperience on this probably pretty easy question.
On Fri, Mar 28, 2014 at 1:58 PM, Ryan Brindley <ryan@straticsnetworks.com mailto:ryan@straticsnetworks.com> wrote:
Hey community, I'm trying to get a 2nd leg custom header value stored in my acc table. Right now I'm appending the header with append_hf in a failure route and trying to use: modparam("acc","db_extra","custom=$hdr(Custom)") A sip trace shows the header was properly added and xlog output shows the proper $hdr(Custom) value just after I append the header, but the value doesn't show in acc. Does acc only read from the INVITE of the incoming leg? Any suggestions on how to get this 2nd leg INVITE header in acc is greatly appreciated. Thanks in advance, Ryan
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
I wasn't using msg_apply_changes and I could've been wrong that it showed up. That was yesterday when I was testing that. One of my tests though did get xlog to show the variable, but it could've been with avp.
I'll convert my configs back to using avp and begin testing again with multiple channels to see if it crashes again.
Ryan Brindley Software Development Officer Stratics Networks, Inc. 1.866.635.6918 x108
On Fri, Mar 28, 2014 at 2:30 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Should not crash, can you send the backtrace from the core dump? What version are you using?
Also, setting debug=3 in config file and sending the log messages will help.
Saving $avps() is something very common in my configs and haven't encountered any issues in the past years.
Cheers, Daniel
On 28/03/14 20:18, Ryan Brindley wrote:
It's also worth noting that I tried to use avp and it successfully added the custom value, but was causing Kamailio to crash once it tried to handle multiple calls at once.
I'm pretty green to Kamailio, so you'll have to pardon my inexperience on this probably pretty easy question.
On Fri, Mar 28, 2014 at 1:58 PM, Ryan Brindley <ryan@straticsnetworks.com
wrote:
Hey community,
I'm trying to get a 2nd leg custom header value stored in my acc table.
Right now I'm appending the header with append_hf in a failure route and trying to use:
modparam("acc","db_extra","custom=$hdr(Custom)")
A sip trace shows the header was properly added and xlog output shows the proper $hdr(Custom) value just after I append the header, but the value doesn't show in acc.
Does acc only read from the INVITE of the incoming leg?
Any suggestions on how to get this 2nd leg INVITE header in acc is greatly appreciated.
Thanks in advance,
Ryan
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference - April 2-4, 2014, Berlin, Germanyhttp://www.kamailioworld.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Okay, good news. After reverting back to using avp, I'm handling 1000+ ports without any issues. Not sure what was wrong during the previous test, but it doesn't appear to be here now.
Thanks for your help Daniel
Ryan
Ryan Brindley Software Development Officer Stratics Networks, Inc. 1.866.635.6918 x108
On Fri, Mar 28, 2014 at 2:36 PM, Ryan Brindley ryan@straticsnetworks.comwrote:
I wasn't using msg_apply_changes and I could've been wrong that it showed up. That was yesterday when I was testing that. One of my tests though did get xlog to show the variable, but it could've been with avp.
I'll convert my configs back to using avp and begin testing again with multiple channels to see if it crashes again.
Ryan Brindley Software Development Officer Stratics Networks, Inc. 1.866.635.6918 x108
On Fri, Mar 28, 2014 at 2:30 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Should not crash, can you send the backtrace from the core dump? What version are you using?
Also, setting debug=3 in config file and sending the log messages will help.
Saving $avps() is something very common in my configs and haven't encountered any issues in the past years.
Cheers, Daniel
On 28/03/14 20:18, Ryan Brindley wrote:
It's also worth noting that I tried to use avp and it successfully added the custom value, but was causing Kamailio to crash once it tried to handle multiple calls at once.
I'm pretty green to Kamailio, so you'll have to pardon my inexperience on this probably pretty easy question.
On Fri, Mar 28, 2014 at 1:58 PM, Ryan Brindley < ryan@straticsnetworks.com> wrote:
Hey community,
I'm trying to get a 2nd leg custom header value stored in my acc table.
Right now I'm appending the header with append_hf in a failure route and trying to use:
modparam("acc","db_extra","custom=$hdr(Custom)")
A sip trace shows the header was properly added and xlog output shows the proper $hdr(Custom) value just after I append the header, but the value doesn't show in acc.
Does acc only read from the INVITE of the incoming leg?
Any suggestions on how to get this 2nd leg INVITE header in acc is greatly appreciated.
Thanks in advance,
Ryan
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference - April 2-4, 2014, Berlin, Germanyhttp://www.kamailioworld.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
On 28/03/14 19:58, Ryan Brindley wrote:
Hey community,
I'm trying to get a 2nd leg custom header value stored in my acc table.
Right now I'm appending the header with append_hf in a failure route and trying to use:
modparam("acc","db_extra","custom=$hdr(Custom)")
A sip trace shows the header was properly added and xlog output shows the proper $hdr(Custom) value just after I append the header, but the value doesn't show in acc.
are you using msg_apply_changes()? If not, then the appended header should not show up in xlog()
Does acc only read from the INVITE of the incoming leg?
Yes, the $hdr(...) points to headers in incoming request.
Any suggestions on how to get this 2nd leg INVITE header in acc is greatly appreciated.
Store the value in an $avp(...) or $xavp(...) and use it for accounting.
Cheers, Daniel
Thanks in advance,
Ryan
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users