[AsteriskBrasil] Problemas - TMAIS

Junior Polegato - Asterisk asterisk em juniorpolegato.com.br
Terça Março 6 09:42:30 BRT 2007


Silvio Marçal escreveu:
> Ele disse que os codes abaixo soa o compativeis?
> AGORA ele toca mas quando atende fica mudo.
> Att
> Silvio
>
> G729 for ID 18
> PCMU for ID 0
> G723 for ID 4
> PCMA for ID 8
> GSM for ID 3-
>   

Olá Silvio,

  Perfeito. Se não tem licença para G729 e nem para G723, use o GSM que 
creio ser a melhor opção.
  Agora repare abaixo tem está havendo uma conexão entre 
1639116887 em 201.12.106.139:5060 e 627424201 em 192.168.0.99 sem NAT! Aí deve 
ser onde mora o problema! Tente colocar nat = yes no SIP da TMAIS. Outra 
coisa, acho que type = friends tem um 's' a mais.

> list_route: hop: <sip:1639116887 em 201.12.106.139:5060>
>
> <--- Transmitting (no NAT) to 201.12.106.139:5060 --->
> SIP/2.0 100 Trying
> Via: SIP/2.0/UDP 
> 201.12.106.139:5060;branch=z9hG4bK45ec3eea-26f9-1;received=201.12.106.139
> From: <sip:1639116887 em 201.12.106.139:5060>;tag=fff874e6-ensOBJ09977
> To: <sip:627424201 em 192.168.0.99:5060>
> Call-ID: 45ec3eea000006e70000080020a73cbc em ens.com
> CSeq: 59350 INVITE
> User-Agent: Asterisk PBX
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Supported: replaces
> Contact: <sip:627424201 em 192.168.0.99>
> Content-Length: 0
>
>
> <------------>
>     -- Executing [627424201 em DID_trunk_2:1] Goto("SIP/627424201-08248998", 
> "default|2002|1") in new stack
>     -- Goto (default,2002,1)
>     -- Executing [2002 em default:1] Dial("SIP/627424201-08248998", 
> "SIP/2002&IAX2/2002") in new stack
> Audio is at 192.168.0.99 port 11324
> Adding codec 0x2 (gsm) to SDP
> Adding codec 0x4 (ulaw) to SDP
> Adding codec 0x8 (alaw) to SDP
> Adding non-codec 0x1 (telephone-event) to SDP
> Reliably Transmitting (no NAT) to 192.168.0.19:5060:
> INVITE sip:2002 em 192.168.0.19:5060 SIP/2.0
> Via: SIP/2.0/UDP 192.168.0.99:5060;branch=z9hG4bK3ebd787e;rport
> From: "1639116887" <sip:1639116887 em 192.168.0.99>;tag=as1f27360e
> To: <sip:2002 em 192.168.0.19:5060>
> Contact: <sip:1639116887 em 192.168.0.99>
> Call-ID: 4f96a7921b1af7057d15a94927cbe1f4 em 192.168.0.99
> CSeq: 102 INVITE
> User-Agent: Asterisk PBX
> Max-Forwards: 70
> Date: Mon, 05 Mar 2007 16:16:58 GMT
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Supported: replaces
> Content-Type: application/sdp
> Content-Length: 285
>
> v=0
> o=root 3207 3207 IN IP4 192.168.0.99
> s=session
> c=IN IP4 192.168.0.99
> t=0 0
> m=audio 11324 RTP/AVP 3 0 8 101
> a=rtpmap:3 GSM/8000
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=silenceSupp:off - - - -
> a=ptime:20
> a=sendrecv
>
> ----- Original Message ----- 
> From: "Junior Polegato - Asterisk" <asterisk em juniorpolegato.com.br>
> To: <asteriskbrasil em listas.asteriskbrasil.org>
> Sent: Saturday, March 03, 2007 6:34 AM
> Subject: Re: [AsteriskBrasil] Problemas - TMAIS
>
>
> Silvio Marçal escreveu:
>   
>> está assim:
>> [TMAIS]
>> secret = XXXX
>> provider =
>> trunkstyle = customvoip
>> username = XXXXXXXXXX
>> trunkname = Custom - tmais
>> callerid =
>> hasexten = no
>> hassip = yes
>> hasiax = no
>> registeriax = no
>> registersip = yes
>> host = sip.tmais.com.br
>> dialformat = ${EXTEN:1}
>> context = DID_trunk_2
>> group =
>> insecure = very
>> fromuser = XXXXXXXX
>> fromdomain = sip.tmais.com.br
>> type = friends
>> disallow = all
>> allow = g729
>> Silvio
>> Silvio Marçal Orlandini
>> Jeito Tecnologia info em jeito.com.br <mailto:info em jeito.com.br>
>> 16 3911 6887
>> Rua Joaquim Antonio do Nascimento, 108 – CJ 2
>> CEP: 14 024-180 – Jardim Canadá
>> Ribeirão Preto – SP
>> www.jeito.com.br <http://www.jeito.com.br>
>>
>> São Paulo
>> 11 2626 3957
>>     
>
> Olá Silvio,
>
>
> No prompt do CLI, sem receber nem fazer nenhuma ligação, digite "sip
> debug" (sem aspas), depois faça um ligação, do seu celular por exemplo,
> para esse número da TMais e, e quanto notar que recebeu o chamado,
> desligue. Verá logo no começos os codes a TMais reconhece e os que você
> está querendo usar... Para usar o g729, tem que ter ele licenciado no
> Asterisk ou um de teste que tem pela net (não sei como funciona este
> último). Então pode ir trocando o "allow=g729" por cada um dos que a
> TMais reconhece e testar. Escolha o que melhor lhe servir em
> custo/benefício.
>
>   


-- 
Atenciosamente,

           Junior Polegato

           Um peregrino de problemas; Um pergaminho de soluções!
           Página Profissional: http://www.juniorpolegato.com.br



Mais detalhes sobre a lista de discussão AsteriskBrasil