[AsteriskBrasil] Puxar ligação por ramal

Ulisses Feres - Abratel Telecom uferes em abratel.com.br
Sábado Setembro 3 16:06:04 BRT 2011


http://www.voip-info.org/wiki/view/Asterisk+cmd+Pickup
voip-info:

warning: Do not use a global variable for PICKUPMARK - this should be a
normal channel variable instead. Otherwise every call made to extension
1234, 1235, etc would overwrite the global variable and so only the last
call made to an extension can be picked up. As for channel variables: pay
attention to variable inheritance. So, in the dialplan you must implement
pickup logic like:

exten => _*8.,1,Pickup(${EXTEN:2}@PICKUPMARK)
exten => _*8.,n,Hangup()

Don't set PICKUPMARK in the "extension" _*8. like in the example given
below, that's nonsense. You should set the channel variable when making a
call to the extension, something like:

exten => 1234,1,Set(__PICKUPMARK=1234)
exten => 1234,n,Dial(...)

Please take note of the two underscores before the variable name. That means
"inherit unlimited depth". You should be using macros to define extensions,
so better add that line to the macro. If you do so, your pickup logic will
work seamlessly.
Correction: It is sufficient to use a single underscore for "inherit once"
instead of two undescores!


Pickup(extension[@context])


Em 3 de setembro de 2011 15:20, Eduardo Leones
<eduardo.leones em yahoo.com.br>escreveu:

> Boa tarde,
>
> Não estou conseguindo criar um dial plan para puxar ligações por ramal.
> Estou usando o asterisk 1.4.18 com o seguinte dial plan:
>
> exten => _*7XXX,1,Pickup(${EXTEN:2}@PICKUPMARK)
> exten => _*7XXX,n,Hangup()
>
> Porém, não está funcionando, aparece o seguinte erro no CLI:
>
>
>     -- Executing [*7503 em ypytrix-05:2] Pickup("SIP/501-000063a2",
> "503 em PICKUPMARK") in new stack
> [Sep  3 14:54:26] NOTICE[17844]: app_directed_pickup.c:159 pickup_exec: No
> target channel found for 503.
>     -- Executing [*7503 em ypytrix-05:3] Hangup("SIP/501-000063a2", "") in
> new stack
>
>
> Alguém sabe como funciona o Pickup por ramal no asterisk 1.4?
>
> obrigado,
>
> Eduardo
>
> _______________________________________________
> KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk.
> - Hardware com alta disponibilidade de recursos e qualidade KHOMP
> - Suporte técnico local qualificado e gratuito
> Conheça a linha completa de produtos KHOMP em www.khomp.com.br
> _______________________________________________
> DIGIVOICE: Lider no mercado de placas para Asterisk
> Único fabricante com Centro de Treinamento especializado.
> LANÇAMENTO: Channel Bank TDMoE, até 64 canais FXS / FXO.
> www.digivoice.com.br ou (11)3016-5200.
> ________
> LANÇAMENTO SHOPVOIP! Gateway Xibelis Lyric VoIP com 2,4 e 6 canais GSM.
> Arquitetura Escalável, Balanceamento de Carga, Portabilidade Numérica.
> Confira em http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org
> Mais informações: www.shopvoip.com.br ou 0800-6021244
> ______________________________________________
> Para remover seu email desta lista, basta enviar um email em branco para
> asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
>



-- 
Obg,
Ulisses Féres.
Abratel Telecom
uferes em abratel.com.br
32-3722-4004 ramal 928
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20110903/cb16e4af/attachment.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil