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:mico...@gmail.com] To: Bernhard Suttner [mailto:bernhard.sutt...@winet.ch] Cc: sr-users@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 > > _______________________________________________ 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