[SR-Users] Setting Kamailio User-Agent dynamically

Errol Samuels ewsamuels at gmail.com
Fri Oct 3 17:04:55 CEST 2014


Hello All,

I am using Kamailio in front of Freeswitch and Kamailio is handling the
registrations then forwarding to Freeswitch and everything is working for
the most part.

However, there is niggling pain in the neck issue where the user's
User-Agent shows in Freeswitch as kamailio (4.0.6 (x86_64/linux))  instead
of the user's Real User-Agent I am trying to get Kamailio to pass the real
User-Agent of the user without success.

I am able to set a static User-Agent by doing this in the global section.

*user_agent_header = "User-Agent:  We love beer";*

However, I am unable to set it dynamically for example:


*user_agent_header = "User-Agent: " + $ua;*

With is one Kamailio doesn't even start so my syntax is probably wrong.

I also tried playing around with the textops module so I have ran out of
ideas

Any ideas?

Thanks in advance.

regards,

Errol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20141003/6bea4a6d/attachment.html>


More information about the sr-users mailing list