You have to use event_route[tm:local-request] if you use uac module to send out new REGISTER.
Cheers,
Daniel
On 03/10/14 18:32, Errol Samuels wrote:
ErrolI also tried your last suggestion at the point when the registeris being forwarded to FS but it had no effectBR
# Forward REGISTER to Freeswitch
route[REGFWD] {
if(!is_method("REGISTER"))
{
return;
}
#if ( is_present_hf("User-Agent")) {
remove_hf("User-Agent");
append_hf("User-Agent: $ua\r\n");
#}
On Fri, Oct 3, 2014 at 5:08 PM, Rainer Piper <rainer.piper@soho-piper.de> wrote:
Am 03.10.2014 um 17:52 schrieb Errol Samuels:
Have you tried to remove the original hf (User-Agent) and set the new one like:Errolregards,Hi Rainer,Yes I did try user_agent_header = "User-Agent: $ua"; but it just passes "$ua" to Freeswitch rather than the value of $ua.
On Fri, Oct 3, 2014 at 4:32 PM, Rainer Piper <rainer.piper@soho-piper.de> wrote:
Am 03.10.2014 um 17:04 schrieb Errol Samuels:
have you tried ...However, I am unable to set it dynamically for example:I am able to set a static User-Agent by doing this in the global section.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.
user_agent_header = "User-Agent: We love beer";
user_agent_header = "User-Agent: " + $ua;
user_agent_header = "User-Agent: $ua";
?
remove_hf("User-Agent");
append_hf("User-Agent: $ua\r\n");
?
regards,
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
Thanks in advance.
Any ideas?
Errol
_______________________________________________ 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
--
Rainer Piper
Integration engineer
Koeslinstr. 56
53123 BONN
GERMANY
Phone: +49 228 97167161
P2P: sip:rainer@sip.soho-piper.de:5072 (pjsip-test)
XMPP: rainer@xmpp.soho-piper.de
_______________________________________________
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
_______________________________________________ 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
--
Rainer Piper
Integration engineer
Koeslinstr. 56
53123 BONN
GERMANY
Phone: +49 228 97167161
P2P: sip:rainer@sip.soho-piper.de:5072 (pjsip-test)
XMPP: rainer@xmpp.soho-piper.de
_______________________________________________
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
_______________________________________________ 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
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
_______________________________________________
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