[Asterisk-ES] Este hilo se siente ignorado

82 views
Skip to first unread message

Abel Molina

unread,
Apr 23, 2010, 2:34:00 AM4/23/10
to aster...@googlegroups.com
Hola a todos

Una consulta por si alguien ha tropezado con este problemilla.

Escenario:
Asterisk 1.4.24-RSP con FreePBX 2.5.2.2.
Una cola 210 con anuncio y luego a ext estática 999
Desde la ext 996 llamo a 210, escucho el anuncio y seguidamente se recibe la llamada en la 999 proveniente de la 996.
Todo bien hasta aquí, la llamada establecida y audio de maravillas.

Luego viene el problema: Cualquier tipo de transferencia que intenta 999 hace caer los dos extremos de la llamada en cuanto detecta la secuencia de xfer (blind o attended, dá igual)

Pruebas que he realizado sin éxito:
- Cambiar los features codes de los xfer
- Quitar el parámetro t al Queue dejándoselo al Dial
- Quitar el parámetro t al Dial dejándoselo a Queue

Dato adicional:
Llamando desde 996 directamente a 999 las transferencias funcionan perfectamente.

Logs:

    -- Executing [210@from-internal:1] Macro("SIP/996-9002a5e0", "user-callerid|") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/996-9002a5e0", "AMPUSER=996") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/996-9002a5e0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/996-9002a5e0", "1|Set|REALCALLERIDNUM=996") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/996-9002a5e0", "AMPUSER=996") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/996-9002a5e0", "AMPUSERCIDNAME=Secretaria 996") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/996-9002a5e0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/996-9002a5e0", "AMPUSERCID=996") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/996-9002a5e0", "CALLERID(all)="Secretaria 996" <996>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/996-9002a5e0", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/996-9002a5e0", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/996-9002a5e0", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/996-9002a5e0", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/996-9002a5e0", "Using CallerID "Secretaria 996" <996>") in new stack
    -- Executing [210@from-internal:2] Answer("SIP/996-9002a5e0", "") in new stack
    -- Executing [210@from-internal:3] Set("SIP/996-9002a5e0", "__BLKVM_OVERRIDE=BLKVM/210/SIP/996-9002a5e0") in new stack
    -- Executing [210@from-internal:4] Set("SIP/996-9002a5e0", "__BLKVM_BASE=210") in new stack
    -- Executing [210@from-internal:5] Set("SIP/996-9002a5e0", "DB(BLKVM/210/SIP/996-9002a5e0)=TRUE") in new stack
    -- Executing [210@from-internal:6] ExecIf("SIP/996-9002a5e0", "1|Set|_DIAL_OPTIONS=trwWM(auto-blkvm)") in new stack
    -- Executing [210@from-internal:7] Set("SIP/996-9002a5e0", "__NODEST=210") in new stack
    -- Executing [210@from-internal:8] Set("SIP/996-9002a5e0", "MONITOR_FILENAME=/var/spool/asterisk/monitor/q210-20100419-162729-1271687249.973") in new stack
    -- Executing [210@from-internal:9] Playback("SIP/996-9002a5e0", "custom/anuncioentrada") in new stack
    -- <SIP/996-9002a5e0> Playing 'custom/anuncioentrada' (language 'es')
    -- Executing [210@from-internal:10] Queue("SIP/996-9002a5e0", "210|t||") in new stack
    -- Started music on hold, class 'default', on SIP/996-9002a5e0
    -- Executing [999@from-internal:1] GotoIf("Local/999@from-internal-b4e3,2", "0?ext-local|999|1") in new stack
    -- Executing [999@from-internal:2] Macro("Local/999@from-internal-b4e3,2", "user-callerid|") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/999@from-internal-b4e3,2", "AMPUSER=996") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Local/999@from-internal-b4e3,2", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("Local/999@from-internal-b4e3,2", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:11] Set("Local/999@from-internal-b4e3,2", "__TTL=63") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("Local/999@from-internal-b4e3,2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("Local/999@from-internal-b4e3,2", "Using CallerID "Secretaria 996" <996>") in new stack
    -- Executing [999@from-internal:3] GotoIf("Local/999@from-internal-b4e3,2", "0?skipdb") in new stack
    -- Executing [999@from-internal:4] GotoIf("Local/999@from-internal-b4e3,2", "1?skipov") in new stack
    -- Goto (from-internal,999,9)
    -- Executing [999@from-internal:9] Set("Local/999@from-internal-b4e3,2", "RRNODEST=210") in new stack
    -- Executing [999@from-internal:10] Set("Local/999@from-internal-b4e3,2", "__NODEST=999") in new stack
    -- Executing [999@from-internal:11] Set("Local/999@from-internal-b4e3,2", "RecordMethod=Group") in new stack
    -- Executing [999@from-internal:12] Macro("Local/999@from-internal-b4e3,2", "record-enable|999|Group") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("Local/999@from-internal-b4e3,2", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("Local/999@from-internal-b4e3,2", "recordingcheck|20100419-162733|1271687253.975") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("Local/999@from-internal-b4e3,2", "") in new stack
    -- Executing [999@from-internal:13] Set("Local/999@from-internal-b4e3,2", "RingGroupMethod=ringallv2") in new stack
    -- Executing [999@from-internal:14] Set("Local/999@from-internal-b4e3,2", "_FMGRP=999") in new stack
    -- Executing [999@from-internal:15] GotoIf("Local/999@from-internal-b4e3,2", "0?doconfirm") in new stack
    -- Executing [999@from-internal:16] Macro("Local/999@from-internal-b4e3,2", "dial|20|trwWM(auto-blkvm)|999") in new stack
    -- Executing [s@macro-dial:1] GotoIf("Local/999@from-internal-b4e3,2", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("Local/999@from-internal-b4e3,2", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
  dialparties.agi: Starting New Dialparties.agi
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
  dialparties.agi: Caller ID name is 'Secretaria 996' number is '996'
  dialparties.agi: USE_CONFIRMATION:  'FALSE'
  dialparties.agi: RINGGROUP_INDEX:   ''
  dialparties.agi: Methodology of ring is  'ringallv2'
    --  dialparties.agi: Added extension 999 to extension map
       >  dialparties.agi: got fmgrp_prering: 2, fmgrp_grptime: 20
       >  dialparties.agi: fmgrp_totalprering: 22
       >  dialparties.agi: found extension in pre-ring and array
       >  dialparties.agi: ringallv2 ring times: REALPRERING: 22, PRERING: 2
    --  dialparties.agi: Extension 999 cf is disabled
    --  dialparties.agi: Extension 999 do not disturb is disabled
       >  dialparties.agi: extnum 999 has:  cw: 1; hascfb: 0 [] hascfu: 0 []
    --  dialparties.agi: dbset CALLTRACE/999 to 996
    --  dialparties.agi: Filtered ARG3: 999
       >  dialparties.agi: NODEST: 999 blkvm enabled macro already in dialopts: trwWM(auto-blkvm)
       >  dialparties.agi: NODEST: 999 blkvm enabled macro already in dialopts: trwWM(auto-blkvm)
  == Manager 'admin' logged off from 127.0.0.1
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("Local/999@from-internal-b4e3,2", "SIP/999|22|trwWM(auto-blkvm)") in new stack
    -- Called 999
    -- Local/999@from-internal-b4e3,1 is ringing
    -- SIP/999-0093dfb0 is ringing
    -- SIP/999-0093dfb0 answered Local/999@from-internal-b4e3,2
    -- Executing [s@macro-auto-blkvm:1] Set("SIP/999-0093dfb0", "__MACRO_RESULT=") in new stack
    -- Executing [s@macro-auto-blkvm:2] DBdel("SIP/999-0093dfb0", "BLKVM/210/SIP/996-9002a5e0") in new stack
    -- DBdel: family=BLKVM, key=210/SIP/996-9002a5e0
    -- Local/999@from-internal-b4e3,1 answered SIP/996-9002a5e0
    -- Stopped music on hold on SIP/996-9002a5e0
AQUI YA ESTAMOS HABLANDO SIN PROBLEMAS
SEGUIDAMENTE TECLEO EL CODE DE TRANSFERENCIA DESDE 999 Y SE JODE TODO
NO DA TIEMPO NI DE MARCAR UNA EXTENSION, SE CAE EN CUANTO DETECTA EL CODE DE XFER
    -- Started music on hold, class 'default', on Local/999@from-internal-b4e3,2
    -- Stopped music on hold on Local/999@from-internal-b4e3,2
    -- Executing [h@macro-dial:1] Macro("Local/999@from-internal-b4e3,2", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("Local/999@from-internal-b4e3,2", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,4)
    -- Executing [s@macro-hangupcall:4] GotoIf("Local/999@from-internal-b4e3,2", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("Local/999@from-internal-b4e3,2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] Hangup("Local/999@from-internal-b4e3,2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'Local/999@from-internal-b4e3,2' in macro 'hangupcall'
  == Spawn h extension (macro-dial, h, 1) exited non-zero on 'Local/999@from-internal-b4e3,2'
  == Spawn extension (macro-dial, s, 7) exited non-zero on 'Local/999@from-internal-b4e3,2' in macro 'dial'
  == Spawn extension (from-internal, 999, 16) exited non-zero on 'Local/999@from-internal-b4e3,2'
    -- Executing [h@from-internal:1] System("SIP/996-9002a5e0", "/var/lib/asterisk/bin/fax-process.pl --to  --from fre...@gmail.com --dest "" --subject "Fax from 996 pruebas%20996" --attachment fax_996.pdf --type application/pdf --file ") in new stack
    -- Executing [h@from-internal:2] Hangup("SIP/996-9002a5e0", "") in new stack
  == Spawn h extension (from-internal, h, 2) exited non-zero on 'SIP/996-9002a5e0'
  == Spawn extension (from-internal, 210, 10) exited non-zero on 'SIP/996-9002a5e0'



--
Este email pertenece a la lista de Asterisk-ES (http://www.asterisk-es.org)
 
~~~~~ Normas de la lista Asterisk-ES: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://comunidad.asterisk-es.org/index.php?title=Lista:normas-asterisk-es
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Para anular la suscripción: asterisk-es...@googlegroups.com

Juanmi en Arco 2000

unread,
Apr 23, 2010, 5:32:49 AM4/23/10
to asterisk-es
Acabo de intentar de reproducir tu error y a mi me funciona
perfectamente:

Tengo Asterisk RSP (v. 151) + FreePBX 2.7.0.6

Creo una cola con Join Announcement, número 501, y le asigno un una
extension estática, la 121 (es una extension no un ring group, ni nada
parecido)

Desde la extension 122 llamo a la cola marcando 501, me sale el
anuncio y me pasa la llamada a la extension 121, todo perfecto
hablamos OK. El me transfiere a la extensión numero 120 y funciona
perfecto.

¿Estoy haciendo algo mal?
> "/var/lib/asterisk/bin/fax-process.pl --to  --from free...@gmail.com --dest
> "" --subject "Fax from 996 pruebas%20996" --attachment fax_996.pdf --type
> application/pdf --file ") in new stack
>     -- Executing [h@from-internal:2] Hangup("SIP/996-9002a5e0", "") in new
> stack
>   == Spawn h extension (from-internal, h, 2) exited non-zero on
> 'SIP/996-9002a5e0'
>   == Spawn extension (from-internal, 210, 10) exited non-zero on
> 'SIP/996-9002a5e0'
>
> --
> Este email pertenece a la lista de Asterisk-ES (http://www.asterisk-es.org)
>
> ~~~~~ Normas de la lista Asterisk-ES: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~http://comunidad.asterisk-es.org/index.php?title=Lista:normas-asteris...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> - Para anular la suscripción: asterisk-es...@googlegroups.com
>
> Subscription settings:http://groups.google.com/group/asterisk-es/subscribe?hl=es

Abel Molina

unread,
Apr 23, 2010, 7:52:02 PM4/23/10
to aster...@googlegroups.com
Será que tu versión RSP tiene corregido el problema?

Juanmi en Arco 2000

unread,
Apr 24, 2010, 5:23:57 AM4/24/10
to asterisk-es
A lo mejor los tiros van por aquí:

http://www.asterisk-es-rsp.org/doku.php/bug:bug

Fijate en el tercer bug.

El caso es que a mi me funciona.

Saludos.
> ...
>
> leer más »

--
Este email pertenece a la lista de Asterisk-ES (http://www.asterisk-es.org)

~~~~~ Normas de la lista Asterisk-ES: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://comunidad.asterisk-es.org/index.php?title=Lista:normas-asterisk-es
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Para anular la suscripción: asterisk-es...@googlegroups.com

Subscription settings: http://groups.google.com/group/asterisk-es/subscribe?hl=es

Gonzalo Marcote

unread,
Apr 26, 2010, 5:00:22 AM4/26/10
to asterisk-es
¿Alguien me puede explicar que tiene que ver el título del tema con tu
problema?.
Podías ser un poco mas explícito, no?

On Apr 23, 7:34 am, Abel Molina <abel.molina.landr...@gmail.com>
wrote:
> "MONITOR_FILENAME=/var/spool/asterisk/monitor/q210-20100419-162729-12716872 49.973")
>   == Spawn extension (from-internal, 999, 16) exited non-zero on...
>
> read more »

--
Este email pertenece a la lista de Asterisk-ES (http://www.asterisk-es.org)

~~~~~ Normas de la lista Asterisk-ES: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://comunidad.asterisk-es.org/index.php?title=Lista:normas-asterisk-es
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Para anular la suscripción: asterisk-es...@googlegroups.com

Subscription settings: http://groups.google.com/group/asterisk-es/subscribe?hl=es

Abel Molina

unread,
Apr 26, 2010, 5:56:43 AM4/26/10
to aster...@googlegroups.com
El título lo puse para llamar la atención pues hace algunos días el mensaje original (xfer from queue agent) no tuvo ninguna respuesta.

Resumiendo: con Asterisk 1.4.24-RSP y FreePBX 2.5.2.2 no consigo que un agente pueda transferir una llamada que recibió via una cola. Más detalles abajo.

Saludos

Saúl Ibarra Corretgé

unread,
Apr 26, 2010, 5:58:23 AM4/26/10
to aster...@googlegroups.com
On Mon, Apr 26, 2010 at 11:56 AM, Abel Molina
<abel.molin...@gmail.com> wrote:
> El título lo puse para llamar la atención pues hace algunos días el mensaje
> original (xfer from queue agent) no tuvo ninguna respuesta.
>
> Resumiendo: con Asterisk 1.4.24-RSP y FreePBX 2.5.2.2 no consigo que un
> agente pueda transferir una llamada que recibió via una cola. Más detalles
> abajo.
>

Y sin FreePBX?

--
/Saúl
http://saghul.net | http://sipdoc.net

Elio Rojano

unread,
Apr 26, 2010, 5:59:55 AM4/26/10
to aster...@googlegroups.com
Es que no hay manera de no perder 20 minutos leyendo código inutil para una puñetera llamada y una simple transferencia...
--
http://www.sinologic.net/

Abel Molina

unread,
Apr 26, 2010, 6:22:37 AM4/26/10
to aster...@googlegroups.com
Elio, comprendo que eres un experto de altísimo nivel y que tu tiempo es muy valioso como para malgastarlo en problemillas tan simples como este. Si tu contribución en este hilo se limita a demostrar tu superioridad con ese grandilocuente vocabulario .... me remito a cierta frase célebre del Rey.



2010/4/26 Elio Rojano <hel...@gmail.com>

Iñaki Baz Castillo

unread,
Apr 26, 2010, 6:26:27 AM4/26/10
to aster...@googlegroups.com
El día 26 de abril de 2010 12:22, Abel Molina
<abel.molin...@gmail.com> escribió:
> Elio, comprendo que eres un experto de altísimo nivel y que tu tiempo es muy
> valioso como para malgastarlo en problemillas tan simples como este. Si tu
> contribución en este hilo se limita a demostrar tu superioridad con ese
> grandilocuente vocabulario .... me remito a cierta frase célebre del Rey.

Tu pregunta está relacionada con FreePBX, a saber cómo interfiere en
la transferencia con toda la morralla de código y dialplan que
ejecuta.
Así que no es que la respuesta de Elio esté fuera de lugar, sino tu
pregunta que no tiene cabida en esta lista de *Asterisk*.


--
Iñaki Baz Castillo
<i...@aliax.net>

Abel Molina

unread,
Apr 26, 2010, 6:28:24 AM4/26/10
to aster...@googlegroups.com
Pues no lo he intentando así que lo probaré y te comentaré.

Corrígeme si esto es lo que sugieres:
Voy a meter configuración manual de extensiones, colas y contexts (no gestionada por FreePBX) y probaré con los mismos features globales.

Gracias Saúl


2010/4/26 Saúl Ibarra Corretgé <sag...@gmail.com>

Abel Molina

unread,
Apr 26, 2010, 6:31:16 AM4/26/10
to aster...@googlegroups.com
Gracias Iñaki, comprendido. Fallo mío, sorry.


2010/4/26 Iñaki Baz Castillo <i...@aliax.net>

Elio Rojano

unread,
Apr 26, 2010, 6:57:13 AM4/26/10
to aster...@googlegroups.com
Ni soy nada, y mi tiempo es tan valioso como el de cualquiera. Si no
es la respuesta que esperabas, lo más probable es que la pregunta
tampoco era la más idónea.

Pero si tienes un problema, deberías exponerlo de forma que la gente
que te quiera responder pueda hacerlo sin tener que estudiar tu
instalación y todo lo que has hecho tú, y los desarrolladores de
Freepbx.

Con código inutil me refiero a que Freepbx utiliza decenas de macros
para comprobar flags de estado que poca gente utiliza y que aún así no
es identificativo ni ayuda en absoluto a tracear un problema como es
tu caso.

Para que te hagas una idea...:
   - Has enviado un log de 111 líneas
   - Cuando una llamada con un Dial normal son 3 líneas (como mucho) y
una transferencia son 2 líneas más de log.

El resto de líneas es simplemente información irrelevante que poco
ayuda a entender cual es tu problema.


P.D: Te recuerdo las normas de la lista... especialmente estas:

Cualquier usuario de la lista de Asterisk-ES acepta que será expulsado
de la lista temporal o permanentemente si envía algún mensaje que
cumpla con uno de estas normas:
...
10 - Enviar el mismo correo varias veces.
...
21 - No poner asuntos claros en el correo, que ayuden a identificar de
qué trata.
...

Así que modifica el asunto para hacer referencia al problema real que
tienes, y si no tiene el resultado esperado, posiblemente es que no
hayas seguido los consejos que se dan para obtener una respuesta
adecuada que puedes ver aquí:
http://comunidad.asterisk-es.org/index.php?title=Normas-correo


:)




El 26 de abril de 2010 12:22, Abel Molina
<abel.molin...@gmail.com> escribió:
>
Reply all
Reply to author
Forward
0 new messages