Asterisk做得很好,但最近没有向调用方设备发送bye包。
设备B向设备a发起SIP呼叫,1分钟后设备a向设备a发送SIP再见报文。
Device A - Called Party
Reg. Contact : sip:2000@211.246.XXX.91:54323
U 2015/07/13 21:53:44.091979 211.246.XXX.91:54323 -> 10.XXX.72.19:6030
BYE sip:1000@210.122.11.241:6030 SIP/2.0..Via: SIP/2.0/UDP 102.0.124.254:32580;branch=z9hG4bK.5-5rCW4lT;rport..From: <s
ip:2000@211.246.XXX.91>;tag=~-IyfmX..To: <sip:1000@210.122.11.241>;tag=as0b8359cf..CSeq: 111 BYE..Call-ID: 04daa
8b23c0447754405d633412a24bf@210.122.11.241:6030..Max-Forwards: 70..User-Agent: LinphoneAndroid/1.4.11 (belle-sip/1.3.1)....
#
U 2015/07/13 21:53:44.092354 10.XXX.72.19:6030 -> 211.246.XXX.91:54323
SIP/2.0 200 OK..Via: SIP/2.0/UDP 102.0.124.254:32580;branch=z9hG4bK.5-5rCW4lT;received=211.246.XXX.91;rport=54323..From: <sip:82
1092705604@211.246.XXX.91>;tag=~-IyfmX..To: <sip:1000@210.122.11.241>;tag=as0b8359cf..Call-ID: 04daa8b23c0447754405d6334
12a24bf@210.122.11.241:6030..CSeq: 111 BYE..Server: Asterisk PBX 11.9.0..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSC
RIBE, NOTIFY, INFO, PUBLISH, MESSAGE..Supported: replaces, timer..Content-Length: 0....
Device B - Caller
Reg. Contact : sip:1000@175.XXX.49.162:9194
U 2015/07/13 21:53:44.127422 10.XXX.72.19:6030 -> 175.XXX.49.162:1439
BYE sip:1000@175.XXX.49.162:9194 SIP/2.0..Via: SIP/2.0/UDP 210.122.11.241:6030;branch=z9hG4bK3cbc2e04;rport..Max-Forwar
ds: 70..From: sip:2000@210.122.11.241;tag=as7398fff9..To: <sip:1000@210.122.11.241>;tag=jeOsviSOp..Call-ID: Kki
zsHTRXS..CSeq: 102 BYE..User-Agent: Asterisk PBX 11.9.0..Proxy-Authorization: Digest username="1000", realm="asterisk",
algorithm=MD5, uri="sip:210.122.11.241", nonce="23661ac5", response="f286abd0e61b6ca8bde7c3e0aaad0f0d"..X-Asterisk-HangupCause
: Normal Clearing..X-Asterisk-HangupCauseCode: 16..Content-Length: 0....
#
U 2015/07/13 21:53:44.627054 10.XXX.72.19:6030 -> 175.XXX.49.162:1439
BYE sip:1000@175.XXX.49.162:9194 SIP/2.0..Via: SIP/2.0/UDP 210.122.11.241:6030;branch=z9hG4bK3cbc2e04;rport..Max-Forwar
ds: 70..From: sip:2000@210.122.11.241;tag=as7398fff9..To: <sip:1000@210.122.11.241>;tag=jeOsviSOp..Call-ID: Kki
zsHTRXS..CSeq: 102 BYE..User-Agent: Asterisk PBX 11.9.0..Proxy-Authorization: Digest username="1000", realm="asterisk",
algorithm=MD5, uri="sip:210.122.11.241", nonce="23661ac5", response="f286abd0e61b6ca8bde7c3e0aaad0f0d"..X-Asterisk-HangupCause
: Normal Clearing..X-Asterisk-HangupCauseCode: 16..Content-Length: 0....
#
U 2015/07/13 21:53:45.627235 10.XXX.72.19:6030 -> 175.XXX.49.162:1439
BYE sip:1000@175.XXX.49.162:9194 SIP/2.0..Via: SIP/2.0/UDP 210.122.11.241:6030;branch=z9hG4bK3cbc2e04;rport..Max-Forwar
ds: 70..From: sip:2000@210.122.11.241;tag=as7398fff9..To: <sip:1000@210.122.11.241>;tag=jeOsviSOp..Call-ID: Kki
zsHTRXS..CSeq: 102 BYE..User-Agent: Asterisk PBX 11.9.0..Proxy-Authorization: Digest username="1000", realm="asterisk",
algorithm=MD5, uri="sip:210.122.11.241", nonce="23661ac5", response="f286abd0e61b6ca8bde7c3e0aaad0f0d"..X-Asterisk-HangupCause
: Normal Clearing..X-Asterisk-HangupCauseCode: 16..Content-Length: 0....
Asterisk应该向呼叫方IP地址和端口号发送bye报文,但是端口号不一致。
呼叫者IP - 1000@175.XXX.49.162:9194
SIP bye packet destination from server - 100@175.XXX.49.162:1439
你明白是什么问题了吗?
您需要在INVITE消息中找到联系人。REG联系人显示我在这里可用。由于INVITE中的Contact表示此会话/对话框将所有将来的请求发送到此IP:端口。
查看用于发送BYE的IP:Port在哪里,您应该能够弄清楚发生了什么。