[SR-Users] getting source IP from Contact header

Ali Taher ataher at vanrise.com
Wed Mar 22 18:23:29 CET 2017

Hello everyone,


I'm trying to get the host part from the contact header in the sip invite


Following is the contact header format:

Contact: <sip:user_name at>


What I want as result is


I searched among the pseudovairables  and found $ct variable which reference
to the body of contact header. (<sip:user_name at>)


Is there a way to get directly the host ( without applying
transformation at the level of $ct.

If not what transformation can achieve it.


Thanks in advance.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170322/5b6f2012/attachment.html>

More information about the sr-users mailing list