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