Hello,
We need to integrate Kamailio with an exchange switch in order to have routing decision.
Kamailio must send to the switch the list of available gateways in the contact tag of SIP response as shown in the below example:
SIP/2.0 300 Multiple choices
Via: SIP/2.0/UDP 172.16.5.112:5060;branch=z9hG4bK1sansay9906915rdb2243
Via: SIP/2.0/UDP 216.53.4.5:5060;branch=z9hG4bK_1852370774_4741_1
To: <sip:86532917453592@69.41.186.186:5060 http://sip:86532917453592@69.41.186.186:5060 >
From: sip:+249964642906@216.53.4.5:5060;otg=024050;tag=1852370774_C
Call-ID: sbcsipuac.2_169.132.137.51_b55sb12_1_1_2015052909455960_1852370774_487698
CSeq: 1 INVITE
Contact: sip:2917453592@036310, sip:2917453592@016500, sip:138295#2917453592@044610, sip:2917453592@020100
Server: Invoice SIP-server
Content-Length: 0
Is this can be done through drouting module , or we need to use another module ?
Your help is highly appreciated.
Regards,
Ali
Ali,
It's up to you where you pull the gateway list from. After that, you can use append_to_reply() to construct the Contact header and send the redirect message.
So, yes, it can be done.
-- Alex
On 05/29/2015 10:35 AM, Ali Taher wrote:
Hello,
We need to integrate Kamailio with an exchange switch in order to have routing decision.
Kamailio must send to the switch the list of available gateways in the contact tag of SIP response as shown in the below example:
SIP/2.0 300 Multiple choices
Via: SIP/2.0/UDP 172.16.5.112:5060;branch=z9hG4bK1sansay9906915rdb2243
Via: SIP/2.0/UDP 216.53.4.5:5060;branch=z9hG4bK_1852370774_4741_1
To: <sip:86532917453592@69.41.186.186:5060 http://sip:86532917453592@69.41.186.186:5060>
From: sip:+249964642906@216.53.4.5:5060;otg=024050;tag=1852370774_C
Call-ID: sbcsipuac.2_169.132.137.51_b55sb12_1_1_2015052909455960_1852370774_487698
CSeq: 1 INVITE
Contact: *sip:2917453592@036310, sip:2917453592@016500, sip:138295#2917453592@044610, sip:2917453592@020100*
Server: Invoice SIP-server
Content-Length: 0
Is this can be done through drouting module , or we need to use another module ?
Your help is highly appreciated.
Regards,
Ali
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
In this way , all gateways will be sent by Kamailio by one SIP response ?
Regards, Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Friday, May 29, 2015 6:13 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio 300 Multiple choices
Ali,
It's up to you where you pull the gateway list from. After that, you can use append_to_reply() to construct the Contact header and send the redirect message.
So, yes, it can be done.
-- Alex
On 05/29/2015 10:35 AM, Ali Taher wrote:
Hello,
We need to integrate Kamailio with an exchange switch in order to have routing decision.
Kamailio must send to the switch the list of available gateways in the contact tag of SIP response as shown in the below example:
SIP/2.0 300 Multiple choices
Via: SIP/2.0/UDP 172.16.5.112:5060;branch=z9hG4bK1sansay9906915rdb2243
Via: SIP/2.0/UDP 216.53.4.5:5060;branch=z9hG4bK_1852370774_4741_1
To: <sip:86532917453592@69.41.186.186:5060 http://sip:86532917453592@69.41.186.186:5060>
From: sip:+249964642906@216.53.4.5:5060;otg=024050;tag=1852370774_C
Call-ID: sbcsipuac.2_169.132.137.51_b55sb12_1_1_2015052909455960_1852370774_487 698
CSeq: 1 INVITE
Contact: *sip:2917453592@036310, sip:2917453592@016500, sip:138295#2917453592@044610, sip:2917453592@020100*
Server: Invoice SIP-server
Content-Length: 0
Is this can be done through drouting module , or we need to use another module ?
Your help is highly appreciated.
Regards,
Ali
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On 05/29/2015 11:34 AM, Ali Taher wrote:
In this way , all gateways will be sent by Kamailio by one SIP response ?
If you like!
append_to_reply("Contact: sip:gw1;q=0.1\r\n"); append_to_reply("Contact: sip:gw2;q=0.2\r\n"); sl_send_reply("300", "Multiple Choices"); exit;
Hi,
How can all available contacts extracted from the database be appended automatically?
Thanks for your fast help :)
Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Friday, May 29, 2015 6:37 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio 300 Multiple choices
On 05/29/2015 11:34 AM, Ali Taher wrote:
In this way , all gateways will be sent by Kamailio by one SIP response ?
If you like!
append_to_reply("Contact: sip:gw1;q=0.1\r\n"); append_to_reply("Contact: sip:gw2;q=0.2\r\n"); sl_send_reply("300", "Multiple Choices"); exit;
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
I'm not sure it can be done automatically.
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Sent from my BlackBerry. Original Message From: Ali Taher Sent: Friday, May 29, 2015 17:40 To: 'Kamailio (SER) - Users Mailing List' Reply To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio 300 Multiple choices
Hi,
How can all available contacts extracted from the database be appended automatically?
Thanks for your fast help :)
Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Friday, May 29, 2015 6:37 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio 300 Multiple choices
On 05/29/2015 11:34 AM, Ali Taher wrote:
In this way , all gateways will be sent by Kamailio by one SIP response ?
If you like!
append_to_reply("Contact: sip:gw1;q=0.1\r\n"); append_to_reply("Contact: sip:gw2;q=0.2\r\n"); sl_send_reply("300", "Multiple Choices"); exit;
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
Can I save current gateway in the avp list to a pseudo variable and add it to append_to_reply, then use use_next_gw() to get next gateway and so on , before using t_relay() ?
Regards, Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Friday, May 29, 2015 6:48 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio 300 Multiple choices
I'm not sure it can be done automatically.
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Sent from my BlackBerry. Original Message From: Ali Taher Sent: Friday, May 29, 2015 17:40 To: 'Kamailio (SER) - Users Mailing List' Reply To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio 300 Multiple choices
Hi,
How can all available contacts extracted from the database be appended automatically?
Thanks for your fast help :)
Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Friday, May 29, 2015 6:37 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio 300 Multiple choices
On 05/29/2015 11:34 AM, Ali Taher wrote:
In this way , all gateways will be sent by Kamailio by one SIP response ?
If you like!
append_to_reply("Contact: sip:gw1;q=0.1\r\n"); append_to_reply("Contact: sip:gw2;q=0.2\r\n"); sl_send_reply("300", "Multiple Choices"); exit;
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On 05/29/2015 11:58 AM, Ali Taher wrote:
Can I save current gateway in the avp list to a pseudo variable and add it to append_to_reply, then use use_next_gw() to get next gateway and so on , before using t_relay() ?
Sure. But you won't want to call t_relay() if you're sending redirects -- just send_reply/sl_send_reply.
-- Alex