On 23.01.25 13:06, Benoit Panizzon wrote:
Hi Daniel
after lookup location call, the UA from register
is made available in
the $location_ua for the contact set in r-uri and
$(branch(location_ua)[INDEX]) that gives it for additional branches.
Maybe you can get it in branch route as well, if branch index is 0, then
is the r-uri, the next branches are built from additional branches after
lookup location.
Thank you!
$location_ua is correctly set in the branch route. This saves me having
to use the XAVP including associated database overhead.
Just test and be sure it is not always the ua header of the first
branch, I haven't analysed the code much, but it seemed to point to sip
msg filed, which is for first branch.
Cheers,
Daniel
[]
--
Daniel-Constantin Mierla (@
asipto.com)
twitter.com/miconda --
linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services --
asipto.com
Kamailio World Conference, May 12-13, 2025, Berlin --
kamailioworld.com