<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Dear Alex,<div>Thanks for your reply.<br><div>May be misinformed.</div><div>Normally when a call comes with 7777 pefix, I forward this call to an application server.</div><div>but when &nbsp;I am forwarding this call domain abc.com (default domain) is written at to header.</div><div>The application can not handle my invite because of this domain. I suggested to add this domain at application but they could not do it.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>(default domain: abc.com)</div><div>Gateway -------&gt; kamailio sip server &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-----------&gt; application server</div><div><br></div><div>İnvite&nbsp;To:&lt;sip:7777@abc.com&gt; ----------&gt; Kamailio--------&gt;&nbsp;To:&lt;sip:7777@abc.com&gt; (App server IP :&nbsp;192.168.1.10)</div><div><br></div><div>Application server expects domain 192.168.1.10 instead of abc.com</div><div><br></div><div>Regards,</div><div><br><br>&gt; Date: Sun, 7 Feb 2010 01:47:33 -0500<br>&gt; From: abalashov@evaristesys.com<br>&gt; To: adnan.celikel@hotmail.com<br>&gt; CC: users@lists.kamailio.org<br>&gt; Subject: Re: [Kamailio-Users] change domain at to header<br>&gt; <br>&gt; You want to rewrite the request URI, not the To header.  The To header <br>&gt; does not have any relevance to how the proxy routes the request <br>&gt; whatsoever.<br>&gt; <br>&gt; $rd = "192.168.1.60";<br>&gt; <br>&gt; On 02/07/2010 01:43 AM, Adnan Çelikel wrote:<br>&gt; <br>&gt; &gt; Dear All,<br>&gt; &gt;<br>&gt; &gt; I want to change a field (Sip to address host part) at sip message<br>&gt; &gt; header. I think avpops will solve this.<br>&gt; &gt; If anybody has a sample confg and send to me I will be very glad.<br>&gt; &gt; Regards,<br>&gt; &gt; Adnan.<br>&gt; &gt;<br>&gt; &gt; #----------------------------------------------------<br>&gt; &gt;<br>&gt; &gt; #7777 CALL ROUTING<br>&gt; &gt;<br>&gt; &gt; #-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*<br>&gt; &gt;<br>&gt; &gt; if(is_method("INVITE") &amp;&amp; (uri=~"sip:7777")){<br>&gt; &gt;<br>&gt; &gt; rewritehostport("192.168.1.10:5060 &lt;http://10.18.19.20:5060/&gt;");<br>&gt; &gt;<br>&gt; &gt; route(1);<br>&gt; &gt;<br>&gt; &gt; exit;<br>&gt; &gt;<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt; #----------------------------------------------------<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; at this rule, the invite is going to 192.168.1.10 with the host part as<br>&gt; &gt; abc.com, we want to send with another domain.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Instead of abc.com domain, I want to use 192.168.1.10 domain ;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; To:&lt;sip:7777@abc.com&gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; To:&lt;sip:7777@192.168.1.10&gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; Windows Live Hotmail: Arkadaşlarınız Facebook'taki güncellemelerinizi<br>&gt; &gt; doğrudan Hotmail®'den görür.<br>&gt; &gt; &lt;http://www.microsoft.com/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:tr-tr:SI_SB_4:092009&gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Kamailio (OpenSER) - Users mailing list<br>&gt; &gt; Users@lists.kamailio.org<br>&gt; &gt; http://lists.kamailio.org/cgi-bin/mailman/listinfo/users<br>&gt; &gt; http://lists.openser-project.org/cgi-bin/mailman/listinfo/users<br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Alex Balashov - Principal<br>&gt; Evariste Systems LLC<br>&gt; <br>&gt; Tel    : +1 678-954-0670<br>&gt; Direct : +1 678-954-0671<br>&gt; Web    : http://www.evaristesys.com/<br></div></div>                                               <br /><hr />Windows 7: Gündelik işlerinizi basitleştirin. <a href='http://windows.microsoft.com/shop' target='_new'>Size en uygun bilgisayarı bulun.</a></body>
</html>