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"); 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 alır. http://www.microsoft.com/windows/windowslive/see-it-in-action/social-network...
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 ;
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
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 ;
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/
_________________________________________________________________ Yeni Windows 7: Gündelik işlerinizi basitleştirin. Size en uygun bilgisayarı bulun. http://windows.microsoft.com/shop
The application server should not be routing based on To header.
On 02/07/2010 04:52 AM, Adnan Çelikel wrote:
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 ;
Windows Live Hotmail: Arkadaşlarınız Facebook'taki güncellemelerinizi doğrudan Hotmail®'den görür.
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ı bulun. http://windows.microsoft.com/shop
Hi Adnan,
If I understand the case corectly , then:
Since you want to change the domain why don't you try the PDT module which exactly does that job? http://kamailio.org/docs/modules/1.5.x/pdt.html#id2467578
if(prefix2domain("2", "0")) { #### If this prefix is found then the $rd keeps the $ru = "sip:" + $rU + "@" + $rd; #### the value of the domain to be replaced t_relay(); exit; }
Cheers Alex P
2010/2/7 Alex Balashov abalashov@evaristesys.com
The application server should not be routing based on To header.
On 02/07/2010 04:52 AM, Adnan Çelikel wrote:
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 sip%3A7777@abc.com> ----------> Kamailio--------> To:<sip:7777@abc.com sip%3A7777@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 sip%3A7777@abc.com>
To:<sip:7777@192.168.1.10 sip%3A7777@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...
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ı bulun. http://windows.microsoft.com/shop
-- Alex Balashov - Principal Evariste Systems LLC
Tel : +1 678-954-0670 Direct : +1 678-954-0671 Web : http://www.evaristesys.com/
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
Hello,
On 2/7/10 1:03 PM, alex pappas wrote:
Hi Adnan,
If I understand the case corectly , then:
Since you want to change the domain why don't you try the PDT module which exactly does that job? http://kamailio.org/docs/modules/1.5.x/pdt.html#id2467578
if(prefix2domain("2", "0")) { #### If this prefix is found then the $rd keeps the $ru = "sip:" + $rU + "@" + $rd; #### the value of the domain to be replaced
you need the last line only when there are some parameter in pdt domain value that you want to remove. Otherwise it is pretty useless operation.
Cheers, Daniel
t_relay(); exit;
}
Cheers Alex P
2010/2/7 Alex Balashov <abalashov@evaristesys.com mailto:abalashov@evaristesys.com>
The application server should not be routing based on To header. On 02/07/2010 04:52 AM, Adnan Çelikel wrote: 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 <http://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 <http://abc.com>) Gateway -------> kamailio sip server -----------> application server İnvite To:<sip:7777@abc.com <mailto:sip%3A7777@abc.com>> ----------> Kamailio--------> To:<sip:7777@abc.com <mailto:sip%3A7777@abc.com>> (App server IP : 192.168.1.10) Application server expects domain 192.168.1.10 instead of abc.com <http://abc.com> Regards, > Date: Sun, 7 Feb 2010 01:47:33 -0500 > From: abalashov@evaristesys.com <mailto:abalashov@evaristesys.com> > To: adnan.celikel@hotmail.com <mailto:adnan.celikel@hotmail.com> > CC: users@lists.kamailio.org <mailto: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://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 <http://abc.com>, we want to send with another domain. > > > > > > Instead of abc.com <http://abc.com> domain, I want to use 192.168.1.10 domain ; > > > > > > To:<sip:7777@abc.com <mailto:sip%3A7777@abc.com>> > > > > > > To:<sip:7777@192.168.1.10 <mailto:sip%3A7777@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 <mailto: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ı bulun. <http://windows.microsoft.com/shop> -- Alex Balashov - Principal Evariste Systems LLC Tel : +1 678-954-0670 Direct : +1 678-954-0671 Web : http://www.evaristesys.com/ _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org <mailto:Users@lists.kamailio.org> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
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
Hi Daniel,
You are right of course ;-)
Alex
2010/2/8 Daniel-Constantin Mierla miconda@gmail.com
Hello,
On 2/7/10 1:03 PM, alex pappas wrote:
Hi Adnan,
If I understand the case corectly , then:
Since you want to change the domain why don't you try the PDT module which exactly does that job? http://kamailio.org/docs/modules/1.5.x/pdt.html#id2467578
if(prefix2domain("2", "0")) { #### If this prefix is found then the $rd keeps the $ru = "sip:" + $rU + "@" + $rd; #### the value of the domain to be replaced
you need the last line only when there are some parameter in pdt domain value that you want to remove. Otherwise it is pretty useless operation.
Cheers, Daniel
t_relay(); exit;
}
Cheers Alex P
2010/2/7 Alex Balashov abalashov@evaristesys.com
The application server should not be routing based on To header.
On 02/07/2010 04:52 AM, Adnan Çelikel wrote:
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 sip%3A7777@abc.com> ----------> Kamailio--------> To:<sip:7777@abc.com sip%3A7777@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 sip%3A7777@abc.com>
To:<sip:7777@192.168.1.10 sip%3A7777@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...
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ı bulun. http://windows.microsoft.com/shop
-- Alex Balashov - Principal Evariste Systems LLC
Tel : +1 678-954-0670 Direct : +1 678-954-0671 Web : http://www.evaristesys.com/
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
Kamailio (OpenSER) - Users mailing listUsers@lists.kamailio.orghttp://lists.kamailio.org/cgi-bin/mailman/listinfo/usershttp://lists.openser...
-- Daniel-Constantin Mierla eLearning class for Kamailio 3.0.0 Starting Feb 8, 2010
On 2/8/10 10:33 AM, Olivier Taylor wrote:
Daniel is always right, even when he is wrong :)
Not sure about this one, but when comes to selecting a restaurant in Brussels, you are always right, everytime great food and atmosphere. Thanks again for the FOSDEM 2010 dinner!
I uploaded some pictures from the event here (I will see what can be done with those from the dinner): http://www.asipto.com/gallery/v/siremis/fosdem2010/
Cheers, Daniel
Olivier
alex pappas a écrit :
Hi Daniel,
You are right of course ;-)
Alex
2010/2/8 Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com>
Hello, On 2/7/10 1:03 PM, alex pappas wrote:
Hi Adnan, If I understand the case corectly , then: Since you want to change the domain why don't you try the PDT module which exactly does that job? http://kamailio.org/docs/modules/1.5.x/pdt.html#id2467578 if(prefix2domain("2", "0")) { #### If this prefix is found then the $rd keeps the $ru = "sip:" + $rU + "@" + $rd; #### the value of the domain to be replaced
you need the last line only when there are some parameter in pdt domain value that you want to remove. Otherwise it is pretty useless operation. Cheers, Daniel
t_relay(); exit; } Cheers Alex P 2010/2/7 Alex Balashov <abalashov@evaristesys.com <mailto:abalashov@evaristesys.com>> The application server should not be routing based on To header. On 02/07/2010 04:52 AM, Adnan Çelikel wrote: 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 <http://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 <http://abc.com>) Gateway -------> kamailio sip server -----------> application server İnvite To:<sip:7777@abc.com <mailto:sip%3A7777@abc.com>> ----------> Kamailio--------> To:<sip:7777@abc.com <mailto:sip%3A7777@abc.com>> (App server IP : 192.168.1.10) Application server expects domain 192.168.1.10 instead of abc.com <http://abc.com> Regards, > Date: Sun, 7 Feb 2010 01:47:33 -0500 > From: abalashov@evaristesys.com <mailto:abalashov@evaristesys.com> > To: adnan.celikel@hotmail.com <mailto:adnan.celikel@hotmail.com> > CC: users@lists.kamailio.org <mailto: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://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 <http://abc.com>, we want to send with another domain. > > > > > > Instead of abc.com <http://abc.com> domain, I want to use 192.168.1.10 domain ; > > > > > > To:<sip:7777@abc.com <mailto:sip%3A7777@abc.com>> > > > > > > To:<sip:7777@192.168.1.10 <mailto:sip%3A7777@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 <mailto: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ı bulun. <http://windows.microsoft.com/shop> -- Alex Balashov - Principal Evariste Systems LLC Tel : +1 678-954-0670 Direct : +1 678-954-0671 Web : http://www.evaristesys.com/ _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org <mailto:Users@lists.kamailio.org> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org <mailto:Users@lists.kamailio.org> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Daniel-Constantin Mierla eLearning class for Kamailio 3.0.0 Starting Feb 8, 2010 *http://www.asipto.com/
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
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
On 2/7/10 11:09 AM, Alex Balashov wrote:
The application server should not be routing based on To header.
Better said "must not do routing based on To header".
The best is if you can get that on the application server to be SIP 2.0 RFC3261 compliant, but I admit that some times it is pretty much impossible so you can try hacks in config file with remove_hf() and append_hf() from textops.
remove_hf("To"); append_hf("To: sip:$tU@mynewdomain.com\r\n", "To");
Cheers, Daniel
On 02/07/2010 04:52 AM, Adnan Çelikel wrote:
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 ;
Windows Live Hotmail: Arkadaşlarınız Facebook'taki
güncellemelerinizi
doğrudan Hotmail®'den görür.
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ı bulun. http://windows.microsoft.com/shop
On 2/8/10 10:39 AM, Daniel-Constantin Mierla wrote:
On 2/7/10 11:09 AM, Alex Balashov wrote:
The application server should not be routing based on To header.
Better said "must not do routing based on To header".
The best is if you can get that on the application server to be SIP 2.0 RFC3261 compliant, but I admit that some times it is pretty much impossible so you can try hacks in config file with remove_hf() and append_hf() from textops.
remove_hf("To"); append_hf("To: sip:$tU@mynewdomain.com\r\n", "To");
forgot to mention that it is the last solution you should go for and may break dialogs (it is kind of against specs), so it is not guaranteed to work. You have to test first before going in production.
Daniel
Cheers, Daniel
On 02/07/2010 04:52 AM, Adnan Çelikel wrote:
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 ;
Windows Live Hotmail: Arkadaşlarınız Facebook'taki
güncellemelerinizi
doğrudan Hotmail®'den görür.
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ı bulun. http://windows.microsoft.com/shop
Dear Daniel, Thanks for your reply.I see your concern.I will try at test platform after that I will use. Thanks for your supports. Regards, Adnan. _________________________________________________________________ Windows Live Hotmail: Arkadaşlarınız Facebook'taki güncellemelerinizi doğrudan Hotmail®'den alır. http://www.microsoft.com/windows/windowslive/see-it-in-action/social-network...