[SR-Users] Retrieve last via IP from SIP MEssage

Adarsh Chauhan adarshchauhan at hotmail.com
Fri Jan 14 02:01:45 CET 2022

Hi All,

I have tried couple of methods to retrieve last via IP of SIP message but failed to retrieve it, trying to retrieve the source

- @hf_value.via[-1].host,
it simply prints the exact text back @hf_value.via[-1].host

- $sel(@hf_value.via[-1])
it doest give the IP but the entire via value

it also simply prints the exact text back @via[-1].host

Adarsh Chauha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220114/456d4168/attachment.htm>

More information about the sr-users mailing list