Asterisk将SIP bye数据包发送到错误的目的地

时间:2015-07-13 13:28:39

标签: asterisk sip voip

Asterisk表现还不错,但最近未能将再打包发送给来电设备。

设备B向设备A发起SIP呼叫,设备A在1分钟后向设备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地址和端口号,但端口号不同。

来电者IP - 1000@175.XXX.49.162:9194

来自服务器的SIP再见数据包目的地 - 100@175.XXX.49.162:1439

你看到了什么问题吗?

1 个答案:

答案 0 :(得分:0)

您需要在INVITE消息中找到联系人。 REG联系人表明我在这里可用。 INVITE中的联系人意味着此会话/对话框将此所有未来请求发送到此IP:端口。

查看IP:用于发送BYE的端口在哪里,你应该能够知道它发生了什么。