Contents

Introduction

Problema

Solução

Introduction

Os dispositivos de Gateway de Mídia T1 (TIMG) e Gateway de Mídia IP (PIMG) PBX são usados para permitir que os PBXs usem o Unity Connection como seu sistema de correio de voz. A comunicação do TIMG/PIMG para o Unity Connection é através do Session Initiation Protocol (SIP). A comunicação do PBX para o Unity Connection é feita via Time-Division Multiplexing (TDM).

Este documento descreve um problema que pode ser encontrado com esse tipo de integração.

Problema

O Unity Connection é configurado para trabalhar com TIMG a fim de se integrar com o PBX. Quando você chama um PBX e Tocar sem resposta ou Desviar todas as chamadas para o correio de voz, a chamada vai para a Saudação de abertura em vez de para a saudação do correio de voz.

Os rastreamentos mostram:

Note: Algumas partes do rastreamento foram reorganizadas para facilitar a visualização.

O TIMG compõe um convite porque recebeu a chamada física. No entanto, neste ponto, o TIMG não recebeu nenhuma informação de chamada do 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

Nesse ponto, a chamada foi atendida e o chamador ouve a saudação de abertura.

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

O TIMG recebeu as informações de chamada do PBX. Neste ponto, é tarde demais, pois a chamada já foi roteada para o 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)

Após analisar as regras do Adept, as informações de chamada do PBX são organizadas para essa instrução. Isso deve ter sido recebido antes do convite para que o convite possa ser composto corretamente.

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

Aqui, o TIMG tenta agir com base nas informações atualizadas da chamada. No entanto, isso não é aceito pelo 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

Note: O restante do rastreamento foi truncado.

O principal problema aqui é que as informações de chamada do PBX chegam cerca de quatro segundos após a chamada física que disparou o convite para ser enviado ao Unity Connection ser recebida. Assim, a chamada rolou para a Saudação de Abertura porque não há Desvio: estava contida no convite inicial para o Unity Connection para informar ao Unity Connection qual caixa de correio rotear a chamada.

Solução

Para corrigir esse problema, navegue para Configuration > TDM > General, localize Maximum Call Party Delay (ms) e altere-o para um valor como 5.000 ms. Isso adiciona um atraso de cinco segundos antes que o convite inicial seja composto para o Unity Connection, o que permite tempo para que todas as informações de chamada sejam recebidas do PBX.