Hola
ya esta funcionando perfectamente la parte de las variables pero ahora surgió otro al transferir la llamada a la cola, se queda ciclado el asterisk, cuando transfiero a una extensión con Dial(SIP/201) timbra perfectamente en la extensión 201 y contesta y se puede realizar la conferencia, al ejecutar Queue(600) es donde se queda ciclado, abajo ponga la forma en que tengo configurada la extensión
exten => 364,1,Set(cola=0)
exten => 364,n,AGI(pedido.php)
exten => 364,n,GotoIf($[${cola}=1]?10:20)
exten => 364,10,Queue(600)
exten => 364,20,Hangup()
este es el log cuando el GotoIf es verdadero y ejecuta la linea 10,Queue(600), lo que esta en repetidas ocasiones se sigue presentando aun y cuando cuelgo la llamada, tengo que reiniciar el servicio asterisk para cancelar
Agradezco cualquier ayuda
Saludos
M[[KpbxpruebasCLI> M[[0K == Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [364@from-internal:1] ^[[1;36mSet^[[0m("^[[1;35mSIP/248-00000003^[[0m", "^[[1;35mcola=0^[[0m") in new stack
-- Executing [364@from-internal:2] ^[[1;36mAGI^[[0m("^[[1;35mSIP/248-00000003^[[0m", "^[[1;35mpedido.php^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Launched AGI Script /var/lib/asterisk/agi-bin/pedido.php
M[[KpbxpruebasCLI> M[[0K -- <SIP/248-00000003> Playing 'pedido.gsm' (language 'es')
M[[KpbxpruebasCLI> M[[0K -- <SIP/248-00000003> Playing 'pedido.gsm' (language 'es')
M[[KpbxpruebasCLI> M[[0K -- <SIP/248-00000003> Playing 'numero-tel.gsm' (language 'es')
M[[KpbxpruebasCLI> M[[0K -- Remote UNIX connection
M[[KpbxpruebasCLI> M[[0K -- Remote UNIX connection disconnected
M[[KpbxpruebasCLI> M[[0K -- <SIP/248-00000003> Playing 'aditivo.gsm' (language 'es')
M[[KpbxpruebasCLI> M[[0K -- Playing 'nuevos_datos' (escape_digits=) (sample_offset 0)
M[[KpbxpruebasCLI> M[[0K -- <SIP/248-00000003>AGI Script pedido.php completed, returning 0
M[[KpbxpruebasCLI> M[[0K -- Executing [364@from-internal:3] ^[[1;36mGotoIf^[[0m("^[[1;35mSIP/248-00000003^[[0m", "^[[1;35m1?10:20^[[0m") in new stack
-- Goto (from-internal,364,10)
-- Executing [364@from-internal:10] ^[[1;36mQueue^[[0m("^[[1;35mSIP/248-00000003^[[0m", "^[[1;35m600^[[0m") in new stack
-- Started music on hold, class 'Promos', on SIP/248-00000003
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35mQAGENT=201^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Goto (from-queue,201,1)
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35mQAGENT=201^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Goto (from-queue,201,1)
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35mQAGENT=201^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [200@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/200@from-queue-00000003;2^[[0m", "^[[1;35mQAGENT=200^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [200@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/200@from-queue-00000003;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Goto (from-queue,200,1)
M[[KpbxpruebasCLI> M[[0K -- Executing [200@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/200@from-queue-00000003;2^[[0m", "^[[1;35mQAGENT=200^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [200@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/200@from-queue-00000003;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Goto (from-queue,200,1)
M[[KpbxpruebasCLI> M[[0K -- Executing [200@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/200@from-queue-00000003;2^[[0m", "^[[1;35mQAGENT=200^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [200@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/200@from-queue-00000003;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Goto (from-queue,200,1)
M[[KpbxpruebasCLI> M[[0K -- Executing [200@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/200@from-queue-00000003;2^[[0m", "^[[1;35mQAGENT=200^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [200@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/200@from-queue-00000003;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Goto (from-queue,200,1)
M[[KpbxpruebasCLI> M[[0K -- Executing [200@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/200@from-queue-00000003;2^[[0m", "^[[1;35mQAGENT=200^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [200@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/200@from-queue-00000003;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Goto (from-queue,200,1)
M[[KpbxpruebasCLI> M[[0K -- Executing [200@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/200@from-queue-00000003;2^[[0m", "^[[1;35mQAGENT=200^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Goto (from-queue,201,1)
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35mQAGENT=201^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Goto (from-queue,201,1)
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35mQAGENT=201^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Goto (from-queue,201,1)
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35mQAGENT=201^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Goto (from-queue,201,1)
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35mQAGENT=201^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Goto (from-queue,201,1)
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:1] ^[[1;36mSet^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35mQAGENT=201^[[0m") in new stack
M[[KpbxpruebasCLI> M[[0K -- Executing [201@from-queue:2] ^[[1;36mGoto^[[0m("^[[1;35mLocal/201@from-queue-00000002;2^[[0m", "^[[1;35m,1^[[0m") in new stack
M[[Kpbxpruebas*CLI> M[[0K -- Goto (from-queue,201,1)