Hello everyone,
I’m trying to get the host part from the contact header in the sip invite packet.
Following is the contact header format:
Contact: <sip:user_name@192.168.1.1:5060>
What I want as result is 192.168.1.1
I searched among the pseudovairables and found $ct variable which reference to the body of contact header. (<sip:user_name@192.168.1.1:5060>)
Is there a way to get directly the host (192.168.1.1) without applying transformation at the level of $ct.
If not what transformation can achieve it.
Thanks in advance.
Regards,
Ali