[SR-Users] help to get ip from contact header in INVITE sip message.

marius zbihlei marius.zbihlei at 1and1.ro
Tue Aug 31 10:43:45 CEST 2010


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 at 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_transformations 


something lile $(ct{uri.host}) should do the trick.

Cheers

Marius



More information about the sr-users mailing list