also, the select var should give it:
$sel(contact.uri.host)
or if you want the port as well, then $sel(contact.uri.hostport)
Cheers, Daniel
On 8/31/10 5:54 PM, peter_green lion wrote:
thanks Marius zbihlei, I have got the ip that i need. sincerely.
Date: Tue, 31 Aug 2010 11:43:45 +0300 From: marius.zbihlei@1and1.ro To: betergreen@live.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] help to get ip from contact header in INVITE
sip message.
peter_green lion wrote:
hi all, please help me to get ip add from Contact header in INVITE message. i see that :
ct =sip:101@192.168.1.10:63027;rinstance=85f97591c218086a
have the ip or domain ("192.168.1.10"). so please suggest to get this ip. thanks so much. beter green
Hello
Check the uri trnasformation
http://kamailio.org/dokuwiki/doku.php/transformations:1.5.x#uri_transformati...
something lile $(ct{uri.host}) should do the trick.
Cheers
Marius
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