Вот дебаг двух звонков:
Оба через одного оператора. Льет этот оператор эти звонки, как выяснилось, на разных терминаторов, похоже, из-за этого разница.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: Первый вызов (нормальный):
Audio is at 5060
Adding codec 0x8 (alaw) to SDP
Adding codec 0x100 (g729) to SDP
Adding codec 0x1 (g723) to SDP
Adding codec 0x4 (ulaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 222.222.222.222:5061:
INVITE sip:84957777778@222.222.222.222:5061 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK25d91886
Max-Forwards: 70
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>
Contact: <sip:12345@111.111.111.111:5060>
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Apr 2012 14:22:56 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 351
v=0
o=root 425555080 425555080 IN IP4 111.111.111.111
s=Asterisk PBX 1.8.7.0
c=IN IP4 111.111.111.111
t=0 0
m=audio 13146 RTP/AVP 8 18 4 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK25d91886
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777778@222.222.222.222:5061>
Server: MERA MVTS3G v.4.4.0-13a
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK25d91886
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>;tag=2796947751-3776045710-570469020-182389604
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777778@222.222.222.222:5061>
Server: MERA MVTS3G v.4.4.0-13a
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK25d91886
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>;tag=2796947751-3776045710-570469020-182389604
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777778@222.222.222.222:5061>
Content-Type: application/sdp
Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, REFER, REGISTER, UPDATE
Server: MERA MVTS3G v.4.4.0-13a
X-mera-expires: 86460
Content-Length: 256
v=0
o=- 1335363777 1335363777 IN IP4 222.222.222.222
s=-
c=IN IP4 222.222.222.222
t=0 0
m=audio 23282 RTP/AVP 8 18 0
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=ptime:20
a=sendrecv
a=silenceSupp:off - - - -
<------------->
--- (12 headers 13 lines) ---
Found RTP audio format 8
Found RTP audio format 18
Found RTP audio format 0
Found audio description format PCMA for ID 8
Found audio description format G729 for ID 18
Found audio description format PCMU for ID 0
Capabilities: us - 0x10d (g723|ulaw|alaw|g729), peer - audio=0x10c (ulaw|alaw|g729)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x10c (ulaw|alaw|g729)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x0 (nothing), combined - 0x0 (nothing)
Peer audio RTP is at port 222.222.222.222:23282
list_route: hop: <sip:84957777778@222.222.222.222:5061>
set_destination: Parsing <sip:84957777778@222.222.222.222:5061> for address/port to send to
set_destination: set destination to 222.222.222.222:5061
Transmitting (no NAT) to 222.222.222.222:5061:
ACK sip:84957777778@222.222.222.222:5061 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK63d91559
Max-Forwards: 70
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>;tag=2796947751-3776045710-570469020-182389604
Contact: <sip:12345@111.111.111.111:5060>
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 102 ACK
User-Agent: FPBX-2.8.1(1.8.7.0)
Content-Length: 0
Scheduling destruction of SIP dialog '0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060' in 32000 ms (Method: INVITE)
set_destination: Parsing <sip:84957777778@222.222.222.222:5061> for address/port to send to
set_destination: set destination to 222.222.222.222:5061
Reliably Transmitting (no NAT) to 222.222.222.222:5061:
BYE sip:84957777778@222.222.222.222:5061 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK3bd630e5
Max-Forwards: 70
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>;tag=2796947751-3776045710-570469020-182389604
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 103 BYE
User-Agent: FPBX-2.8.1(1.8.7.0)
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK3bd630e5
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>;tag=2796947751-3776045710-570469020-182389604
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 103 BYE
Contact: <sip:84957777778@222.222.222.222:5061>
Server: MERA MVTS3G v.4.4.0-13a
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Really destroying SIP dialog '0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060' Method: INVITE
Adding codec 0x8 (alaw) to SDP
Adding codec 0x100 (g729) to SDP
Adding codec 0x1 (g723) to SDP
Adding codec 0x4 (ulaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 222.222.222.222:5061:
INVITE sip:84957777778@222.222.222.222:5061 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK25d91886
Max-Forwards: 70
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>
Contact: <sip:12345@111.111.111.111:5060>
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Apr 2012 14:22:56 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 351
v=0
o=root 425555080 425555080 IN IP4 111.111.111.111
s=Asterisk PBX 1.8.7.0
c=IN IP4 111.111.111.111
t=0 0
m=audio 13146 RTP/AVP 8 18 4 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK25d91886
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777778@222.222.222.222:5061>
Server: MERA MVTS3G v.4.4.0-13a
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK25d91886
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>;tag=2796947751-3776045710-570469020-182389604
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777778@222.222.222.222:5061>
Server: MERA MVTS3G v.4.4.0-13a
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK25d91886
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>;tag=2796947751-3776045710-570469020-182389604
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777778@222.222.222.222:5061>
Content-Type: application/sdp
Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, REFER, REGISTER, UPDATE
Server: MERA MVTS3G v.4.4.0-13a
X-mera-expires: 86460
Content-Length: 256
v=0
o=- 1335363777 1335363777 IN IP4 222.222.222.222
s=-
c=IN IP4 222.222.222.222
t=0 0
m=audio 23282 RTP/AVP 8 18 0
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=ptime:20
a=sendrecv
a=silenceSupp:off - - - -
<------------->
--- (12 headers 13 lines) ---
Found RTP audio format 8
Found RTP audio format 18
Found RTP audio format 0
Found audio description format PCMA for ID 8
Found audio description format G729 for ID 18
Found audio description format PCMU for ID 0
Capabilities: us - 0x10d (g723|ulaw|alaw|g729), peer - audio=0x10c (ulaw|alaw|g729)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x10c (ulaw|alaw|g729)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x0 (nothing), combined - 0x0 (nothing)
Peer audio RTP is at port 222.222.222.222:23282
list_route: hop: <sip:84957777778@222.222.222.222:5061>
set_destination: Parsing <sip:84957777778@222.222.222.222:5061> for address/port to send to
set_destination: set destination to 222.222.222.222:5061
Transmitting (no NAT) to 222.222.222.222:5061:
ACK sip:84957777778@222.222.222.222:5061 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK63d91559
Max-Forwards: 70
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>;tag=2796947751-3776045710-570469020-182389604
Contact: <sip:12345@111.111.111.111:5060>
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 102 ACK
User-Agent: FPBX-2.8.1(1.8.7.0)
Content-Length: 0
Scheduling destruction of SIP dialog '0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060' in 32000 ms (Method: INVITE)
set_destination: Parsing <sip:84957777778@222.222.222.222:5061> for address/port to send to
set_destination: set destination to 222.222.222.222:5061
Reliably Transmitting (no NAT) to 222.222.222.222:5061:
BYE sip:84957777778@222.222.222.222:5061 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK3bd630e5
Max-Forwards: 70
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>;tag=2796947751-3776045710-570469020-182389604
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 103 BYE
User-Agent: FPBX-2.8.1(1.8.7.0)
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK3bd630e5
From: "12345" <sip:12345@111.111.111.111>;tag=as7334d4ef
To: <sip:84957777778@222.222.222.222:5061>;tag=2796947751-3776045710-570469020-182389604
Call-ID: 0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060
CSeq: 103 BYE
Contact: <sip:84957777778@222.222.222.222:5061>
Server: MERA MVTS3G v.4.4.0-13a
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Really destroying SIP dialog '0635c5be6370e0241d3878dd70be019b@111.111.111.111:5060' Method: INVITE
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: Второй вызов (собственно, проблемный):
Audio is at 5060
Adding codec 0x8 (alaw) to SDP
Adding codec 0x100 (g729) to SDP
Adding codec 0x1 (g723) to SDP
Adding codec 0x4 (ulaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 222.222.222.222:5061:
INVITE sip:84957777777@222.222.222.222:5061 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK30edfb98
Max-Forwards: 70
From: "12345" <sip:12345@111.111.111.111>;tag=as22420006
To: <sip:84957777777@222.222.222.222:5061>
Contact: <sip:12345@111.111.111.111:5060>
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Apr 2012 14:20:52 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 353
v=0
o=root 1398468448 1398468448 IN IP4 111.111.111.111
s=Asterisk PBX 1.8.7.0
c=IN IP4 111.111.111.111
t=0 0
m=audio 17920 RTP/AVP 8 18 4 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK30edfb98
From: "12345" <sip:12345@111.111.111.111>;tag=as22420006
To: <sip:84957777777@222.222.222.222:5061>
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777777@222.222.222.222:5061>
Server: MERA MVTS3G v.4.4.0-13a
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK30edfb98
From: "12345" <sip:12345@111.111.111.111>;tag=as22420006
To: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777777@222.222.222.222:5061>
Content-Type: application/sdp
Server: MERA MVTS3G v.4.4.0-13a
Content-Length: 256
v=0
o=- 1335363653 1335363653 IN IP4 222.222.222.222
s=-
c=IN IP4 222.222.222.222
t=0 0
m=audio 23232 RTP/AVP 8 18 0
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=ptime:20
a=sendrecv
a=silenceSupp:off - - - -
<------------->
--- (10 headers 13 lines) ---
Found RTP audio format 8
Found RTP audio format 18
Found RTP audio format 0
Found audio description format PCMA for ID 8
Found audio description format G729 for ID 18
Found audio description format PCMU for ID 0
Capabilities: us - 0x10d (g723|ulaw|alaw|g729), peer - audio=0x10c (ulaw|alaw|g729)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x10c (ulaw|alaw|g729)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x0 (nothing), combined - 0x0 (nothing)
Peer audio RTP is at port 222.222.222.222:23232
<--- SIP read from UDP:222.222.222.222:5061 --->
OPTIONS sip:12345@111.111.111.111:5060 SIP/2.0
Via: SIP/2.0/UDP 222.222.222.222:5061;rport;branch=z9hG4bK-2994321117-3776045454-570464409-1823896041
Via: SIP/2.0/UDP 222.222.222.222:5063;rport=5063;branch=z9hG4bK-2994321117-3776045454-570464409-182389604;received=222.222.222.222
From: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
To: "12345" <sip:12345@111.111.111.111>;tag=as22420006
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 103 OPTIONS
Contact: <sip:84957777777@222.222.222.222:5061>
Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, PRACK, REFER, REGISTER, UPDATE
Accept: application/sdp
Supported: 100rel
Max-Forwards: 70
User-Agent: MERA MVTS3G v.4.4.0-13a
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
<--- Transmitting (no NAT) to 222.222.222.222:5061 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 222.222.222.222:5061;rport;branch=z9hG4bK-2994321117-3776045454-570464409-1823896041;received=222.222.222.222
Via: SIP/2.0/UDP 222.222.222.222:5063;rport=5063;branch=z9hG4bK-2994321117-3776045454-570464409-182389604;received=222.222.222.222
From: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
To: "12345" <sip:12345@111.111.111.111>;tag=as22420006
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 103 OPTIONS
Server: FPBX-2.8.1(1.8.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: <sip:12345@111.111.111.111:5060>
Accept: application/sdp
Content-Length: 0
<------------>
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK30edfb98
From: "12345" <sip:12345@111.111.111.111>;tag=as22420006
To: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777777@222.222.222.222:5061>
Content-Type: application/sdp
Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, REFER, REGISTER, UPDATE
Server: MERA MVTS3G v.4.4.0-13a
X-mera-expires: 86460
Content-Length: 256
v=0
o=- 1335363653 1335363653 IN IP4 222.222.222.222
s=-
c=IN IP4 222.222.222.222
t=0 0
m=audio 23232 RTP/AVP 8 18 0
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=ptime:20
a=sendrecv
a=silenceSupp:off - - - -
<------------->
--- (12 headers 13 lines) ---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK30edfb98
From: "12345" <sip:12345@111.111.111.111>;tag=as22420006
To: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777777@222.222.222.222:5061>
Content-Type: application/sdp
Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, REFER, REGISTER, UPDATE
Server: MERA MVTS3G v.4.4.0-13a
X-mera-expires: 86460
Content-Length: 256
v=0
o=- 1335363653 1335363653 IN IP4 222.222.222.222
s=-
c=IN IP4 222.222.222.222
t=0 0
m=audio 23232 RTP/AVP 8 18 0
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=ptime:20
a=sendrecv
a=silenceSupp:off - - - -
<------------->
--- (12 headers 13 lines) ---
Transmitting (no NAT) to 222.222.222.222:5061:
ACK sip:84957777777@222.222.222.222:5061 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK760bfcfd
Max-Forwards: 70
From: "12345" <sip:12345@111.111.111.111>;tag=as22420006
To: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
Contact: <sip:12345@111.111.111.111:5060>
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 102 ACK
User-Agent: FPBX-2.8.1(1.8.7.0)
Content-Length: 0
Scheduling destruction of SIP dialog '4400be4662d11da677702e2273448161@111.111.111.111:5060' in 32000 ms (Method: OPTIONS)
Really destroying SIP dialog '4400be4662d11da677702e2273448161@111.111.111.111:5060' Method: OPTIONS
<--- SIP read from UDP:222.222.222.222:5061 --->
BYE sip:12345@111.111.111.111:5060 SIP/2.0
Via: SIP/2.0/UDP 222.222.222.222:5061;rport;branch=z9hG4bK-3432412912-3776045454-570442394-1823896041
Via: SIP/2.0/UDP 222.222.222.222:5063;rport=5063;branch=z9hG4bK-3432412912-3776045454-570442394-182389604;received=222.222.222.222
From: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
To: "12345" <sip:12345@111.111.111.111>;tag=as22420006
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 104 BYE
Contact: <sip:84957777777@222.222.222.222:5061>
Max-Forwards: 70
User-Agent: MERA MVTS3G v.4.4.0-13a
Reason: Q.850;cause=16;text="Normal call clearing"
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
<--- Transmitting (no NAT) to 222.222.222.222:5061 --->
SIP/2.0 481 Call leg/transaction does not exist
Via: SIP/2.0/UDP 222.222.222.222:5061;rport;branch=z9hG4bK-3432412912-3776045454-570442394-1823896041;received=222.222.222.222
Via: SIP/2.0/UDP 222.222.222.222:5063;rport=5063;branch=z9hG4bK-3432412912-3776045454-570442394-182389604;received=222.222.222.222
From: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
To: "12345" <sip:12345@111.111.111.111>;tag=as22420006
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 104 BYE
Server: FPBX-2.8.1(1.8.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
Adding codec 0x8 (alaw) to SDP
Adding codec 0x100 (g729) to SDP
Adding codec 0x1 (g723) to SDP
Adding codec 0x4 (ulaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 222.222.222.222:5061:
INVITE sip:84957777777@222.222.222.222:5061 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK30edfb98
Max-Forwards: 70
From: "12345" <sip:12345@111.111.111.111>;tag=as22420006
To: <sip:84957777777@222.222.222.222:5061>
Contact: <sip:12345@111.111.111.111:5060>
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.8.1(1.8.7.0)
Date: Wed, 25 Apr 2012 14:20:52 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 353
v=0
o=root 1398468448 1398468448 IN IP4 111.111.111.111
s=Asterisk PBX 1.8.7.0
c=IN IP4 111.111.111.111
t=0 0
m=audio 17920 RTP/AVP 8 18 4 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK30edfb98
From: "12345" <sip:12345@111.111.111.111>;tag=as22420006
To: <sip:84957777777@222.222.222.222:5061>
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777777@222.222.222.222:5061>
Server: MERA MVTS3G v.4.4.0-13a
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK30edfb98
From: "12345" <sip:12345@111.111.111.111>;tag=as22420006
To: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777777@222.222.222.222:5061>
Content-Type: application/sdp
Server: MERA MVTS3G v.4.4.0-13a
Content-Length: 256
v=0
o=- 1335363653 1335363653 IN IP4 222.222.222.222
s=-
c=IN IP4 222.222.222.222
t=0 0
m=audio 23232 RTP/AVP 8 18 0
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=ptime:20
a=sendrecv
a=silenceSupp:off - - - -
<------------->
--- (10 headers 13 lines) ---
Found RTP audio format 8
Found RTP audio format 18
Found RTP audio format 0
Found audio description format PCMA for ID 8
Found audio description format G729 for ID 18
Found audio description format PCMU for ID 0
Capabilities: us - 0x10d (g723|ulaw|alaw|g729), peer - audio=0x10c (ulaw|alaw|g729)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x10c (ulaw|alaw|g729)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x0 (nothing), combined - 0x0 (nothing)
Peer audio RTP is at port 222.222.222.222:23232
<--- SIP read from UDP:222.222.222.222:5061 --->
OPTIONS sip:12345@111.111.111.111:5060 SIP/2.0
Via: SIP/2.0/UDP 222.222.222.222:5061;rport;branch=z9hG4bK-2994321117-3776045454-570464409-1823896041
Via: SIP/2.0/UDP 222.222.222.222:5063;rport=5063;branch=z9hG4bK-2994321117-3776045454-570464409-182389604;received=222.222.222.222
From: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
To: "12345" <sip:12345@111.111.111.111>;tag=as22420006
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 103 OPTIONS
Contact: <sip:84957777777@222.222.222.222:5061>
Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, PRACK, REFER, REGISTER, UPDATE
Accept: application/sdp
Supported: 100rel
Max-Forwards: 70
User-Agent: MERA MVTS3G v.4.4.0-13a
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
<--- Transmitting (no NAT) to 222.222.222.222:5061 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 222.222.222.222:5061;rport;branch=z9hG4bK-2994321117-3776045454-570464409-1823896041;received=222.222.222.222
Via: SIP/2.0/UDP 222.222.222.222:5063;rport=5063;branch=z9hG4bK-2994321117-3776045454-570464409-182389604;received=222.222.222.222
From: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
To: "12345" <sip:12345@111.111.111.111>;tag=as22420006
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 103 OPTIONS
Server: FPBX-2.8.1(1.8.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: <sip:12345@111.111.111.111:5060>
Accept: application/sdp
Content-Length: 0
<------------>
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK30edfb98
From: "12345" <sip:12345@111.111.111.111>;tag=as22420006
To: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777777@222.222.222.222:5061>
Content-Type: application/sdp
Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, REFER, REGISTER, UPDATE
Server: MERA MVTS3G v.4.4.0-13a
X-mera-expires: 86460
Content-Length: 256
v=0
o=- 1335363653 1335363653 IN IP4 222.222.222.222
s=-
c=IN IP4 222.222.222.222
t=0 0
m=audio 23232 RTP/AVP 8 18 0
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=ptime:20
a=sendrecv
a=silenceSupp:off - - - -
<------------->
--- (12 headers 13 lines) ---
<--- SIP read from UDP:222.222.222.222:5061 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK30edfb98
From: "12345" <sip:12345@111.111.111.111>;tag=as22420006
To: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 102 INVITE
Contact: <sip:84957777777@222.222.222.222:5061>
Content-Type: application/sdp
Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, REFER, REGISTER, UPDATE
Server: MERA MVTS3G v.4.4.0-13a
X-mera-expires: 86460
Content-Length: 256
v=0
o=- 1335363653 1335363653 IN IP4 222.222.222.222
s=-
c=IN IP4 222.222.222.222
t=0 0
m=audio 23232 RTP/AVP 8 18 0
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=ptime:20
a=sendrecv
a=silenceSupp:off - - - -
<------------->
--- (12 headers 13 lines) ---
Transmitting (no NAT) to 222.222.222.222:5061:
ACK sip:84957777777@222.222.222.222:5061 SIP/2.0
Via: SIP/2.0/UDP 111.111.111.111:5060;branch=z9hG4bK760bfcfd
Max-Forwards: 70
From: "12345" <sip:12345@111.111.111.111>;tag=as22420006
To: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
Contact: <sip:12345@111.111.111.111:5060>
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 102 ACK
User-Agent: FPBX-2.8.1(1.8.7.0)
Content-Length: 0
Scheduling destruction of SIP dialog '4400be4662d11da677702e2273448161@111.111.111.111:5060' in 32000 ms (Method: OPTIONS)
Really destroying SIP dialog '4400be4662d11da677702e2273448161@111.111.111.111:5060' Method: OPTIONS
<--- SIP read from UDP:222.222.222.222:5061 --->
BYE sip:12345@111.111.111.111:5060 SIP/2.0
Via: SIP/2.0/UDP 222.222.222.222:5061;rport;branch=z9hG4bK-3432412912-3776045454-570442394-1823896041
Via: SIP/2.0/UDP 222.222.222.222:5063;rport=5063;branch=z9hG4bK-3432412912-3776045454-570442394-182389604;received=222.222.222.222
From: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
To: "12345" <sip:12345@111.111.111.111>;tag=as22420006
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 104 BYE
Contact: <sip:84957777777@222.222.222.222:5061>
Max-Forwards: 70
User-Agent: MERA MVTS3G v.4.4.0-13a
Reason: Q.850;cause=16;text="Normal call clearing"
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
<--- Transmitting (no NAT) to 222.222.222.222:5061 --->
SIP/2.0 481 Call leg/transaction does not exist
Via: SIP/2.0/UDP 222.222.222.222:5061;rport;branch=z9hG4bK-3432412912-3776045454-570442394-1823896041;received=222.222.222.222
Via: SIP/2.0/UDP 222.222.222.222:5063;rport=5063;branch=z9hG4bK-3432412912-3776045454-570442394-182389604;received=222.222.222.222
From: <sip:84957777777@222.222.222.222:5061>;tag=678187997-3776045454-570464409-182389604
To: "12345" <sip:12345@111.111.111.111>;tag=as22420006
Call-ID: 4400be4662d11da677702e2273448161@111.111.111.111:5060
CSeq: 104 BYE
Server: FPBX-2.8.1(1.8.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
В диалоге проблемного звонка та сторона присылает информацию о RTP в сообщении 180. В беспроблемном звонке ее нет в этом сообщении. В беспроблемном звонке информация о RTP есть в сообщении 200 (ОК). В проблемном диалоге в сообщении 200 информации о RTP нету. Есть во втором сообщении 200 с противоположной стороны.
Что происходит дальше:
В беспроблемном диалоге я слышу собеседника, кладу трубку сам - Астериск говорит BYE, все ок.
В проблемном я не слышу собеседника. Кладу трубку. От Астериска никаких сообщений не следует. Всё это время с противоположной стороны льётся RTP трафик по нужным портам. Продолжает литься после завершения звонка. Перестает лишь литься когда противоположная сторона пытается завершить звонок. Приходит оттуда сообщение BYE. При этом Астериск отвечает 481 Call leg/transaction does not exist.
Интересуют мысли кто что думает по этому поводу. Баг Астериска? Или косяк оператора?
А вообще, есть еще один Астериск версии 1.6.2.20, который нормально обрабатывает точно такие же звонки.