[AsteriskBrasil] Identificar ligações pelo Ring. (externas X internas)

Luciano Antonio Borguetti Faustino lucianoborguetti.listas em gmail.com
Quarta Setembro 30 11:29:07 BRT 2009


Em 30/09/09, Pablo Câmara<pscamara em gmail.com> escreveu:
> Olá pessoal.
> Asterisk 1.6
>
> Uma dúvida, existe algum modo de diferenciar o toque do telefone dependendo
> do tipo de ligação?
> Queria diferenciar as ligações internas das externas pelo Ring (toque) do
> telefone!
>
>
>    - Ligações Externas: Canal E1 (Tronco Embratel)
>    - Ligações Internas: Asterisk (IAX2 E SIP)
>
>
> Utilizamos os seguintes recursos:
>
>
>    - TELEFONES POLYCOM 330IP
>    - GATEWAY D-LINK  DVG 2032S
>
>
> Nos telefones Polycom, não existe a necessidade de alterar o toque, já que
> conseguimos visualizar o numero de quem está chamado. Porem nos
> telefones analógicos conectados no gateway não conseguimos identificar
> a procedência da ligação.
>
> Qualquer ajuda, apreciada.
>
> Obrigado!
>

Pablo,

Procure por Alert-Info.

http://www.voip-info.org/wiki/view/Asterisk+SIP+channels

Distinctive Ring Styles
There doesn't yet seem to be a standard for how to tell a SIP phone
that you want it to ring with a distinctive ring. On SIP handsets that
support distinctive ring at all, the exact method of specifying
distinctive ring varies from one model to another. Often (or always?)
it is by sending a SIP "Alert-info" header, but what the value of this
header should be is not consistent. If you can figure out what
Alert-info header Asterisk should send, then you can get Asterisk 1.0
and 1.2 to send such a header by setting the ALERT_INFO channel
variable before you Dial:

   exten => s,1,SetVar(ALERT_INFO=something)
   exten => s,2,Dial(SIP/myphone)


Obs: Teu equipamento precisa ter suporte.

Att,


-- 
#!/bin/bash

Luciano Antonio Borguetti Faustino
GNU/Linux user number: 339110
ICQ UIN number: 82092097 - ICQ ainda na atividade :)
http://lucianoborguetti.blogspot.com

Preconceito é opinião sem conhecimento.

:wq


Mais detalhes sobre a lista de discussão AsteriskBrasil