简介
T1媒体网关(TIMG)和PBX IP媒体网关(PIMG)设备用于允许PBX将Unity Connection用作其语音邮件系统。从TIMG/PIMG到Unity Connection的通信通过会话发起协议(SIP)。 从PBX到Unity Connection的通信通过时分复用(TDM)。
本文档介绍此类集成可能遇到的问题。
问题
Unity Connection配置为与TIMG配合使用,以便与PBX集成。当您呼叫PBX和无应答铃声或全部呼叫转移到语音邮件时,呼叫将转到开场问候语,而不是语音邮件问候语。
跟踪显示:
注意:已重新组织跟踪的某些部分,以便更容易查看。
TIMG组成邀请,因为它已收到实际呼叫。但是,此时,TIMG尚未收到来自PBX的任何呼叫信息。
087:57.872 [VoIP ] Prot <----INVITE sip:Anonymous@14.48.13.103:5060 SIP/2.0
087:57.872 [VoIP ] Prot From:"Anonymous"<sip:Anonymous@14.48.13.115:5060;
user=phone>;vnd.pimg.port=7;tag=42B2324631353641000A6029
087:57.872 [VoIP ] Prot To:"Anonymous"<sip:Anonymous@14.48.13.103:5060>
087:57.872 [VoIP ] Prot Contact:<sip:14.48.13.115:5060>
087:57.872 [VoIP ] Prot Content-Type:application/sdp
087:57.872 [VoIP ] Prot Supported:replaces,early-session,100rel
087:57.872 [VoIP ] Prot Allow:INVITE,BYE,CANCEL,REFER,NOTIFY,OPTIONS,
REGISTER, INFO,ACK,PRACK
087:57.872 [VoIP ] Prot Expires:120
087:57.872 [VoIP ] Prot Call-ID:01B22816147E007E00000019@14.48.13.103
087:57.872 [VoIP ] Prot CSeq:1 INVITE
087:57.872 [VoIP ] Prot Max-Forwards:70
087:57.872 [VoIP ] Prot User-Agent:Voice Messaging
087:57.872 [VoIP ] Prot Via:SIP/2.0/UDP 14.48.13.115:5060;branch=z9hG4bKC
621E66EBDE4CB89FF423B472071147B
087:57.872 [VoIP ] Prot Content-Length:219
087:57.872 [VoIP ] Prot
087:57.872 [VoIP ] Prot v=0
087:57.872 [VoIP ] Prot o=phone 3397 20425 IN IP4 14.48.13.115
087:57.872 [VoIP ] Prot s=-
087:57.872 [VoIP ] Prot c=IN IP4 14.48.13.115
087:57.872 [VoIP ] Prot t=0 0
087:57.872 [VoIP ] Prot m=audio 18698 RTP/AVP 0 101 13
087:57.872 [VoIP ] Prot a=rtpmap:0 PCMU/8000/1
087:57.872 [VoIP ] Prot a=ptime:30
087:57.872 [VoIP ] Prot a=rtpmap:101 telephone-event/8000
087:57.872 [VoIP ] Prot a=fmtp:101 0-15
087:57.872 [VoIP ] Prot a=rtpmap:13 CN/8000
087:57.872 [VoIP ] Prot
087:57.872 [VoIP ] Prot ---->SIP/2.0 100 Trying
087:57.872 [VoIP ] Prot From: "Anonymous"<sip:Anonymous@14.48.13.115:5060;
user=phone>;vnd.pimg.port=7;tag=42B2324631353641000A6029
087:57.872 [VoIP ] Prot To: "Anonymous"<sip:Anonymous@14.48.13.103:5060>;
tag=f0c09771bd2942e7a57794619f8efccd
087:57.872 [VoIP ] Prot Via: SIP/2.0/UDP 14.48.13.115:5060;branch=z9hG4bKC
621E66EBDE4CB89FF423B472071147B
087:57.872 [VoIP ] Prot Expires: 120
087:57.872 [VoIP ] Prot Call-ID: 01B22816147E007E00000019@14.48.13.103
087:57.872 [VoIP ] Prot CSeq: 1 INVITE
087:57.872 [VoIP ] Prot Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,
REGISTER,SUBSCRIBE
087:57.872 [VoIP ] Prot Content-Length: 0
087:57.872 [VoIP ] Prot
087:57.888 [VoIP ] Prot
087:57.888 [VoIP ] Prot ---->SIP/2.0 180 Ringing
087:57.888 [VoIP ] Prot From: "Anonymous"<sip:Anonymous@14.48.13.115:5060;
user=phone>;vnd.pimg.port=7;tag=42B2324631353641000A6029
087:57.888 [VoIP ] Prot To: "Anonymous"<sip:Anonymous@14.48.13.103:5060>;
tag=f0c09771bd2942e7a57794619f8efccd
087:57.888 [VoIP ] Prot Via: SIP/2.0/UDP 14.48.13.115:5060;branch=z9hG4bKC
621E66EBDE4CB89FF423B472071147B
087:57.888 [VoIP ] Prot Expires: 120
087:57.888 [VoIP ] Prot Call-ID: 01B22816147E007E00000019@14.48.13.103
087:57.888 [VoIP ] Prot CSeq: 1 INVITE
087:57.888 [VoIP ] Prot Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,
REGISTER,SUBSCRIBE
087:57.888 [VoIP ] Prot Content-Length: 0
087:57.888 [VoIP ] Prot
087:57.968 [VoIP ] Prot
087:57.968 [VoIP ] Prot ---->SIP/2.0 200 OK
087:57.968 [VoIP ] Prot From: "Anonymous"<sip:Anonymous@14.48.13.115:5060;
user=phone>;vnd.pimg.port=7;tag=42B2324631353641000A6029
087:57.968 [VoIP ] Prot To: "Anonymous"<sip:Anonymous@14.48.13.103:5060>;
tag=f0c09771bd2942e7a57794619f8efccd
087:57.968 [VoIP ] Prot Via: SIP/2.0/UDP 14.48.13.115:5060;branch=z9hG4bKC
621E66EBDE4CB89FF423B472071147B
087:57.968 [VoIP ] Prot Contact: <sip:14.48.13.103:5060>
087:57.968 [VoIP ] Prot Expires: 120
087:57.968 [VoIP ] Prot Call-ID: 01B22816147E007E00000019@14.48.13.103
087:57.968 [VoIP ] Prot CSeq: 1 INVITE
087:57.968 [VoIP ] Prot Allow-Events: kpml
087:57.968 [VoIP ] Prot Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,
REGISTER,SUBSCRIBE
087:57.968 [VoIP ] Prot Content-Length: 224
087:57.968 [VoIP ] Prot Content-Type: application/sdp
087:57.968 [VoIP ] Prot
087:57.968 [VoIP ] Prot v=0
087:57.968 [VoIP ] Prot o=CiscoSystemsUCXN 399280213 399280214 IN IP4 14.
48.13.103
087:57.968 [VoIP ] Prot s=No Subject
087:57.968 [VoIP ] Prot c=IN IP4 14.48.13.103
087:57.968 [VoIP ] Prot t=0 0
087:57.968 [VoIP ] Prot m=audio 16716 RTP/AVP 0 101
087:57.968 [VoIP ] Prot a=rtpmap:0 PCMU/8000/1
087:57.968 [VoIP ] Prot a=ptime:30
087:57.968 [VoIP ] Prot a=rtpmap:101 telephone-event/8000
087:57.968 [VoIP ] Prot a=fmtp:101 0-15
此时,呼叫已应答,呼叫者听到“打开问候语”。
087:58.448 [VoIP ] Prot ---->SIP/2.0 200 OK
087:58.448 [VoIP ] Prot From: "Anonymous"<sip:Anonymous@14.48.13.115:5060;
user=phone>;vnd.pimg.port=7;tag=42B2324631353641000A6029
087:58.448 [VoIP ] Prot To: "Anonymous"<sip:Anonymous@14.48.13.103:5060>;
tag=f0c09771bd2942e7a57794619f8efccd
087:58.448 [VoIP ] Prot Via: SIP/2.0/UDP 14.48.13.115:5060;branch=z9hG4bKC
621E66EBDE4CB89FF423B472071147B
087:58.448 [VoIP ] Prot Contact: <sip:14.48.13.103:5060>
087:58.448 [VoIP ] Prot Expires: 120
087:58.448 [VoIP ] Prot Call-ID: 01B22816147E007E00000019@14.48.13.103
087:58.448 [VoIP ] Prot CSeq: 1 INVITE
087:58.448 [VoIP ] Prot Allow-Events: kpml
087:58.448 [VoIP ] Prot Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,
REGISTER,SUBSCRIBE
087:58.448 [VoIP ] Prot Content-Length: 224
087:58.448 [VoIP ] Prot Content-Type: application/sdp
087:58.448 [VoIP ] Prot
087:58.448 [VoIP ] Prot v=0
087:58.448 [VoIP ] Prot o=CiscoSystemsUCXN 399280213 399280214 IN IP4 14.
48.13.103
087:58.448 [VoIP ] Prot s=No Subject
087:58.448 [VoIP ] Prot c=IN IP4 14.48.13.103
087:58.448 [VoIP ] Prot t=0 0
087:58.448 [VoIP ] Prot m=audio 16716 RTP/AVP 0 101
087:58.448 [VoIP ] Prot a=rtpmap:0 PCMU/8000/1
087:58.448 [VoIP ] Prot a=ptime:30
087:58.448 [VoIP ] Prot a=rtpmap:101 telephone-event/8000
087:58.448 [VoIP ] Prot a=fmtp:101 0-15
TIMG已从PBX接收呼叫信息。此时,由于呼叫已路由到Unity Connection,因此为时已晚。
087:58.384 [Tel-7 ] Event Dtmf (#) On
087:58.384 [Tel-7 ] Event Dtmf (#) Off
087:58.592 [Tel-7 ] Event Dtmf (0) On
087:58.592 [Tel-7 ] Event Dtmf (0) Off
087:58.768 [Tel-7 ] Event Dtmf (2) On
087:58.768 [Tel-7 ] Event Dtmf (2) Off
087:58.960 [Tel-7 ] Event Dtmf (#) On
087:58.960 [Tel-7 ] Event Dtmf (#) Off
087:59.168 [Tel-7 ] Event Dtmf (5) On
087:59.168 [Tel-7 ] Event Dtmf (5) Off
087:59.344 [Tel-7 ] Event Dtmf (2) On
087:59.344 [Tel-7 ] Event Dtmf (2) Off
087:59.408 [VoIP ] Prot
087:59.536 [Tel-7 ] Event Dtmf (8) On
087:59.536 [Tel-7 ] Event Dtmf (8) Off
087:59.744 [Tel-7 ] Event Dtmf (6) On
087:59.744 [Tel-7 ] Event Dtmf (6) Off
087:59.920 [Tel-7 ] Event Dtmf (#) On
087:59.920 [Tel-7 ] Event Dtmf (#) Off
088:00.112 [Tel-7 ] Event Dtmf (5) On
088:00.112 [Tel-7 ] Event Dtmf (5) Off
088:00.320 [Tel-7 ] Event Dtmf (5) On
088:00.320 [Tel-7 ] Event Dtmf (5) Off
088:00.496 [Tel-7 ] Event Dtmf (8) On
088:00.496 [Tel-7 ] Event Dtmf (8) Off
088:00.688 [Tel-7 ] Event Dtmf (8) On
088:00.688 [Tel-7 ] Event Dtmf (8) Off
088:00.896 [Tel-7 ] Event Dtmf (#) On
088:00.896 [Tel-7 ] Event Dtmf (#) Off
088:01.328 [VoIP ] Prot
087:59.408 [VoIP ] Prot ---->SIP/2.0 200 OK
087:59.408 [VoIP ] Prot From: "Anonymous"<sip:Anonymous@14.48.13.115:5060;
user=phone>;vnd.pimg.port=7;tag=42B2324631353641000A6029
087:59.408 [VoIP ] Prot To: "Anonymous"<sip:Anonymous@14.48.13.103:5060>;
tag=f0c09771bd2942e7a57794619f8efccd
087:59.408 [VoIP ] Prot Via: SIP/2.0/UDP 14.48.13.115:5060;branch=z9hG4bKC
621E66EBDE4CB89FF423B472071147B
087:59.408 [VoIP ] Prot Contact: <sip:14.48.13.103:5060>
087:59.408 [VoIP ] Prot Expires: 120
087:59.408 [VoIP ] Prot Call-ID: 01B22816147E007E00000019@14.48.13.103
087:59.408 [VoIP ] Prot CSeq: 1 INVITE
087:59.408 [VoIP ] Prot Allow-Events: kpml
087:59.408 [VoIP ] Prot Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,
REGISTER,SUBSCRIBE
087:59.408 [VoIP ] Prot Content-Length: 224
087:59.408 [VoIP ] Prot Content-Type: application/sdp
087:59.408 [VoIP ] Prot
087:59.408 [VoIP ] Prot v=0
087:59.408 [VoIP ] Prot o=CiscoSystemsUCXN 399280213 399280214 IN IP4 14.48.
13.103
087:59.408 [VoIP ] Prot s=No Subject
087:59.408 [VoIP ] Prot c=IN IP4 14.48.13.103
087:59.408 [VoIP ] Prot t=0 0
087:59.408 [VoIP ] Prot m=audio 16716 RTP/AVP 0 101
087:59.408 [VoIP ] Prot a=rtpmap:0 PCMU/8000/1
087:59.408 [VoIP ] Prot a=ptime:30
087:59.408 [VoIP ] Prot a=rtpmap:101 telephone-event/8000
087:59.408 [VoIP ] Prot a=fmtp:101 0-15
088:01.328 [VoIP ] Prot ---->SIP/2.0 200 OK
088:01.328 [VoIP ] Prot From: "Anonymous"<sip:Anonymous@14.48.13.115:5060;
user=phone>;vnd.pimg.port=7;tag=42B2324631353641000A6029
088:01.328 [VoIP ] Prot To: "Anonymous"<sip:Anonymous@14.48.13.103:5060>;
tag=f0c09771bd2942e7a57794619f8efccd
088:01.328 [VoIP ] Prot Via: SIP/2.0/UDP 14.48.13.115:5060;branch=z9hG4bKC
621E66EBDE4CB89FF423B472071147B
088:01.328 [VoIP ] Prot Contact: <sip:14.48.13.103:5060>
088:01.328 [VoIP ] Prot Expires: 120
088:01.328 [VoIP ] Prot Call-ID: 01B22816147E007E00000019@14.48.13.103
088:01.328 [VoIP ] Prot CSeq: 1 INVITE
088:01.328 [VoIP ] Prot Allow-Events: kpml
088:01.328 [VoIP ] Prot Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,
REGISTER,SUBSCRIBE
088:01.328 [VoIP ] Prot Content-Length: 224
088:01.328 [VoIP ] Prot Content-Type: application/sdp
088:01.328 [VoIP ] Prot
088:01.328 [VoIP ] Prot v=0
088:01.328 [VoIP ] Prot o=CiscoSystemsUCXN 399280213 399280214 IN IP4 14.48.
13.103
088:01.328 [VoIP ] Prot s=No Subject
088:01.328 [VoIP ] Prot c=IN IP4 14.48.13.103
088:01.328 [VoIP ] Prot t=0 0
088:01.328 [VoIP ] Prot m=audio 16716 RTP/AVP 0 101
088:01.328 [VoIP ] Prot a=rtpmap:0 PCMU/8000/1
088:01.328 [VoIP ] Prot a=ptime:30
088:01.328 [VoIP ] Prot a=rtpmap:101 telephone-event/8000
088:01.328 [VoIP ] Prot a=fmtp:101 0-15
088:01.920 [Tel-7 ] Event Tone Detect Enabled (0xFF)
解析Adept规则后,PBX的呼叫信息将组织到此语句。应在邀请之前收到此邀请,以便可以正确组合邀请。
088:01.920 [Tel-7 ] Event Cpid (5286,->,->5588,) (NoAns)
088:01.920 [VoIP ] Prot <----ACK sip:14.48.13.103:5060 SIP/2.0
088:01.920 [VoIP ] Prot CSeq:1 ACK
088:01.920 [VoIP ] Prot To:"Anonymous"<sip:Anonymous@14.48.13.103:5060>;
tag=f0c09771bd2942e7a57794619f8efccd
088:01.920 [VoIP ] Prot From:"Anonymous"<sip:Anonymous@14.48.13.115:5060;
user=phone>;vnd.pimg.port=7;tag=42B2324631353641000A6029
088:01.920 [VoIP ] Prot Call-ID:01B22816147E007E00000019@14.48.13.103
088:01.920 [VoIP ] Prot Max-Forwards:70
088:01.920 [VoIP ] Prot User-Agent:Voice Messaging
088:01.920 [VoIP ] Prot Via:SIP/2.0/UDP 14.48.13.115:5060;branch=z9hG4bK3
032A56F55534D5407B2D30922E6F860
088:01.920 [VoIP ] Prot Content-Length:0
088:01.920 [VoIP ] Prot
088:01.920 [VoIP ] Prot
此处TIMG尝试对更新的呼叫信息执行操作。但是,Unity Connection不接受此设置。
088:01.920 [VoIP ] Prot <----INFO sip:14.48.13.103:5060 SIP/2.0
088:01.920 [VoIP ] Prot Diversion:
;reason=no-answer
088:01.920 [VoIP ] Prot Content-Type:text/source-party
088:01.920 [VoIP ] Prot To:"Anonymous"<sip:Anonymous@14.48.13.103:5060>;
tag=f0c09771bd2942e7a57794619f8efccd
088:01.920 [VoIP ] Prot From:"Anonymous"<sip:Anonymous@14.48.13.115:5060;
user=phone>;vnd.pimg.port=7;tag=42B2324631353641000A6029
088:01.920 [VoIP ] Prot Call-ID:01B22816147E007E00000019@14.48.13.103
088:01.920 [VoIP ] Prot CSeq:2 INFO
088:01.920 [VoIP ] Prot Max-Forwards:70
088:01.920 [VoIP ] Prot User-Agent:Voice Messaging
088:01.920 [VoIP ] Prot Via:SIP/2.0/UDP 14.48.13.115:5060;branch=z9hG4bK6
EBB9CF7420BA1A393273882D5157413
088:01.920 [VoIP ] Prot Content-Length:6
088:01.920 [VoIP ] Prot
088:01.920 [VoIP ] Prot 5286
088:01.968 [VoIP ] Prot
088:01.968 [VoIP ] Prot ---->SIP/2.0 200 OK
088:01.968 [VoIP ] Prot From: "Anonymous"<sip:Anonymous@14.48.13.115:5060;
user=phone>;vnd.pimg.port=7;tag=42B2324631353641000A6029
088:01.968 [VoIP ] Prot To: "Anonymous"<sip:Anonymous@14.48.13.103:5060>;
tag=f0c09771bd2942e7a57794619f8efccd
088:01.968 [VoIP ] Prot Via: SIP/2.0/UDP 14.48.13.115:5060;branch=z9hG4bK6
EBB9CF7420BA1A393273882D5157413
088:01.968 [VoIP ] Prot Call-ID: 01B22816147E007E00000019@14.48.13.103
088:01.968 [VoIP ] Prot CSeq: 2 INFO
088:01.968 [VoIP ] Prot Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,
REGISTER,SUBSCRIBE
088:01.968 [VoIP ] Prot Content-Length: 0
088:01.968 [VoIP ] Prot
注意:跟踪的剩余部分已被截断。
这里的主要问题是,来自PBX的呼叫信息在收到触发要发送到Unity Connection的邀请的物理呼叫后大约四秒钟到达。因此,由于没有转移,呼叫转到“开场白”:包含在Unity Connection的初始邀请中,用于告知Unity Connection哪个邮箱用于路由呼叫。
解决方案
要解决此问题,请导航至Configuration > TDM > General,找到Maximum Call Party Delay(ms),然后将其更改为5,000毫秒等值。这会在初始邀请组成到Unity Connection之前增加5秒的延迟,这允许从PBX接收所有呼叫信息的时间。
