[SR-Users] issue with BYE

gerry kernan gerry.kernan at infinityit.ie
Fri Dec 18 12:53:17 CET 2015


Hi 
No need to reply to me on this, got it sorted.
 
 
 
Gerry Kernan
 
 
Infinity IT   |   17 The Mall   |   Beacon Court   |   Sandyford   |   Dublin D18 E3C8   |   Ireland
Tel:  +353 - (0)1 - 293 0090   |   E-Mail:  gerry.kernan at infinityit.ie
 
Managed IT Services       Infinity IT - www.infinityit.ie
IP Telephony                    Asterisk Consulting - www.asteriskconsulting.com
Contact Centre                Total Interact - www.totalinteract.com
 
From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla
Sent: Thursday 10 December 2015 08:39
To: Kamailio (SER) - Users Mailing List <sr-users at lists.sip-router.org>
Subject: Re: [SR-Users] issue with BYE
 
Hello,

you need to provide full sip trace from initial invite to the bye in order to see if some routing headers are not carrying the proper values.

You can use:

ngrep -d any -qt -W byline "sip" port 5060

Do such call exposing the issue and sent the network sip traffic here.

Cheers,
Daniel
On 08/12/15 18:00, gerry kernan wrote:
Hi 
I seem to be having the problem when the BYE comes from callee. The BYE doesn't get forward to the callee from kamailio.
As I'm using PATH module to send the calls onward to an asterisk server that ive looked up in the dispatcher table is there any options I need to set in the onreply route block. Do I have an error in the block below?
 
 
onreply_route {
 
    if (af==INET)
    {
        if(src_ip != BACKEND_NET4)
        {
            # SIP reply packet client->backend
 
            rtpproxy_manage("cwie");
            fix_nated_contact();
        }
        else
        {
            # SIP reply packet backend->client
            xlog("L_NOTICE", "FROM BACKEND(onreply_route): Method: $rm From: $ru To: $tu Recieved on: $Ri ");
            xlog("L_NOTICE", "FROM BACKEND(onreply_route): source address: $si SIP request's method: $rm SIP Request's URI: $ru \n");
            #loose_route();
            rtpproxy_manage("cwei");
            #fix_nated_contact();
            #record_route();
 
 
        }
    }
 
 
 
Gerry Kernan
 
 
Infinity IT   |   17 The Mall   |   Beacon Court   |   Sandyford   |   Dublin D18 E3C8   |   Ireland
Tel:  +353 - (0)1 - 293 0090   |   E-Mail:  gerry.kernan at infinityit.ie
 
Managed IT Services       Infinity IT - www.infinityit.ie
IP Telephony                    Asterisk Consulting - www.asteriskconsulting.com
Contact Centre                Total Interact - www.totalinteract.com
 
From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of gerry kernan
Sent: Friday 4 December 2015 17:26
To: 'Kamailio (SER) - Users Mailing List' <sr-users at lists.sip-router.org>
Subject: Re: [SR-Users] issue with BYE
 
Hi 
>From a trace I can see that the BYE was received from 10001 and sent to asterisk(192.10.10.213) , but the kamailio(192.10.10.202) doesn't forward the BYE back out to 10002 at X.X.X.X
 
4   3.870042 X.X.X.X -> 212.126.39.60 SIP/SDP 1163 Request: INVITE sip:10001 at sip.xyz.ie;user=phone |
  6   3.870688 192.10.10.202 -> 192.10.10.213 SIP/SDP 1445 Request: INVITE sip:10001 at sip.xyz.ie;user=phone |
11   3.873831 192.10.10.213 -> 192.10.10.202 SIP 703 Status: 401 Unauthorized |
15   3.875223 212.126.39.60 -> X.X.X.X SIP 594 Status: 401 Unauthorized |
17   3.894614 X.X.X.X -> 212.126.39.60 SIP 575 Request: ACK sip:10001 at sip.xyz.ie;user=phone |
19   3.895036 192.10.10.202 -> 192.10.10.213 SIP 857 Request: ACK sip:10001 at sip.xyz.ie;user=phone |
21   3.898506 X.X.X.X -> 212.126.39.60 SIP/SDP 1338 Request: INVITE sip:10001 at sip.xyz.ie;user=phone |
24   3.899177 192.10.10.202 -> 192.10.10.213 SIP/SDP 140 Request: INVITE sip:10001 at sip.xyz.ie;user=phone |
27   3.904115 192.10.10.213 -> 192.10.10.202 SIP 741 Status: 100 Trying |
29   3.904322 212.126.39.60 -> X.X.X.X SIP 632 Status: 100 Trying |
33   3.925201 192.10.10.213 -> 192.10.10.202 SIP/SDP 1018 Request: INVITE sip:10001 at 192.168.200.112:5062 |
35   3.925485 192.10.10.213 -> 192.10.10.202 SIP 757 Status: 180 Ringing |
36   3.925555 192.10.10.202 -> 192.168.200.112 SIP/SDP 1156 Request: INVITE sip:10001 at 192.168.200.112:5062 |
38   3.925686 212.126.39.60 -> X.X.X.X SIP 648 Status: 180 Ringing |
41   3.945324 192.168.200.112 -> 192.10.10.202 SIP 607 Status: 100 Trying |
43   3.945516 192.10.10.202 -> 192.10.10.213 SIP 521 Status: 100 Trying |
45   3.988254 192.168.200.112 -> 192.10.10.202 SIP 644 Status: 180 Ringing |
47   3.988485 192.10.10.202 -> 192.10.10.213 SIP 558 Status: 180 Ringing |
49   4.064562 192.10.10.213 -> 192.10.10.202 SIP 757 Status: 180 Ringing |
51   4.064845 212.126.39.60 -> X.X.X.X SIP 648 Status: 180 Ringing |
20  70   5.194932 192.168.200.112 -> 192.10.10.202 SIP/SDP 979 Status: 200 OK |
74   5.195587 192.10.10.202 -> 192.10.10.213 SIP/SDP 893 Status: 200 OK |
76   5.198424 192.10.10.213 -> 192.10.10.202 SIP 483 Request: ACK sip:10001 at 192.168.200.112:5062 |
78   5.198750 192.10.10.202 -> 192.168.200.112 SIP 621 Request: ACK sip:10001 at 192.168.200.112:5062 |
80   5.199155 192.10.10.213 -> 192.10.10.202 SIP/SDP 1117 Status: 200 OK |
84   5.199750 212.126.39.60 -> X.X.X.X SIP/SDP 1008 Status: 200 OK |
86   5.224751 X.X.X.X -> 212.126.39.60 SIP 645 Request: ACK sip:10001 at 192.10.10.213:5060 |
88   5.225136 192.10.10.202 -> 192.10.10.213 SIP 854 Request: ACK sip:10001 at 192.10.10.213:5060 |
28 112   7.960369 192.168.200.112 -> 192.10.10.202 SIP 548 Request: BYE sip:10002 at 192.10.10.213:5060 |
114   7.960889 192.10.10.202 -> 192.10.10.213 SIP 716 Request: BYE sip:10002 at 192.10.10.213:5060 |
116   7.963035 192.10.10.213 -> 192.10.10.202 SIP 655 Status: 200 OK |
120   7.963501 192.10.10.202 -> 192.168.200.112 SIP 546 Status: 200 OK |
122   8.038144 192.10.10.213 -> 192.10.10.202 SIP 697 Request: BYE sip:10002 at X.X.X.X:16082 |
124   8.137929 192.10.10.213 -> 192.10.10.202 SIP 697 Request: BYE sip:10002 at X.X.X.X:16082 |
126   8.338033 192.10.10.213 -> 192.10.10.202 SIP 697 Request: BYE sip:10002 at X.X.X.X:16082 |
35 140   8.737860 192.10.10.213 -> 192.10.10.202 SIP 697 Request: BYE sip:10002 at X.X.X.X:16082 |
36 149   9.537899 192.10.10.213 -> 192.10.10.202 SIP 697 Request: BYE sip:10002 at X.X.X.X:16082 |
37 157  11.137935 192.10.10.213 -> 192.10.10.202 SIP 697 Request: BYE sip:10002 at X.X.X.X:16082 |
38 169  14.337813 192.10.10.213 -> 192.10.10.202 SIP 697 Request: BYE sip:10002 at X.X.X.X:16082 |
39 201  22.814799 X.X.X.X -> 212.126.39.60 SIP 722 Request: BYE sip:10001 at 192.10.10.213:5060 |
203  22.815254 192.10.10.202 -> 192.10.10.213 SIP 931 Request: BYE sip:10001 at 192.10.10.213:5060 |
 
Gerry Kernan
 
 
Infinity IT   |   17 The Mall   |   Beacon Court   |   Sandyford   |   Dublin D18 E3C8   |   Ireland
Tel:  +353 - (0)1 - 293 0090   |   E-Mail:  gerry.kernan at infinityit.ie
 
Managed IT Services       Infinity IT - www.infinityit.ie
IP Telephony                    Asterisk Consulting - www.asteriskconsulting.com
Contact Centre                Total Interact - www.totalinteract.com
 
From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of gerry kernan
Sent: Friday 4 December 2015 14:51
To: sr-users at lists.sip-router.org
Subject: [SR-Users] issue with BYE
 
Hi 
 
I'm looking for any pointers to resolve and issue I have .
When callee does a hang-up the call terminates on kamailio and asterisk but the caller's phone handset doesn't receive the BYE and doesn't hang-up.
If the caller does the hang up then the call terminates and the callee's handset hands up .
 
My setup is 
Kamailio WAN -> Kamailio Lan -> Asterisk LAN
 
I'm using Path and dispatcher modules to route the SIP traffic to the backup end asterisk server my the domain in the  SIP request. 
 
 
 
 
Gerry Kernan
 
 
Infinity IT   |   17 The Mall   |   Beacon Court   |   Sandyford   |   Dublin D18 E3C8   |   Ireland
Tel:  +353 - (0)1 - 293 0090   |   E-Mail:  gerry.kernan at infinityit.ie
 
Managed IT Services       Infinity IT - www.infinityit.ie
IP Telephony                    Asterisk Consulting - www.asteriskconsulting.com
Contact Centre                Total Interact - www.totalinteract.com
 



_______________________________________________SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/micondaBook: SIP Routing With Kamailio - http://www.asipto.comhttp://miconda.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151218/e10712f9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2681 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151218/e10712f9/attachment.jpg>


More information about the sr-users mailing list