kamailio无法匹配事务,以便在需要407代理身份验证后对基于身份的重新邀请进行答复

时间:2019-06-04 07:31:21

标签: sip kamailio

我已经设置了 Kamailio服务器5.1.8(x86_64 / linux)d8e930 ,以将邀请发送到 FreeSWITCH PBX 1.9.0-742-8f1b7e0〜64bit 等接收407,发送带有Auth标头的重新邀请。 这对于kamailio uac模块可以正常工作,并且FreeSWITCH接受基于auth的重新邀请并返回100,然后返回200。但是问题是Kamailio无法为答复匹配任何事务,并记录“无法匹配事务”,无法设置电话。

第一个邀请是

   INVITE sip:1231231230@<freeswitch pbx ip addr>:5080;pstn_inbound=true;ignore_userinfo=true SIP/2.0
   Via: SIP/2.0/UDP <kamailio server ip addr>:5060;branch=z9hG4bKcb16.c47db56d6d8eb62677a0f0dc733cd73d.0
   Max-Forwards: 69
   From: <sip:8887779996@<kamailio server ip addr>>;tag=d3276a78
   To: <sip:1231231230@<freeswitch pbx ip addr>:5080;pstn_inbound=true;ignore_userinfo=true>
   Call-ID: NWM5YjcxMmZjNmI2YTE0OTEyMjdmMzZiZjM2MTBjZjE
   CSeq: 1 INVITE
   Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
   Content-Type: application/sdp
   Supported: replaces
   User-Agent: Bria 3 release 3.5.5 stamp 71243
   Content-Length: 286
   Contact: <sip:btpsh-5cf6099a-1435-1@<kamailio server ip addr>>

   v=0
   o=- 1559628205454881 1 IN IP4 <local ip addr>
   s=Bria 3 release 3.5.5 stamp 71243
   c=IN IP4 <local ip addr>
   t=0 0
   m=audio 52882 RTP/AVP 9 0 18 98 101
   a=rtpmap:18 G729/8000
   a=fmtp:18 annexb=yes
   a=rtpmap:98 ILBC/8000
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-15
   a=sendrecv

基于身份验证的邀请是

   INVITE sip:1231231230@<freeswitch pbx ip addr>:5080;pstn_inbound=true;ignore_userinfo=true SIP/2.0
   Via: SIP/2.0/UDP <kamailio server ip addr>:5060;branch=z9hG4bKcb16.c47db56d6d8eb62677a0f0dc733cd73d.1.cs1
   Max-Forwards: 69
   From: <sip:8887779996@<kamailio server ip addr>>;tag=d3276a78
   To: <sip:1231231230@<freeswitch pbx ip addr>:5080;pstn_inbound=true;ignore_userinfo=true>
   Call-ID: NWM5YjcxMmZjNmI2YTE0OTEyMjdmMzZiZjM2MTBjZjE
   CSeq: 2 INVITE
   Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
   Content-Type: application/sdp
   Supported: replaces
   User-Agent: Bria 3 release 3.5.5 stamp 71243
   Content-Length: 286
   Proxy-Authorization: Digest username="7777777777", realm="<freeswitch pbx ip addr>", nonce="56a27784-a766-4660-90d2-875ddb1d622a", uri="sip:1231231230@<freeswitch pbx ip addr>:5080;pstn_inbound=true;ignore_userinfo=true", qop=auth, nc=00000001, cnonce="4289969375", response="cc8b3f69c58e7d894418bae5efb01baf", algorithm=MD5
   Contact: <sip:btpsh-5cf6099a-1433-1@<kamailio server ip addr>>

   v=0
   o=- 1559628205454881 1 IN IP4 <local ip addr>
   s=Bria 3 release 3.5.5 stamp 71243
   c=IN IP4 <local ip addr>
   t=0 0
   m=audio 52882 RTP/AVP 9 0 18 98 101
   a=rtpmap:18 G729/8000
   a=fmtp:18 annexb=yes
   a=rtpmap:98 ILBC/8000
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-15
   a=sendrecv

关于防止“未找到交易-(分支-1)”的任何建议,以及 “ t_reply_matching():无法匹配交易”方案将很有帮助。

0 个答案:

没有答案