[Freeswitch-users] FS not reacting to BYE

Igor Olhovskiy igorolhovskiy at gmail.com
Thu Dec 14 00:00:13 UTC 2017


Seems it’s really strange issue.

Call was made with api_on_answer variable and in this api lua script was called.
lua script just make curl request with session:execute(«curl», «https://xxxx»)
Only in this case FS not has a problem with accepting BYE.

When I redo curl request with bgapi - all act as designed.

Regards, Igor

On Dec 13, 2017, 3:48 PM +0200, Igor Olhovskiy <igorolhovskiy at gmail.com>, wrote:
> Hi all!
>
>
> Got into issue with one of providers, and can’t get some things...
> For what reason FS is not reacting to BYE on external profile?
>
> FS -> Prov
> INVITE sip:3809XXXXXXXX at sip.telecomax.net SIP/2.0
> Via: SIP/2.0/UDP 138.68.65.164:5080;rport;branch=z9hG4bKt7cUUFUKyea3r
> Max-Forwards: 69
> From: "456XXXXXXX" <sip:456XXXXXXX at sip.telecomax.net>;tag=gFjZSmajjg36F
> To: <sip:3809XXXXXXXX at sip.telecomax.net>
> Call-ID: 7825a584-5aab-1236-22a3-525feb2d3359
> CSeq: 116249601 INVITE
> Contact: <sip:gw+3b179ac8-000f-453a-8059-7922501ae04c at 138.68.65.164:5080;transport=udp;gw=3b179ac8-000f-453a-8059-7922501ae04c>
> User-Agent: FreeSWITCH
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
> Supported: timer, path, replaces
> Allow-Events: talk, hold, conference, refer
> Content-Type: application/sdp
> Content-Disposition: session
> Content-Length: 270
> X-Serialnumber: 000413719560
> P-Key-Flags: resolution="31x13", keys="4"
> X-accountcode: fusion.contactise.com
> X-FS-Support: update_display,send_info
> Remote-Party-ID: "456XXXXXXX" <sip:456XXXXXXX at sip.telecomax.net>;party=calling;screen=yes;privacy=off
>
> v=0
> o=FreeSWITCH 1513140493 1513140494 IN IP4 138.68.65.164
> s=FreeSWITCH
> c=IN IP4 138.68.65.164
> t=0 0
> m=audio 30838 RTP/AVP 0 8 101 13
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=rtpmap:13 CN/8000
> a=ptime:20
>
> FS <- Prov
> SIP/2.0 183 Session Progress
> Via: SIP/2.0/UDP 138.68.65.164:5080;branch=z9hG4bKUg6KXacQUQ0Nm;received=138.68.65.164;rport=5080
> From: "456XXXXXXX" <sip:456XXXXXXX at sip.telecomax.net>;tag=gFjZSmajjg36F
> To: <sip:3809XXXXXXXX at sip.telecomax.net>;tag=as5cec60a1
> Call-ID: 7825a584-5aab-1236-22a3-525feb2d3359
> CSeq: 116249602 INVITE
> User-Agent: Free World Web Client
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
> Supported: replaces
> Contact: <sip:3809XXXXXXXX at 80.242.134.195>
> Content-Type: application/sdp
> Content-Length: 268
>
> v=0
> o=root 21659 21659 IN IP4 80.242.134.195
> s=session
> c=IN IP4 80.242.134.195
> t=0 0
> m=audio 13494 RTP/AVP 0 8 101
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=silenceSupp:off - - - -
> a=ptime:20
> a=sendrecv
>
> FS <- Prov
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 138.68.65.164:5080;branch=z9hG4bKUg6KXacQUQ0Nm;received=138.68.65.164;rport=5080
> From: "456XXXXXXX" <sip:456XXXXXXX at sip.telecomax.net>;tag=gFjZSmajjg36F
> To: <sip:3809XXXXXXXX at sip.telecomax.net>;tag=as5cec60a1
> Call-ID: 7825a584-5aab-1236-22a3-525feb2d3359
> CSeq: 116249602 INVITE
> User-Agent: Free World Web Client
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
> Supported: replaces
> Contact: <sip:3809XXXXXXXX at 80.242.134.195>
> Content-Type: application/sdp
> Content-Length: 268
>
> v=0
> o=root 21659 21660 IN IP4 80.242.134.195
> s=session
> c=IN IP4 80.242.134.195
> t=0 0
> m=audio 13494 RTP/AVP 0 8 101
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=silenceSupp:off - - - -
> a=ptime:20
> a=sendrecv
>
> FS -> Prov
> ACK sip:3809XXXXXXXX at 80.242.134.195 SIP/2.0
> Via: SIP/2.0/UDP 138.68.65.164:5080;rport;branch=z9hG4bKvSZcZ5vtr0p8F
> Max-Forwards: 70
> From: "456XXXXXXX" <sip:456XXXXXXX at sip.telecomax.net>;tag=gFjZSmajjg36F
> To: <sip:3809XXXXXXXX at sip.telecomax.net>;tag=as5cec60a1
> Call-ID: 7825a584-5aab-1236-22a3-525feb2d3359
> CSeq: 116249602 ACK
> Contact: <sip:gw+3b179ac8-000f-453a-8059-7922501ae04c at 138.68.65.164:5080;transport=udp;gw=3b179ac8-000f-453a-8059-7922501ae04c>
> Proxy-Authorization: Digest username="456XXXXXXX", realm="Free World Web Client", nonce="6d32caff", algorithm=MD5, uri="sip:3809XXXXXXXX at sip.telecomax.net", response="c0aa24f024fc447594290b580bcedbfa"
> Content-Length: 0
>
> <- This BYE is received, but no react to it in CLI at all.
>
> FS <- Prov
> BYE sip:gw+3b179ac8-000f-453a-8059-7922501ae04c at 138.68.65.164:5080;transport=udp;gw=3b179ac8-000f-453a-8059-7922501ae04c SIP/2.0
> Via: SIP/2.0/UDP 80.242.134.195:5060;branch=z9hG4bK06dce488;rport
> From: <sip:3809XXXXXXXX at sip.telecomax.net>;tag=as5cec60a1
> To: "456XXXXXXX" <sip:456XXXXXXX at sip.telecomax.net>;tag=gFjZSmajjg36F
> Call-ID: 7825a584-5aab-1236-22a3-525feb2d3359
> CSeq: 102 BYE
> User-Agent: Free World Web Client
> Max-Forwards: 70
> X-Asterisk-HangupCause: Normal Clearing
> X-Asterisk-HangupCauseCode: 16
> Content-Length: 0
>
>
>
>
>
>
> I've set up sofia debug all 9 and received this
>    ------------------------------------------------------------------------
> BYE sip:gw+3b179ac8-000f-453a-8059-7922501ae04c at 138.68.65.164:5080;transport=udp;gw=3b179ac8-000f-453a-8059-7922501ae04c SIP/2.0
>    Via: SIP/2.0/UDP 80.242.134.195:5060;branch=z9hG4bK06dce488;rport
>    From: <sip:3809XXXXXXXX at sip.telecomax.net>;tag=as77b4319c
>    To: "456XXXXXXX" <sip:456XXXXXXX at sip.telecomax.net>;tag=gFjZSmajjg36F
>    Call-ID: 7825a584-5aab-1236-22a3-525feb2d3359
>    CSeq: 102 BYE
>    User-Agent: Free World Web Client
>    Max-Forwards: 70
>    X-Asterisk-HangupCause: Normal Clearing
>    X-Asterisk-HangupCauseCode: 16
>    Content-Length: 0
>
>    ------------------------------------------------------------------------
> tport.c:3023 tport_deliver() tport_deliver(0x7ff1e0004650): msg 0x7ff1e0025700 (536 bytes) from udp/80.242.134.195:5080/sip next=(nil)
> nta.c:2880 agent_recv_request() nta: received BYE sip:gw+3b179ac8-000f-453a-8059-7922501ae04c at 138.68.65.164:5080;transport=udp;gw=3b179ac8-000f-453a-8059-7922501ae04c SIP/2.0 (CSeq 102)
> nta.c:3248 agent_aliases() nta: canonizing sip:gw+3b179ac8-000f-453a-8059-7922501ae04c at 138.68.65.164:5080 with contact
> nta.c:3060 agent_recv_request() nta: BYE (102) going to existing leg
> nua_server.c:102 nua_stack_process_request() nua: nua_stack_process_request: entering
> nua_stack.c:271 nua_stack_event() nua(0x7ff204000b60): event i_bye 100 Trying
> nua_stack.c:359 nua_application_event() nua: nua_application_event: entering
> nta.c:7134 _nta_incoming_timer() nta: timer I fired, terminate 200 response
> nta.c:5825 incoming_reclaim_queued() incoming_reclaim_all((nil), (nil), 0x7ff20dc4ac60)
> nta.c:7188 _nta_incoming_timer() nta_incoming_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free
> nta.c:1289 agent_timer() nta: timer not set
> tport.c:2749 tport_wakeup_pri() tport_wakeup_pri(0x7ff1e8004410): events IN
> tport.c:2864 tport_recv_event() tport_recv_event(0x7ff1e8004410)
> tport.c:3205 tport_recv_iovec() tport_recv_iovec(0x7ff1e8004410) msg 0x7ff1e80c90c0 from (udp/138.68.65.164:5060) has 4 bytes, veclen = 1
> tport.c:3023 tport_deliver() tport_deliver(0x7ff1e8004410): bad msg 0x7ff1e80c90c0 (4 bytes) from udp/176.104.56.91:5060/sip next=(nil)
> tport.c:2749 tport_wakeup_pri() tport_wakeup_pri(0x7ff1e0004650): events IN
> tport.c:2864 tport_recv_event() tport_recv_event(0x7ff1e0004650)
> tport.c:3205 tport_recv_iovec() tport_recv_iovec(0x7ff1e0004650) msg 0x7ff1e00582d0 from (udp/138.68.65.164:5080) has 536 bytes, veclen = 1
>
>
>
> And this is it….
> Also there is one-way sound, but I think it’s somehow related to this.
>
> FS 1.6.19 (FusionPBX)
>
> Regards, Igor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20171214/b8860a04/attachment.html>


More information about the FreeSWITCH-users mailing list