我在尝试将 Lync 2010 电话呼叫与我们的 trixbox PBX 连接时遇到了问题。我发现 Kamailio 似乎运行正常,并充当 TCP 流量(来自 Lync)和 UDP 流量(到 trixbox,因为 Asterisk 1.4 不支持 TCP 上的 SIP)之间的桥梁。
我们的 Lync 盒 IP:10.100.10.41 我们的 Kamailio 盒 IP:10.100.10.44 我们的 trixbox IP:10.100.10.2
在为 Kamailio 盒启用 SIP 调试时我遇到的问题如下:
<--- SIP read from 10.100.10.44:5060 --->
PRACK sip:TNECLTSLY01.contoso.com:5068;transport=Tcp;maddr=10.100.10.41 SIP/2.0
FROM: <sip:9121;[email protected];user=phone>;epid=CF2380792B;tag=4852bab430
TO: <sip:[email protected];user=phone>;epid=CF2380792B;tag=3684a6a24e
CSEQ: 24 PRACK
CALL-ID: 192daae6-00e1-4140-bddd-0394b35d475b
MAX-FORWARDS: 70
Via: SIP/2.0/UDP 10.100.10.44;branch=z9hG4bKcydzigwkX;i=d
VIA: SIP/2.0/TCP 10.100.10.41:51677;branch=z9hG4bK159fc989
CONTACT: <sip:TNECLTSLY01.contoso.com:5068;transport=Tcp;maddr=10.100.10.41>
CONTENT-LENGTH: 0
USER-AGENT: RTCC/4.0.0.0 MediationServer
RAck: 1 23 INVITE
<------------->
--- (12 headers 0 lines) ---
Sending to 10.100.10.44 : 5060 (NAT)
<--- Transmitting (NAT) to 10.100.10.44:5060 --->
SIP/2.0 481 Call leg/transaction does not exist
Via: SIP/2.0/UDP 10.100.10.44;branch=z9hG4bKcydzigwkX;i=d;received=10.100.10.44
Via: SIP/2.0/TCP 10.100.10.41:51677;branch=z9hG4bK159fc989
From: <sip:9121;[email protected];user=phone>;epid=CF2380792B;tag=4852bab430
To: <sip:[email protected];user=phone>;epid=CF2380792B;tag=3684a6a24e
Call-ID: 192daae6-00e1-4140-bddd-0394b35d475b
CSeq: 24 PRACK
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0
<------------>
trixbox1*CLI>
<--- SIP read from 10.100.10.44:5060 --->
ACK sip:[email protected];user=phone SIP/2.0
FROM: "John Jones"<sip:9121;[email protected];user=phone>;tag=4852bab430;epid=CF2380792B
TO: <sip:[email protected];user=phone>;tag=3684a6a24e;epid=CF2380792B
CSEQ: 23 ACK
CALL-ID: 192daae6-00e1-4140-bddd-0394b35d475b
MAX-FORWARDS: 70
Via: SIP/2.0/UDP 10.100.10.44;branch=z9hG4bKcydzigwkX;i=d
VIA: SIP/2.0/TCP 10.100.10.41:51677;branch=z9hG4bK79a21c
CONTENT-LENGTH: 0
我在 trixbox 上的 SIP 中继如下所示:
[from-lync]
exten => _+4XXX!,1,Noop(Stripping + from start of number)
exten => _+4XXX!,n,Goto(from-internal,${EXTEN:1})
但是我还是没能成功去除 + 号或者接通电话。
任何想法都将不胜感激。
谢谢你!
-斜杠