<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 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 -------> kamailio sip server -----------> application server</div><div><br></div><div>İnvite To:<sip:7777@abc.com> ----------> Kamailio--------> To:<sip:7777@abc.com> (App server IP : 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>> Date: Sun, 7 Feb 2010 01:47:33 -0500<br>> From: abalashov@evaristesys.com<br>> To: adnan.celikel@hotmail.com<br>> CC: users@lists.kamailio.org<br>> Subject: Re: [Kamailio-Users] change domain at to header<br>> <br>> You want to rewrite the request URI, not the To header. The To header <br>> does not have any relevance to how the proxy routes the request <br>> whatsoever.<br>> <br>> $rd = "192.168.1.60";<br>> <br>> On 02/07/2010 01:43 AM, Adnan Çelikel wrote:<br>> <br>> > Dear All,<br>> ><br>> > I want to change a field (Sip to address host part) at sip message<br>> > header. I think avpops will solve this.<br>> > If anybody has a sample confg and send to me I will be very glad.<br>> > Regards,<br>> > Adnan.<br>> ><br>> > #----------------------------------------------------<br>> ><br>> > #7777 CALL ROUTING<br>> ><br>> > #-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*<br>> ><br>> > if(is_method("INVITE") && (uri=~"sip:7777")){<br>> ><br>> > rewritehostport("192.168.1.10:5060 <http://10.18.19.20:5060/>");<br>> ><br>> > route(1);<br>> ><br>> > exit;<br>> ><br>> > }<br>> ><br>> > #----------------------------------------------------<br>> ><br>> ><br>> > at this rule, the invite is going to 192.168.1.10 with the host part as<br>> > abc.com, we want to send with another domain.<br>> ><br>> ><br>> > Instead of abc.com domain, I want to use 192.168.1.10 domain ;<br>> ><br>> ><br>> > To:<sip:7777@abc.com><br>> ><br>> ><br>> > To:<sip:7777@192.168.1.10><br>> ><br>> ><br>> ><br>> > ------------------------------------------------------------------------<br>> > Windows Live Hotmail: Arkadaşlarınız Facebook'taki güncellemelerinizi<br>> > doğrudan Hotmail®'den görür.<br>> > <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><br>> ><br>> ><br>> ><br>> > _______________________________________________<br>> > Kamailio (OpenSER) - Users mailing list<br>> > Users@lists.kamailio.org<br>> > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users<br>> > http://lists.openser-project.org/cgi-bin/mailman/listinfo/users<br>> <br>> <br>> -- <br>> Alex Balashov - Principal<br>> Evariste Systems LLC<br>> <br>> Tel : +1 678-954-0670<br>> Direct : +1 678-954-0671<br>> 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>