[SR-Users] Kamailio not receiving BYE request

Ali Taher ataher at vanrise.com
Thu May 28 15:16:20 CEST 2015


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 at 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 at lists.sip-router.org] On Behalf Of
Alex Balashov
Sent: Thursday, May 28, 2015 3:44 PM
To: sr-users at 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 at lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




More information about the sr-users mailing list