Hello,
Kamailio is not receiving the BYE request when the call is ended by any of call parties.
Noting that when the call is connected, a direct RTP session is established between the user and the gateway , and kamailio doesn't receive since then any message related to this call.
Is there any trick to do in order to let kamailio gets the BYE request?
Attached is the used configuration.
Appreciate your help.
Regards,
Ali
Hi Ali,
Why is Kamailio not receiving the BYE? Is it not coming through the network (as determined by a packet capture off the wire)? Or is it not being correctly processed, as for example because the request is somehow malformed?
The configuration alone will not illuminate this. Packet captures are needed for diagnosis. -- 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: Thursday, May 28, 2015 13:25 To: sr-users@lists.sip-router.org Reply To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] Kamailio not receiving BYE request
Hello, Kamailio is not receiving the BYE request when the call is ended by any of call parties. Noting that when the call is connected, a direct RTP session is established between the user and the gateway , and kamailio doesn’t receive since then any message related to this call. Is there any trick to do in order to let kamailio gets the BYE request? Attached is the used configuration. Appreciate your help. Regards, Ali
Hi Alex,
Please find attached Kamailio and client traces.
Below are used IPs :
Kamailio : 192.168.110.181 Client : 192.168.26.3 Gateway: 192.168.26.4
Regards, Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Thursday, May 28, 2015 2:44 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio not receiving BYE request
Hi Ali,
Why is Kamailio not receiving the BYE? Is it not coming through the network (as determined by a packet capture off the wire)? Or is it not being correctly processed, as for example because the request is somehow malformed?
The configuration alone will not illuminate this. Packet captures are needed for diagnosis. -- 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: Thursday, May 28, 2015 13:25 To: sr-users@lists.sip-router.org Reply To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] Kamailio not receiving BYE request
Hello,
Kamailio is not receiving the BYE request when the call is ended by any of call parties. Noting that when the call is connected, a direct RTP session is established between the user and the gateway , and kamailio doesn’t receive since then any message related to this call.
Is there any trick to do in order to let kamailio gets the BYE request?
Attached is the used configuration.
Appreciate your help.
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 Ali,
I was unable to open your client trace, but the Kamailio trace worked:
client-trace.pcap: pcap-ng capture file - version 1.0 kamailio trace.pcap: data
Anyway, looking at the Kamailio trace, you will see that the BYE is going straight from 192.168.26.3 (client) to 192.168.26.4 (gateway), bypassing Kamailio.
This is the normal, default behaviour for a proxy. A BYE is a kind of request called a sequential request, which means it occurs within a dialog. After the initial INVITE transaction is set up through the proxy, sequential requests such as end-to-end ACKs, BYEs, reinvites, etc. flow directly between the endpoints, using the network and transport-layer reachability information in their respective Contact headers.
If you want these sequential requests to traverse Kamailio, you must add a Record-Route header to the initial INVITE before forwarding it. This tells the two endpoints to pass sequential requests through Kamailio as well:
if(is_method("INVITE")) { ...
record_route();
...
if(!t_relay()) sl_reply_error(); }
-- Alex
Hi,
When I'm adding record_route() to kamailio config , Acks and BYE messages are received by kamailio , yet connection between the client and the gateway is not properly established meaning that the gateway keeps waiting for acknowledgement and then network failure message appear.
Below is the status of SIP phone on the gateway side :
Session ID: 67 Session Type: SIP Call Type: SIP Direction: Incoming Address: 192.168.110.181 : 5060 Dial String: sip:5000@192.168.110.181 Dialed as: Respondent: 5000 Program: X-Lite Program version: Status: Awaiting acknowledgement Audio codec (in) : Audio codec (out): PCMU
Regards, Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Thursday, May 28, 2015 3:44 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio not receiving BYE request
Hi Ali,
I was unable to open your client trace, but the Kamailio trace worked:
client-trace.pcap: pcap-ng capture file - version 1.0 kamailio trace.pcap: data
Anyway, looking at the Kamailio trace, you will see that the BYE is going straight from 192.168.26.3 (client) to 192.168.26.4 (gateway), bypassing Kamailio.
This is the normal, default behaviour for a proxy. A BYE is a kind of request called a sequential request, which means it occurs within a dialog. After the initial INVITE transaction is set up through the proxy, sequential requests such as end-to-end ACKs, BYEs, reinvites, etc. flow directly between the endpoints, using the network and transport-layer reachability information in their respective Contact headers.
If you want these sequential requests to traverse Kamailio, you must add a Record-Route header to the initial INVITE before forwarding it. This tells the two endpoints to pass sequential requests through Kamailio as well:
if(is_method("INVITE")) { ...
record_route();
...
if(!t_relay()) sl_reply_error(); }
-- Alex
-- 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
Can you provide a packet capture of this scenario, from the reference frame of the Kamailio server?
-- 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.
Hi,
Kindly find attached requested traces with record_route set.
Regards, Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Thursday, May 28, 2015 4:22 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio not receiving BYE request
Can you provide a packet capture of this scenario, from the reference frame of the Kamailio server?
-- 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.
_______________________________________________ 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,
Kindly find attached requested trace with record_route set.
Kamailio:192.168.110.181 Client: 192.168.26.3 Gateway:192.168.26.4
Regards, Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Thursday, May 28, 2015 4:22 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio not receiving BYE request
Can you provide a packet capture of this scenario, from the reference frame of the Kamailio server?
-- 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.
_______________________________________________ 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
The ACK is stopping at Kamailio. Be sure that you have loose_route management in kamailio script and that the ACK is hitting it. Something like
if (loose_route()) { xlog("L_ERR", "route[MAIN]: call-id=$ci from=$fU to=$tU : attempt to route with preloaded Routes"); if (is_method("ACK")) t_relay(); exit; }
Regards,
Federico
On Thu, May 28, 2015 at 3:36 PM, Ali Taher ataher@vanrise.com wrote:
Hi,
Kindly find attached requested trace with record_route set.
Kamailio:192.168.110.181 Client: 192.168.26.3 Gateway:192.168.26.4
Regards, Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Thursday, May 28, 2015 4:22 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio not receiving BYE request
Can you provide a packet capture of this scenario, from the reference frame of the Kamailio server?
-- 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.
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,
Thanks its working good now.
Yet now when the client or the gateway stops the call , the call is still opened at the other end.
Attached trace is for your reference.
Regards,
Ali Taher
Technical Support Engineer
T&F
M
W
A
+961-5-457437 Ext 215
+961-70-010600
http://www.vanrise.com/ http://www.vanrise.com
Vanrise Building https://maps.google.com/maps/ms?msa=0&msid=208243362929850217065.0004cbc8d612c5f9b4237&ie=UTF8&t=h&vpsrc=0&z=19&iwloc=0004cbc8e4652b4edf71cC:\Users\Marie\Documents\My%20Received%20Files , Facing Galerie Semaan
Hazmiyeh Highway – Beirut, Lebanon
Join us at
http://www.facebook.com/pages/Vanrise-Solutions-Offshore/128309743915533 http://www.linkedin.com/company/vanrise-solutions http://twitter.com/VanriseSolution
From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Federico Cabiddu Sent: Thursday, May 28, 2015 4:46 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio not receiving BYE request
The ACK is stopping at Kamailio.
Be sure that you have loose_route management in kamailio script and that the ACK is hitting it.
Something like
if (loose_route()) {
xlog("L_ERR", "route[MAIN]: call-id=$ci from=$fU to=$tU : attempt to route with preloaded Routes");
if (is_method("ACK"))
t_relay();
exit;
}
Regards,
Federico
On Thu, May 28, 2015 at 3:36 PM, Ali Taher <ataher@vanrise.com mailto:ataher@vanrise.com > wrote:
Hi,
Kindly find attached requested trace with record_route set.
Kamailio:192.168.110.181 Client: 192.168.26.3 Gateway:192.168.26.4
Regards, Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org mailto:sr-users-bounces@lists.sip-router.org ] On Behalf Of Alex Balashov Sent: Thursday, May 28, 2015 4:22 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio not receiving BYE request
Can you provide a packet capture of this scenario, from the reference frame of the Kamailio server?
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 tel:%2B1-800-250-5920 (toll-free) / +1-678-954-0671 tel:%2B1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Sent from my BlackBerry.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto: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 mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
The BYE is an in-dialog message, so it should be routed in the same loose_route block of my previous mail.
Regards,
Federico
On Thu, May 28, 2015 at 4:24 PM, Ali Taher ataher@vanrise.com wrote:
Hi,
Thanks its working good now.
Yet now when the client or the gateway stops the call , the call is still opened at the other end.
Attached trace is for your reference.
Regards,
[image: Description: Description: cid:image001.png@01CDB75E.FF3A44B0]
*Ali Taher*
*Technical Support Engineer*
*T&F *
*M*
*W*
*A*
+961-5-457437 *Ext* 215
+961-70-010600
Vanrise Building https://maps.google.com/maps/ms?msa=0&msid=208243362929850217065.0004cbc8d612c5f9b4237&ie=UTF8&t=h&vpsrc=0&z=19&iwloc=0004cbc8e4652b4edf71cC:%5CUsers%5CMarie%5CDocuments%5CMy%20Received%20Files, Facing Galerie Semaan
Hazmiyeh Highway – Beirut, Lebanon
*[image: Description: Description: cid:image002.png@01CDB75E.FF3A44B0]*
*Join us at*
[image: Description: Description: cid:image006.png@01CDB760.3643AA40] http://www.facebook.com/pages/Vanrise-Solutions-Offshore/128309743915533 [image: Description: Description: cid:image007.png@01CDB760.3643AA40] http://www.linkedin.com/company/vanrise-solutions [image: Description: Description: cid:image008.png@01CDB760.3643AA40] http://twitter.com/VanriseSolution
*From:* sr-users [mailto:sr-users-bounces@lists.sip-router.org] *On Behalf Of *Federico Cabiddu *Sent:* Thursday, May 28, 2015 4:46 PM *To:* Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] Kamailio not receiving BYE request
The ACK is stopping at Kamailio.
Be sure that you have loose_route management in kamailio script and that the ACK is hitting it.
Something like
if (loose_route()) {
xlog("L_ERR", "route[MAIN]: call-id=$ci from=$fU to=$tU : attempt
to route with preloaded Routes");
if (is_method("ACK")) t_relay(); exit;
}
Regards,
Federico
On Thu, May 28, 2015 at 3:36 PM, Ali Taher ataher@vanrise.com wrote:
Hi,
Kindly find attached requested trace with record_route set.
Kamailio:192.168.110.181 Client: 192.168.26.3 Gateway:192.168.26.4
Regards, Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Thursday, May 28, 2015 4:22 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio not receiving BYE request
Can you provide a packet capture of this scenario, from the reference frame of the Kamailio server?
-- 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.
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
Hi, in the INVITE going to the client there is no Record-Route header. This means that the in-dilaog messages won't go through kamailio. In the trace you are also missing the ACK for the INVITE for the same reason. Be sure that in your kamailio script you are calling record_route().
Regards,
Federico
On Thu, May 28, 2015 at 2:35 PM, Ali Taher ataher@vanrise.com wrote:
Hi Alex,
Please find attached Kamailio and client traces.
Below are used IPs :
Kamailio : 192.168.110.181 Client : 192.168.26.3 Gateway: 192.168.26.4
Regards, Ali
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Thursday, May 28, 2015 2:44 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio not receiving BYE request
Hi Ali,
Why is Kamailio not receiving the BYE? Is it not coming through the network (as determined by a packet capture off the wire)? Or is it not being correctly processed, as for example because the request is somehow malformed?
The configuration alone will not illuminate this. Packet captures are needed for diagnosis. -- 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: Thursday, May 28, 2015 13:25 To: sr-users@lists.sip-router.org Reply To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] Kamailio not receiving BYE request
Hello,
Kamailio is not receiving the BYE request when the call is ended by any of call parties. Noting that when the call is connected, a direct RTP session is established between the user and the gateway , and kamailio doesn’t receive since then any message related to this call.
Is there any trick to do in order to let kamailio gets the BYE request?
Attached is the used configuration.
Appreciate your help.
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
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