Hello,
My asterisk box is dropping calls after a few minutes of call time. In the case below the call was terminated at about 4 minutes. This specific call was when the user was on a conference bridge (goto meeting or similar).
I have a fiber connection to our ISP dedicated to our sip trunk, with no NAT. The server has two NIC’s, one for the trunk, and one for the local phone lan (dedicated physical network).
The phones being used are Aastra 9112i or 6730i, the call below was on a 6730i.
We also have an iAX trunk over the internet between two of our offices for over a year and a half, and have very rarely experienced a dropped call - typically these calls will go for 20-30 minutes.
I have troubleshoot’d this issue with our trunk provider and on their side error messages list: Reason: Q.850 ;cause=31 ;text=“local, RTP Broken Connection” - although not for this specific call listed below, I don’t have direct access to our providers sip team anymore.
I’ve done some captures with tcpdump - wireshark shows out of order packets in the rtp stream, typically only in one direction (phone -> pbx, but typically not pbx -> phone). I’m not sure if it is normal to experience packets out of order like this.
Any help is greatly appreciated!
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Bridge still active. Delaying destroy of SIP dialog '2e30222326445c670d504c8208292976@10.0.1.67:5060' Method: INVITE
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Bridge still active. Delaying destroy of SIP dialog 'a2b872537172f874' Method: ACK
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE
[Jan 8 10:05:33] DEBUG[6920] sip/reqresp_parser.c: Begin: parsing SIP "Supported: replaces"
[Jan 8 10:05:33] DEBUG[6920] sip/reqresp_parser.c: Found SIP option: -replaces-
[Jan 8 10:05:33] DEBUG[6920] sip/reqresp_parser.c: Matched SIP option: replaces
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Processing session-level SDP v=0... UNSUPPORTED.
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Processing session-level SDP o=root 1726955180 1726955182 IN IP4 173.46.30.202... UNSUPPORTED.
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Processing session-level SDP s=Rogers SIP... UNSUPPORTED.
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Processing session-level SDP c=IN IP4 173.46.30.202... OK.
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Processing session-level SDP t=0 0... UNSUPPORTED.
[Jan 8 10:05:33] DEBUG[6920] rtp_engine.c: Setting payload 0 based on m type on 0x41395570
[Jan 8 10:05:33] DEBUG[6920] rtp_engine.c: Setting payload 101 based on m type on 0x41395570
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Processing media-level (audio) SDP a=rtpmap:0 PCMU/8000... OK.
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Processing media-level (audio) SDP a=rtpmap:101 telephone-event/8000... OK.
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Processing media-level (audio) SDP a=fmtp:101 0-16... UNSUPPORTED.
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Processing media-level (audio) SDP a=silenceSupp:off - - - -... UNSUPPORTED.
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Processing media-level (audio) SDP a=ptime:20... OK.
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Processing media-level (audio) SDP a=sendrecv... OK.
[Jan 8 10:05:33] DEBUG[6920] rtp_engine.c: Incorporating payload 0 on 0x41395570
[Jan 8 10:05:33] DEBUG[6920] rtp_engine.c: Incorporating payload 101 on 0x41395570
[Jan 8 10:05:33] DEBUG[6920] res_rtp_asterisk.c: Setting RTCP address on RTP instance '0x1f6de198'
[Jan 8 10:05:33] DEBUG[6920] rtp_engine.c: Copying payload 0 from 0x41395570 to 0x1f6de360
[Jan 8 10:05:33] DEBUG[6920] rtp_engine.c: Copying payload 101 from 0x41395570 to 0x1f6de360
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: We're settling with these formats: 0x4 (ulaw)
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: We have an owner, now see if we need to change this call
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: SIP/Rogers-central-0000025f: This call is UP....
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Trying to put 'SIP/2.0 100' onto UDP socket destined for 173.46.30.202:5060
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Setting framing from config on incoming call
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: ** Our capability: 0x4 (ulaw) Video flag: True Text flag: True
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: ** Our prefcodec: 0x4 (ulaw)
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: -- Done with adding codecs to SDP
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Done building SDP. Settling with this capability: 0x4 (ulaw)
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Trying to put 'SIP/2.0 200' onto UDP socket destined for 173.46.30.202:5060
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Bridge still active. Delaying destroy of SIP dialog '2e30222326445c670d504c8208292976@10.0.1.67:5060' Method: INVITE
[Jan 8 10:05:33] DEBUG[3766] res_rtp_asterisk.c: Setting the marker bit due to a source update
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: **** Received BYE (8) - Command in SIP BYE
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Trying to put 'SIP/2.0 487' onto UDP socket destined for 173.46.30.202:5060
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Stopping retransmission on '2e30222326445c670d504c8208292976@10.0.1.67:5060' of Response 102: Match Found
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Stopping retransmission on '2e30222326445c670d504c8208292976@10.0.1.67:5060' of Response 102: Match Found
[Jan 8 10:05:33] DEBUG[6920] chan_sip.c: Setting SIP_ALREADYGONE on dialog 2e30222326445c670d504c8208292976@10.0.1.67:5060
[Jan 8 10:05:33] DEBUG[6932] manager.c: Examining event: