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

peter_green lion betergreen at live.com
Wed Sep 1 05:44:47 CEST 2010



thanks Daniel.

Thanhtruong
Date: Tue, 31 Aug 2010 23:33:33 +0200
From: miconda at gmail.com
To: betergreen at live.com
CC: marius.zbihlei at 1and1.ro; sr-users at lists.sip-router.org
Subject: Re: [SR-Users] help to get ip from contact header in INVITE sip message.



  


    
  
  
    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 at 1and1.ro

      > To: betergreen at live.com

      > CC: sr-users at 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 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

      
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users at lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

    
    

    -- 
Daniel-Constantin Mierla
http://www.asipto.com/
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100901/73e277cc/attachment.htm>


More information about the sr-users mailing list