[AsteriskBrasil] Caso Ocupado

Diogo Rocha Barbosa diogorb em gmail.com
Sexta Novembro 20 09:50:32 BRST 2009


Faltou dizer que existem varios dialstatus:

Contains a text string signifying result of the last
dial<http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial>attempt:


   - *ANSWER*: Call is answered. A successful dial. The caller reached the
   callee.
   - *BUSY*: Busy signal. The dial command reached its number but the number
   is busy.
   - *NOANSWER*: No answer. The dial command reached its number, the number
   rang for too long, then the dial timed out.
   - *CANCEL*: Call is cancelled. The dial command reached its number but
   the caller hung up before the callee picked up.
   - *CONGESTION*: Congestion. This status is usually a sign that the
   dialled number is not recognised.
   - *CHANUNAVAIL*: Channel unavailable. On SIP, peer may not be registered.

   - *DONTCALL*: Privacy mode, callee rejected the call
   - *TORTURE*: Privacy mode, callee chose to send caller to torture menu
   - *INVALIDARGS*: Error parsing Dial command arguments (added for Asterisk
   1.4.1, SVN r53135-53136)

Fonte: http://www.voip-info.org/wiki/view/Asterisk+variable+DIALSTATUS

2009/11/20 Diogo Rocha Barbosa <diogorb em gmail.com>

> faz um gotoif como este abaixo depois de um dial para o primeiro ramal:
>
> exten => s,n,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?RAMAL_SECUNDARIO)
>
>
> Cria um exten com o nome RAMAL_SECUNDARIO
>
> exten => s,n(RAMAL_SECUNDARIO),NoOp(Primeiro ramal ocupado, chamando
> segundo)
> exten => s,n,Dial....
> exten => s,n,Hangup
>
>
> 2009/11/20 Wendell Silva <wendbandeira em gmail.com>
>
>> Amigos, to precisando saber o contexto de redirecionamento de chamadas
>> caso um ramal esteja ocupado,
>>
>> O contexto precisa verificar se o SIP/1170 esta ocupado, caso esteja
>> ocupado mande para o meu segundo SIP disponivel,
>>
>>
>> Atentamente.
>>
>> Wendell Silva Bandeira
>>
>>
>> _______________________________________________
>>         http://www.voipmania.com.br
>> Telefone IP sem fio Gigaset A580IP por 6 x R$59,90.
>>         Promoção por tempo limitado!
>> _______________________________________________
>> Lista de discussões AsteriskBrasil.org
>> AsteriskBrasil em listas.asteriskbrasil.org
>> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>>
>
>
>
> --
> Diogo Rocha Barbosa
>



-- 
Diogo Rocha Barbosa
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20091120/ae1b14a6/attachment.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil