Limitar el tiempo de una llamada por extension

Joined
Oct 30, 2010
Messages
4
Points
0
me puedes ayudar

hola trucos te saluda jorge la verdad q soy nuevo y telefonia ip....y t estaria agradecido si me puedes ayudar...te comento trabajo en una municipalidad aca en peru, tengo un radio enlace el cual trabaja muy bien bajo esa plataforma envio voz tengo un server de voz en linux y elastix tengo los sigueintes problemas:
no entran ni salen llamadas de afuera y reiniciando el server se solucionan el problema.
cuando marco para afuera me sale un mensaje en ingles...
se me mueren los telefonos tengo q apagralos y volver a prenderlos son unos granteams se que son malos...y tengo otos linsys pero igual.
la verdad que ya no se q hacer. si m puedes ayudar t lo agradeceria...
 
Joined
Oct 22, 2007
Messages
493
Points
16
Re: me puedes ayudar

Hola jlsistemas

Te recomiendo darle un vistazo a los documentos de Elastix y las aportaciones. Manuales para Elastix

Este tema habla de la limitación o duración de las llamadas.

También te recomiendo si generas una búsqueda en el foro a tu problema. Puede que alguien tenga el mismo problema y ya lo soluciono.

Saludos
 
Joined
Aug 4, 2008
Messages
55
Points
0
Interesante post , veo que solo esta configurado para troncales zap , en el caso
de que fuese para una troncal sip ?

habria que cambiar donde dice :

exten => _7.,n,Dial(ZAP/g0/${EXTEN:1},60,TtL(180000:8000:1000))

por

exten => _7.,n,Dial(sip/881/${EXTEN:1},60,TtL(180000:8000:1000)) ?

en mi caso tengo un trunk sip con ese nombre ...

no se si es la manera correcta

saludos
 
Joined
Jun 19, 2010
Messages
165
Points
0
Seria asi.
exten => _7.,n,Dial(SIP/${EXTEN:1}@trunk,60,TtL(180000:8000:1000))

explicacion
g0 = es una variable que puede tomar el channel 1, channel 2, channel 3,etc, del canal ZAP o Dahdi en todo caso ahora..

exten => _7.,n,Dial(Dahdi/1/${EXTEN:1},60,TtL(180000:8000:1000))
de esta forma le estas inicando que salga por el channel 1.

trunk = el nombre de la troncal por donde sacarias la llamada

Como en sip no usas canales para salir sino que la trunk.

Saludos
 
Joined
Mar 11, 2010
Messages
70
Points
0
Hola tengo asi puesta mi configuracion y el detalle es que la llamada no se corta a los 3 minutos, Tengo Un Elastix 2.0.3

en mi archivo extensions_custom.conf tengo esto:

[limitar-custom]
include => limitar

; Limita llamadas a cel
[limitar]
exten => _9998XXXXXXX,1,Macro(pinsets,5,1)
exten => _9998XXXXXXX,2,Set(LIMIT_TIMEOUT_FILE=vm-goodbye)
exten => _9998XXXXXXX,3,Set(LIMIT_WARNING_FILE=beep)
exten => _9998XXXXXXX,4,Dial(Zap/g2/${EXTEN:1},60,TtL(180000,8000,1000))

en Elastix le tengo puesta a esa extension el contexto limitar, y este es el log del Cli,

LOG DEL CLI>




== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [99981555744@limitar:1] Macro("SIP/8080-00000000", "pinsets,5,1") in new stack
-- Executing [s@macro-pinsets:1] GotoIf("SIP/8080-00000000", "1 = 1?cdr,1") in new stack
-- Goto (macro-pinsets,cdr,1)
-- Executing [cdr@macro-pinsets:1] ExecIf("SIP/8080-00000000", "1?Authenticate(/etc/asterisk/pinset_5,a)") in new stack
-- <SIP/8080-00000000> Playing 'agent-pass.gsm' (language 'es')
-- <SIP/8080-00000000> Playing 'auth-thankyou.gsm' (language 'es')
-- Executing [cdr@macro-pinsets:2] ExecIf("SIP/8080-00000000", "1?ResetCDR()") in new stack
-- Executing [99984565744@limitar:2] Set("SIP/8080-00000000", "LIMIT_TIMEOUT_FILE=vm-goodbye") in new stack
-- Executing [99983565744@limitar:3] Set("SIP/8080-00000000", "LIMIT_WARNING_FILE=beep") in new stack
-- Executing [99984565744@limitar:4] Dial("SIP/8080-00000000", "Zap/g2/9981525744,60,TtL(180000,8000,1000)") in new stack
-- Limit Data for this call:
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [99981565344@limitar:5] Macro("SIP/8080-00000000", "dialout-trunk,3,9981365744,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/8080-00000000", "DIAL_TRUNK=3") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/8080-00000000", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/8080-00000000", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/8080-00000000", "DIAL_NUMBER=9981565744") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/8080-00000000", "DIAL_TRUNK_OPTIONS=trTwW") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/8080-00000000", "OUTBOUND_GROUP=OUT_3") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/8080-00000000", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/8080-00000000", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/8080-00000000", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/8080-00000000", "outbound-callerid,3") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/8080-00000000", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/8080-00000000", "1?Set(REALCALLERIDNUM=8080)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/8080-00000000", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/8080-00000000", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/8080-00000000", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/8080-00000000", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/8080-00000000", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/8080-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/8080-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/8080-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/8080-00000000", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/8080-00000000", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/8080-00000000", "OUTNUM=9981575744") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/8080-00000000", "custom=DAHDI/g2") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/8080-00000000", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/8080-00000000", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/8080-00000000", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/8080-00000000", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/8080-00000000", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/8080-00000000", "DAHDI/g2/9981565844,300,") in new stack
-- Called g2/9981555744
-- DAHDI/63-1 answered SIP/8080-00000000
pbx*CLI>


Algo estoy omitiendo o haciendo mal? por que la llamada si sale y conecta bien pero no se me corta la llamada a los 3 minutos.
Gracias de antemano.
 
Joined
Feb 28, 2008
Messages
5,737
Points
0
Según lo que indica la salida del CLI, la llamada por tu contexto falla y luego asterisk intenta marcarlo por las rutas salientes ya definidas, puedes intentar lo siguiente:
Code:
[limitar]
exten => _9998XXXXXXX,1,Macro(pinsets,5,1)
exten => _9998XXXXXXX,n,Set(LIMIT_TIMEOUT_FILE=vm-goodbye)
exten => _9998XXXXXXX,n,Set(LIMIT_WARNING_FILE=beep)
exten => _9998XXXXXXX,n,Set(DIAL_OPTIONS=${DIAL_OPTIONS}L(180000,8000,1000))
exten => _9998XXXXXXX,n,Goto(outbound-allroutes,${EXTEN:1},1)
Luego ejecuta un module reload desde el CLI y prueba...
Si es que tienes algún problema, pega la salida del CLI para ver lo que sucede
 
Joined
Mar 11, 2010
Messages
70
Points
0
Ya lo hice y despues de que me pide el pin, ahi se corta no sale la llamada; anexo log de cli

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [99986565744@limitar:1] Macro("SIP/8080-00000000", "pinsets,5,1") in new stack
-- Executing [s@macro-pinsets:1] GotoIf("SIP/8080-00000000", "1 = 1?cdr,1") in new stack
-- Goto (macro-pinsets,cdr,1)
-- Executing [cdr@macro-pinsets:1] ExecIf("SIP/8080-00000000", "1?Authenticate(/etc/asterisk/pinset_5,a)") in new stack
-- <SIP/8080-00000000> Playing 'agent-pass.gsm' (language 'es')
-- <SIP/8080-00000000> Playing 'auth-thankyou.gsm' (language 'es')
-- Executing [cdr@macro-pinsets:2] ExecIf("SIP/8080-00000000", "1?ResetCDR()") in new stack
-- Executing [99981575744@limitar:2] Set("SIP/8080-00000000", "LIMIT_TIMEOUT_FILE=vm-goodbye") in new stack
-- Executing [99981585744@limitar:3] Set("SIP/8080-00000000", "LIMIT_WARNING_FILE=beep") in new stack
-- Executing [99987565744@limitar:4] Set("SIP/8080-00000000", "DIAL_OPTIONS=trTwWL(180000,8000,1000)") in new stack
-- Executing [99981565744@limitar:5] Goto("SIP/8080-00000000", "outbound-allroutes,9981665744,1") in new stack
-- Goto (outbound-allroutes,9981565744,1)
pbx*CLI>

Saludos
 
Joined
Feb 28, 2008
Messages
5,737
Points
0
Pega la salida del CLI de un número que no tenga restricción de llamada, y luego vuelve a marcar el mismo número desde una extensión que tenga la restricción de tiempo.

También indica si es que la llamada está saliendo por una línea analógica o por un E1/T1.
 
Joined
Mar 11, 2010
Messages
70
Points
0
Ok, el primer log es de una extension SIN esa restriccion y el segundo con la restriccion, es una linea analogica (Equipo Telular)

************* SIN RESTRICCION ******************

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [99982565744@from-internal:1] Macro("SIP/6370-00000003", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/6370-00000003", "AMPUSER=6370") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/6370-00000003", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/6370-00000003", "1?Set(REALCALLERIDNUM=6370)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/6370-00000003", "AMPUSER=6370") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/6370-00000003", "AMPUSERCIDNAME=Antonio Camacho") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/6370-00000003", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/6370-00000003", "AMPUSERCID=6370") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/6370-00000003", "CALLERID(all)="Antonio Camacho" <6370>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/6370-00000003", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/6370-00000003", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/6370-00000003", "Using CallerID "Antonio Camacho" <6370>") in new stack
-- Executing [99982565744@from-internal:2] Macro("SIP/6370-00000003", "pinsets,5,1") in new stack
-- Executing [s@macro-pinsets:1] GotoIf("SIP/6370-00000003", "1 = 1?cdr,1") in new stack
-- Goto (macro-pinsets,cdr,1)
-- Executing [cdr@macro-pinsets:1] ExecIf("SIP/6370-00000003", "1?Authenticate(/etc/asterisk/pinset_5,a)") in new stack
-- <SIP/6370-00000003> Playing 'agent-pass.gsm' (language 'es')
-- <SIP/6370-00000003> Playing 'auth-thankyou.gsm' (language 'es')
-- Executing [cdr@macro-pinsets:2] ExecIf("SIP/6370-00000003", "1?ResetCDR()") in new stack
-- Executing [99982565744@from-internal:3] Set("SIP/6370-00000003", "_NODEST=") in new stack
-- Executing [99982565744@from-internal:4] Macro("SIP/6370-00000003", "record-enable,6370,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/6370-00000003", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/6370-00000003", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/6370-00000003", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/6370-00000003", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/6370-00000003", "1?MacroExit()") in new stack
-- Executing [99982565744@from-internal:5] Macro("SIP/6370-00000003", "dialout-trunk,3,9983565744,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/6370-00000003", "DIAL_TRUNK=3") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/6370-00000003", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/6370-00000003", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/6370-00000003", "DIAL_NUMBER=9984565744") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/6370-00000003", "DIAL_TRUNK_OPTIONS=trTwW") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/6370-00000003", "OUTBOUND_GROUP=OUT_3") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/6370-00000003", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/6370-00000003", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/6370-00000003", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/6370-00000003", "outbound-callerid,3") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/6370-00000003", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/6370-00000003", "0?Set(REALCALLERIDNUM=6370)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/6370-00000003", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/6370-00000003", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/6370-00000003", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/6370-00000003", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/6370-00000003", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/6370-00000003", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/6370-00000003", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/6370-00000003", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/6370-00000003", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/6370-00000003", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/6370-00000003", "OUTNUM=9981565744") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/6370-00000003", "custom=DAHDI/g2") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/6370-00000003", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/6370-00000003", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/6370-00000003", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/6370-00000003", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/6370-00000003", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/6370-00000003", "DAHDI/g2/9981575744,300,") in new stack
-- Called g2/9981585744
-- DAHDI/63-1 answered SIP/6370-00000003
-- Remote UNIX connection
-- Remote UNIX connection disconnected
pbx*CLI>



******* CON RESTRICCION ************

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [99981565744@limitar:1] Macro("SIP/8080-00000004", "pinsets,5,1") in new stack
-- Executing [s@macro-pinsets:1] GotoIf("SIP/8080-00000004", "1 = 1?cdr,1") in new stack
-- Goto (macro-pinsets,cdr,1)
-- Executing [cdr@macro-pinsets:1] ExecIf("SIP/8080-00000004", "1?Authenticate(/etc/asterisk/pinset_5,a)") in new stack
-- <SIP/8080-00000004> Playing 'agent-pass.gsm' (language 'es')
-- <SIP/8080-00000004> Playing 'auth-thankyou.gsm' (language 'es')
-- Executing [cdr@macro-pinsets:2] ExecIf("SIP/8080-00000004", "1?ResetCDR()") in new stack
-- Executing [99983565744@limitar:2] Set("SIP/8080-00000004", "LIMIT_TIMEOUT_FILE=vm-goodbye") in new stack
-- Executing [99981365744@limitar:3] Set("SIP/8080-00000004", "LIMIT_WARNING_FILE=beep") in new stack
-- Executing [99981465744@limitar:4] Set("SIP/8080-00000004", "DIAL_OPTIONS=trTwWL(180000,8000,1000)") in new stack
-- Executing [99931565744@limitar:5] Goto("SIP/8080-00000004", "outbound-allroutes,9981563744,1") in new stack
-- Goto (outbound-allroutes,9981562744,1)
-- Remote UNIX connection
-- Remote UNIX connection disconnected
pbx*CLI>



Saludos.
NOTA, en ambos casos uso el mismo numero marcado, por cuestiones de confidencialidad del usuario aqui lo modifico.
 
Joined
Feb 28, 2008
Messages
5,737
Points
0
Ya vi el error... Es a causa de tu configuración de rutas salientes....
Así debe quedar el contexto:
Code:
[limitar]
exten => _9998XXXXXXX,1,Macro(pinsets,5,1)
exten => _9998XXXXXXX,n,Set(LIMIT_TIMEOUT_FILE=vm-goodbye)
exten => _9998XXXXXXX,n,Set(LIMIT_WARNING_FILE=beep)
exten => _9998XXXXXXX,n,Set(DIAL_OPTIONS=${DIAL_OPTIONS}L(180000,8000,1000))
exten => _9998XXXXXXX,n,Goto(outbound-allroutes,${EXTEN},1)
Luego ejecutas desde el CLI un module reload e intentas nuevamente.

Como te darás cuenta, he modificado la última línea del contexto
 
Joined
Mar 11, 2010
Messages
70
Points
0
Hola, mira modifique el contexto "limitar" y logre que de esta manera me funcione me corta la llamada al tiempo estipulado y me da los beep de aviso, ahora bien tengo 3 "troncales" llamadas lyric_voip1, lyric_voip2, y g2.
Si te das cuenta mi contexto dice:

exten => _9045XXXXXXXXXX,4,Dial(Sip/lyric_voip1/${EXTEN:1},60,TtL(60000:24000:10000))

Como tendria que ser para que tome cualquiera de las tres troncales? es decir si tengo lineas llenas en una que pase a la otra y asi sucesivamente?

[limitar]
exten => _9045XXXXXXXXXX,1,Set(LIMIT_TIMEOUT_FILE=vm-goodbye)
exten => _9045XXXXXXXXXX,2,Set(LIMIT_WARNING_FILE=beep)
exten => _9045XXXXXXXXXX,3,Macro(pinsets,6,1)
exten => _9045XXXXXXXXXX,4,Dial(Sip/lyric_voip1/${EXTEN:1},60,TtL(60000:24000:10000))
exten => _9045XXXXXXXXXX,n,hangup()
exten => _9998XXXXXXX,1,Set(LIMIT_TIMEOUT_FILE=vm-goodbye)
exten => _9998XXXXXXX,2,Set(LIMIT_WARNING_FILE=beep)
exten => _9998XXXXXXX,3,Macro(pinsets,5,1)
exten => _9998XXXXXXX,4,Dial(Sip/lyric_voip1/${EXTEN:1},60,TtL(60000:24000:10000))
exten => _9998XXXXXXX,n,hangup()


Esta es la salida de Cli, de este contexto de arriba que si me funciona.

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [99982784689@limitar:1] Set("SIP/8080-00000043", "LIMIT_TIMEOUT_FILE=vm-goodbye") in new stack
-- Executing [99982784689@limitar:2] Set("SIP/8080-00000043", "LIMIT_WARNING_FILE=beep") in new stack
-- Executing [99982784689@limitar:3] Macro("SIP/8080-00000043", "pinsets,5,1") in new stack
-- Executing [s@macro-pinsets:1] GotoIf("SIP/8080-00000043", "1 = 1?cdr,1") in new stack
-- Goto (macro-pinsets,cdr,1)
-- Executing [cdr@macro-pinsets:1] ExecIf("SIP/8080-00000043", "1?Authenticate(/etc/asterisk/pinset_5,a)") in new stack
-- <SIP/8080-00000043> Playing 'agent-pass.gsm' (language 'es')
-- <SIP/8080-00000043> Playing 'auth-thankyou.gsm' (language 'es')
-- Executing [cdr@macro-pinsets:2] ExecIf("SIP/8080-00000043", "1?ResetCDR()") in new stack
-- Executing [99982784689@limitar:4] Dial("SIP/8080-00000043", "Sip/lyric_voip1/9982784689,60,TtL(60000:24000:10000)") in new stack
-- Limit Data for this call:
> timelimit = 60000
> play_warning = 24000
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 10000
> start_sound =
> warning_sound = beep
> end_sound = vm-goodbye
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called lyric_voip1/9982784689
-- SIP/lyric_voip1-00000044 is ringing
-- SIP/lyric_voip1-00000044 is making progress passing it to SIP/8080-00000043
-- SIP/lyric_voip1-00000044 answered SIP/8080-00000043
-- <SIP/8080-00000043> Playing 'beep.gsm' (language 'es')
-- <SIP/8080-00000043> Playing 'beep.gsm' (language 'es')
-- <SIP/8080-00000043> Playing 'vm-goodbye.gsm' (language 'es')
-- Executing [h@limitar:1] Macro("SIP/8080-00000043", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/8080-00000043", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/8080-00000043", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/8080-00000043", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/8080-00000043", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/8080-00000043", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/8080-00000043", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/8080-00000043' in macro 'hangupcall'
== Spawn extension (limitar, h, 1) exited non-zero on 'SIP/8080-00000043'
== Spawn extension (limitar, 99982784689, 4) exited non-zero on 'SIP/8080-00000043'
-- Executing [h@limitar:1] Macro("SIP/8080-00000043", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/8080-00000043", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/8080-00000043", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/8080-00000043", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/8080-00000043", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/8080-00000043", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/8080-00000043", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/8080-00000043' in macro 'hangupcall'
== Spawn extension (limitar, h, 1) exited non-zero on 'SIP/8080-00000043'
pbxc*CLI>


Gracias no sabes como me ha servido su apoyo...!
 
Joined
Feb 28, 2008
Messages
5,737
Points
0
Debes usar el contexto que te puse, y siempre enviarlos al contexto del outbound-allroutes.
Ahí le configuras las secuencias de las troncales (interfaz web, rutas salientes).
No veo razón en complicar más el plan de marcado... :silly:
 
Joined
Mar 11, 2010
Messages
70
Points
0
Ok, ya hice pruebas con el contexto que me pasaste y en efecto toma mis rutas de salida, me pide dos veces la contraseña, pero que comente la primer linea de tu contexto y lo sulucione, si me enlaza la llamada pero desgraciadamente no me la corta al tiempo establecido... como que se brinca esa linea de tu contexto por que no veo que la aplique.... mira te anexo el log


Este es el log del CLi


== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [99982784689@limitar:1] Macro("SIP/8080-0000004d", "pinsets,5,1") in new stack
-- Executing [s@macro-pinsets:1] GotoIf("SIP/8080-0000004d", "1 = 1?cdr,1") in new stack
-- Goto (macro-pinsets,cdr,1)
-- Executing [cdr@macro-pinsets:1] ExecIf("SIP/8080-0000004d", "1?Authenticate(/etc/asterisk/pinset_5,a)") in new stack
-- <SIP/8080-0000004d> Playing 'agent-pass.gsm' (language 'es')
-- <SIP/8080-0000004d> Playing 'auth-thankyou.gsm' (language 'es')
-- Executing [cdr@macro-pinsets:2] ExecIf("SIP/8080-0000004d", "1?ResetCDR()") in new stack
-- Executing [99982784689@limitar:2] Set("SIP/8080-0000004d", "LIMIT_TIMEOUT_FILE=vm-goodbye") in new stack
-- Executing [99982784689@limitar:3] Set("SIP/8080-0000004d", "LIMIT_WARNING_FILE=beep") in new stack
-- Executing [99982784689@limitar:4] Set("SIP/8080-0000004d", "DIAL_OPTIONS=trTwWL(180000,8000,1000)") in new stack
-- Executing [99982784689@limitar:5] Goto("SIP/8080-0000004d", "outbound-allroutes,99982784689,1") in new stack
-- Goto (outbound-allroutes,99982784689,1)
-- Executing [99982784689@outbound-allroutes:1] Macro("SIP/8080-0000004d", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/8080-0000004d", "AMPUSER=8080") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/8080-0000004d", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/8080-0000004d", "1?Set(REALCALLERIDNUM=8080)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/8080-0000004d", "AMPUSER=8080") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/8080-0000004d", "AMPUSERCIDNAME=SITE CENTRAL") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/8080-0000004d", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/8080-0000004d", "AMPUSERCID=8080") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/8080-0000004d", "CALLERID(all)="SITE CENTRAL" <8080>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/8080-0000004d", "1?Set(CHANNEL(language)=es)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/8080-0000004d", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/8080-0000004d", "Using CallerID "SITE CENTRAL" <8080>") in new stack
-- Executing [99982784689@outbound-allroutes:2] Macro("SIP/8080-0000004d", "pinsets,5,1") in new stack
-- Executing [s@macro-pinsets:1] GotoIf("SIP/8080-0000004d", "1 = 1?cdr,1") in new stack
-- Goto (macro-pinsets,cdr,1)
-- Executing [cdr@macro-pinsets:1] ExecIf("SIP/8080-0000004d", "1?Authenticate(/etc/asterisk/pinset_5,a)") in new stack
-- <SIP/8080-0000004d> Playing 'agent-pass.gsm' (language 'es')
-- <SIP/8080-0000004d> Playing 'auth-thankyou.gsm' (language 'es')
-- Executing [cdr@macro-pinsets:2] ExecIf("SIP/8080-0000004d", "1?ResetCDR()") in new stack
-- Executing [99982784689@outbound-allroutes:3] Set("SIP/8080-0000004d", "_NODEST=") in new stack
-- Executing [99982784689@outbound-allroutes:4] Macro("SIP/8080-0000004d", "record-enable,8080,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/8080-0000004d", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/8080-0000004d", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/8080-0000004d", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/8080-0000004d", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/8080-0000004d", "1?MacroExit()") in new stack
-- Executing [99982784689@outbound-allroutes:5] Macro("SIP/8080-0000004d", "dialout-trunk,5,9982784689,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/8080-0000004d", "DIAL_TRUNK=5") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/8080-0000004d", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/8080-0000004d", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/8080-0000004d", "DIAL_NUMBER=9982784689") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/8080-0000004d", "DIAL_TRUNK_OPTIONS=trTwWL(180000,8000,1000)") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/8080-0000004d", "OUTBOUND_GROUP=OUT_5") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/8080-0000004d", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/8080-0000004d", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/8080-0000004d", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/8080-0000004d", "outbound-callerid,5") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/8080-0000004d", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/8080-0000004d", "0?Set(REALCALLERIDNUM=8080)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/8080-0000004d", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/8080-0000004d", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/8080-0000004d", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/8080-0000004d", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/8080-0000004d", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/8080-0000004d", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/8080-0000004d", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/8080-0000004d", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/8080-0000004d", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/8080-0000004d", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/8080-0000004d", "OUTNUM=9982784689") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/8080-0000004d", "custom=SIP/lyric_voip2") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/8080-0000004d", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/8080-0000004d", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/8080-0000004d", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/8080-0000004d", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/8080-0000004d", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/8080-0000004d", "SIP/lyric_voip2/9982784689,300,") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called lyric_voip2/9982784689
-- SIP/lyric_voip2-0000004e is ringing
-- SIP/lyric_voip2-0000004e is making progress passing it to SIP/8080-0000004d
-- SIP/lyric_voip2-0000004e answered SIP/8080-0000004d
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/8080-0000004d", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/8080-0000004d", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/8080-0000004d", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/8080-0000004d", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/8080-0000004d", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/8080-0000004d", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/8080-0000004d", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/8080-0000004d' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/8080-0000004d' in macro 'dialout-trunk'
== Spawn extension (outbound-allroutes, 99982784689, 5) exited non-zero on 'SIP/8080-0000004d'
pbx*CLI>


Gracias...!! creo que estamos a un paso de que esto quede....!!! ;)
 
Joined
Feb 28, 2008
Messages
5,737
Points
0
El problema se da porque usaste una configuración equivocada para la opción L.
Me confié de que lo tenías bien... :woohoo:
Así debes dejar el contexto:
Code:
[limitar]
exten => _9998XXXXXXX,1,Set(LIMIT_TIMEOUT_FILE=vm-goodbye)
exten => _9998XXXXXXX,n,Set(LIMIT_WARNING_FILE=beep)
exten => _9998XXXXXXX,n,Set(DIAL_OPTIONS=${DIAL_OPTIONS}L(180000:8000:1000))
exten => _9998XXXXXXX,n,Goto(outbound-allroutes,${EXTEN},1)
Haz el module reload y listo...
 
Joined
Mar 11, 2010
Messages
70
Points
0
Algo estare haciendo mal...? asi este mi contexto..

[limitar]
exten => _9998XXXXXXX,1,Set(LIMIT_TIMEOUT_FILE=vm-goodbye)
exten => _9998XXXXXXX,n,Set(LIMIT_WARNING_FILE=beep)
exten => _9998XXXXXXX,n,Set(DIAL_OPTIONS=${DIAL_OPTIONS}L(60000:24000:1000))
exten => _9998XXXXXXX,n,Goto(outbound-allroutes,${EXTEN},1)

lo copie y pegue tal cual, aqui este el log del Cli....hace la llamada pero no la limita... estoy omitiendo algo...?

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [99982657893@limitar:1] Set("SIP/8080-000000f1", "LIMIT_TIMEOUT_FILE=vm-goodbye") in new stack
-- Executing [99982657893@limitar:2] Set("SIP/8080-000000f1", "LIMIT_WARNING_FILE=beep") in new stack
-- Executing [99982657893@limitar:3] Set("SIP/8080-000000f1", "DIAL_OPTIONS=trTwWL(60000:24000:1000)") in new stack
-- Executing [99982657893@limitar:4] Goto("SIP/8080-000000f1", "outbound-allroutes,99982657893,1") in new stack
-- Goto (outbound-allroutes,99982657893,1)
-- Executing [99982657893@outbound-allroutes:1] Macro("SIP/8080-000000f1", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/8080-000000f1", "AMPUSER=8080") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/8080-000000f1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/8080-000000f1", "1?Set(REALCALLERIDNUM=8080)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/8080-000000f1", "AMPUSER=8080") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/8080-000000f1", "AMPUSERCIDNAME=SITE CENTRAL") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/8080-000000f1", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/8080-000000f1", "AMPUSERCID=8080") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/8080-000000f1", "CALLERID(all)="SITE CENTRAL" <8080>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/8080-000000f1", "1?Set(CHANNEL(language)=es)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/8080-000000f1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/8080-000000f1", "Using CallerID "SITE CENTRAL" <8080>") in new stack
-- Executing [99982657893@outbound-allroutes:2] Macro("SIP/8080-000000f1", "pinsets,5,1") in new stack
-- Executing [s@macro-pinsets:1] GotoIf("SIP/8080-000000f1", "1 = 1?cdr,1") in new stack
-- Goto (macro-pinsets,cdr,1)
-- Executing [cdr@macro-pinsets:1] ExecIf("SIP/8080-000000f1", "1?Authenticate(/etc/asterisk/pinset_5,a)") in new stack
-- <SIP/8080-000000f1> Playing 'agent-pass.gsm' (language 'es')
-- <SIP/8080-000000f1> Playing 'auth-thankyou.gsm' (language 'es')
-- Executing [cdr@macro-pinsets:2] ExecIf("SIP/8080-000000f1", "1?ResetCDR()") in new stack
-- Executing [99982657893@outbound-allroutes:3] Set("SIP/8080-000000f1", "_NODEST=") in new stack
-- Executing [99982657893@outbound-allroutes:4] Macro("SIP/8080-000000f1", "record-enable,8080,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/8080-000000f1", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/8080-000000f1", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/8080-000000f1", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/8080-000000f1", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/8080-000000f1", "1?MacroExit()") in new stack
-- Executing [99982657893@outbound-allroutes:5] Macro("SIP/8080-000000f1", "dialout-trunk,4,9982657893,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/8080-000000f1", "DIAL_TRUNK=4") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/8080-000000f1", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/8080-000000f1", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/8080-000000f1", "DIAL_NUMBER=9982657893") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/8080-000000f1", "DIAL_TRUNK_OPTIONS=trTwWL(60000:24000:1000)") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/8080-000000f1", "OUTBOUND_GROUP=OUT_4") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/8080-000000f1", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/8080-000000f1", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/8080-000000f1", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/8080-000000f1", "outbound-callerid,4") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/8080-000000f1", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/8080-000000f1", "0?Set(REALCALLERIDNUM=8080)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/8080-000000f1", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/8080-000000f1", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/8080-000000f1", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/8080-000000f1", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/8080-000000f1", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/8080-000000f1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/8080-000000f1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/8080-000000f1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/8080-000000f1", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/8080-000000f1", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/8080-000000f1", "OUTNUM=9982657893") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/8080-000000f1", "custom=SIP/lyric_voip1") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/8080-000000f1", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/8080-000000f1", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/8080-000000f1", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/8080-000000f1", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/8080-000000f1", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/8080-000000f1", "SIP/lyric_voip1/9982657893,300,") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called lyric_voip1/9982657893
-- Got SIP response 503 "Service Unavailable" back from 192.168.2.70
-- SIP/lyric_voip1-000000f2 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dialout-trunk:20] NoOp("SIP/8080-000000f1", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34") in new stack
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/8080-000000f1", "s-CONGESTION,1") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,1)
-- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/8080-000000f1", "RC=34") in new stack
-- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/8080-000000f1", "34,1") in new stack
-- Goto (macro-dialout-trunk,34,1)
-- Executing [34@macro-dialout-trunk:1] Goto("SIP/8080-000000f1", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/8080-000000f1", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,continue,3)
-- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/8080-000000f1", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:4] Set("SIP/8080-000000f1", "CALLERID(number)=8080") in new stack
-- Executing [99982657893@outbound-allroutes:6] Macro("SIP/8080-000000f1", "dialout-trunk,5,9982657893,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/8080-000000f1", "DIAL_TRUNK=5") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/8080-000000f1", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/8080-000000f1", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/8080-000000f1", "DIAL_NUMBER=9982657893") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/8080-000000f1", "DIAL_TRUNK_OPTIONS=trTwWL(60000:24000:1000)") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/8080-000000f1", "OUTBOUND_GROUP=OUT_5") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/8080-000000f1", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/8080-000000f1", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/8080-000000f1", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/8080-000000f1", "outbound-callerid,5") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/8080-000000f1", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/8080-000000f1", "0?Set(REALCALLERIDNUM=8080)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/8080-000000f1", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/8080-000000f1", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/8080-000000f1", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/8080-000000f1", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/8080-000000f1", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/8080-000000f1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/8080-000000f1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/8080-000000f1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/8080-000000f1", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/8080-000000f1", "0?AGI(fixlocalprefix)") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/8080-000000f1", "OUTNUM=9982657893") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/8080-000000f1", "custom=SIP/lyric_voip2") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/8080-000000f1", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/8080-000000f1", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/8080-000000f1", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/8080-000000f1", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/8080-000000f1", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/8080-000000f1", "SIP/lyric_voip2/9982657893,300,") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called lyric_voip2/9982657893
-- SIP/lyric_voip2-000000f3 is ringing
-- SIP/lyric_voip2-000000f3 is making progress passing it to SIP/8080-000000f1
-- SIP/lyric_voip2-000000f3 answered SIP/8080-000000f1
-- Remote UNIX connection
-- Remote UNIX connection disconnected
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/8080-000000f1", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/8080-000000f1", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/8080-000000f1", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/8080-000000f1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/8080-000000f1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/8080-000000f1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/8080-000000f1", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/8080-000000f1' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/8080-000000f1' in macro 'dialout-trunk'
== Spawn extension (outbound-allroutes, 99982657893, 6) exited non-zero on 'SIP/8080-000000f1'
pbx*CLI>
 
Joined
Feb 28, 2008
Messages
5,737
Points
0
Intenta lo siguiente:
Code:
[limitar]
exten => _9998XXXXXXX,1,Set(LIMIT_TIMEOUT_FILE=vm-goodbye)
exten => _9998XXXXXXX,n,Set(LIMIT_WARNING_FILE=beep)
exten => _9998XXXXXXX,n,Set(TRUNK_OPTIONS=${TRUNK_OPTIONS}L(180000:8000:1000))
exten => _9998XXXXXXX,n,Goto(outbound-allroutes,${EXTEN},1)
Luego le haces el module reload desde el CLI y pruebas nuevamente...
 
Joined
Mar 11, 2010
Messages
70
Points
0
Que tal jgutierrez, sorry pero me lie en otras cosas de un nuevo pbx y no habia podido probar, pero te comento que en efecto ya me funciono este ultimo codigo que me pasaste me funciona de maravilla me anuncia con los beep y al final sale la grabacion de goodbye y me respeta bien el tiempo que le estipule para la duracion de llamadas, asi como la rutas salientes si no encuentra una troncal se pasa a la otra.

De nuevo mil gracias y otro punto mas a tu favor....!!

Saludos.!
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,993
Messages
131,109
Members
17,716
Latest member
Orbit114
Top