<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>
> Date: Tue, 31 Aug 2010 11:43:45 +0300<br>
> From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:marius.zbihlei@1and1.ro">marius.zbihlei@1and1.ro</a><br>
> To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:betergreen@live.com">betergreen@live.com</a><br>
> CC: <a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> Subject: Re: [SR-Users] help to get ip from contact header in
INVITE sip message.<br>
> <br>
> peter_green lion wrote:<br>
> > hi all,<br>
> > please help me to get ip add from Contact header in
INVITE message.<br>
> > i see that :<br>
> ><br>
> > ct
=<a class="ecxmoz-txt-link-rfc2396E" target="_blank"><sip:101@192.168.1.10:63027;rinstance=85f97591c218086a></a><br>
> ><br>
> > have the ip or domain ("192.168.1.10").<br>
> > so please suggest to get this ip.<br>
> > thanks so much.<br>
> > beter green<br>
> Hello<br>
> <br>
> Check the uri trnasformation <br>
>
<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>
> <br>
> <br>
> something lile $(ct{uri.host}) should do the trick.<br>
> <br>
> Cheers<br>
> <br>
> 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>