[SR-Users] $ua in on_reply route not set?

Bernhard Suttner bernhard.suttner at winet.ch
Mon Jan 24 18:46:46 CET 2011


Hi,

found the problem. The device does sometimes use User-Agent and sometimes Server. 

Is it better to use $hdr() or the Search() function?

I use this to check for the User-Agent and then to do a "fix_nated_sdp()" (in route[] and onreply[]) because I am not really sure, if the fix_nated_sdp() could break something. Or should kamailio break nothing here? Sometimes the User-Agent/Server is missing in Session-Progress 183. Therefore a "global" fix_nated_sdp() would be nice to have.

Best regards,
Bernhard

----- Original Message -----
From: Daniel-Constantin Mierla [mailto:miconda at gmail.com]
To: Bernhard Suttner [mailto:bernhard.suttner at winet.ch]
Cc: sr-users at lists.sip-router.org
Sent: Mon, 24 Jan 2011 17:09:12 +0100
Subject: Re: [SR-Users] $ua in on_reply route not set?


> Hello,
> 
> On 1/24/11 5:03 PM, Bernhard Suttner wrote:
> > Hi,
> >
> > could it be, that the $ua pseudo variable is not set within in a onreply
> route? (Version 3.1).
> no, should be set, there was no change in this regard for quite long 
> time. Can you sent the sip reply plus log with debug=3?
> >
> > What is the best alternative for that? Search()?
> 
> The alternative is $hdr(User-Agent) which is practically returning the 
> same value as $ua, using generic header search mechanism.
> 
> Cheers,
> Daniel
> 
> -- 
> Daniel-Constantin Mierla
> http://www.asipto.com
> 
> 



More information about the sr-users mailing list