<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>thanks Daniel.<br><br>Thanhtruong<br><hr id="stopSpelling">Date: Tue, 31 Aug 2010 23:33:33 +0200<br>From: miconda@gmail.com<br>To: betergreen@live.com<br>CC: marius.zbihlei@1and1.ro; sr-users@lists.sip-router.org<br>Subject: Re: [SR-Users] help to get ip from contact header in INVITE sip message.<br><br>

  
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
    
  
  
    also, the select var should give it:<br>
    <br>
    $sel(contact.uri.host)<br>
    <br>
    or if you want the port as well, then $sel(contact.uri.hostport)<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <br>
    On 8/31/10 5:54 PM, peter_green lion wrote:
    <blockquote cite="mid:SNT121-W157C4FBBACE17CAC89622ABC8A0@phx.gbl">
      <style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>
      <br>
      thanks Marius zbihlei,<br>
      I have got the ip that i need.<br>
      sincerely.<br>
      <br>
      &gt; Date: Tue, 31 Aug 2010 11:43:45 +0300<br>
      &gt; From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:marius.zbihlei@1and1.ro">marius.zbihlei@1and1.ro</a><br>
      &gt; To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:betergreen@live.com">betergreen@live.com</a><br>
      &gt; CC: <a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
      &gt; Subject: Re: [SR-Users] help to get ip from contact header in
      INVITE sip message.<br>
      &gt; <br>
      &gt; peter_green lion wrote:<br>
      &gt; &gt; hi all,<br>
      &gt; &gt; please help me to get ip add from Contact header in
      INVITE message.<br>
      &gt; &gt; i see that :<br>
      &gt; &gt;<br>
      &gt; &gt; ct
      =<a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:101@192.168.1.10:63027;rinstance=85f97591c218086a&gt;</a><br>
      &gt; &gt;<br>
      &gt; &gt; have the ip or domain ("192.168.1.10").<br>
      &gt; &gt; so please suggest to get this ip.<br>
      &gt; &gt; thanks so much.<br>
      &gt; &gt; beter green<br>
      &gt; Hello<br>
      &gt; <br>
      &gt; Check the uri trnasformation <br>
      &gt;
      <a class="ecxmoz-txt-link-freetext" href="http://kamailio.org/dokuwiki/doku.php/transformations:1.5.x#uri_transformations" target="_blank">http://kamailio.org/dokuwiki/doku.php/transformations:1.5.x#uri_transformations</a>
      <br>
      &gt; <br>
      &gt; <br>
      &gt; something lile $(ct{uri.host}) should do the trick.<br>
      &gt; <br>
      &gt; Cheers<br>
      &gt; <br>
      &gt; Marius<br>
      <pre><fieldset class="ecxmimeAttachmentHeader"></fieldset><br>_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br><a class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br></pre>
    </blockquote>
    <br>
    <pre class="ecxmoz-signature">-- <br>Daniel-Constantin Mierla<br><a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br></pre>                                               </body>
</html>