Enviar datos en una macro para ejecutar desde las cola configurada:
queues_post_custom.conf
[333](+)
membermacro=envioDatos
[3001](+)
membermacro=envio3001
extensions_custom.conf
[macro-enviotaxi]
exten => s,1,NoOp(Envio333 ${QAGENT} ${UNIQUEID} ${FROMEXTEN} ${HANGUPCAUSE}) )
;exten => s,n,System( echo "'$(date +'%D_Hora:_%T') _Agente:_${CHANNEL} _Tel_Cliente:_${FROMEXTEN} _Troncal:_"${FROM_DID}" '" >> /var/log/asterisk/e cus.txt )
exten => s,n,System( echo "'$(date +'Fecha:_%d_%m_%Y_Hora:_%T') _Agente:_${CHANNEL} _"${CALLERID(number)}" _Troncal:_"${FROM_DID}" _Tel_Cliente:_${FR OMEXTEN} '" >> /var/log/asterisk/ecus.txt )
;;
;;
exten => s,n,System(php -f /var/lib/asterisk/agi-bin/llamada.php ${UNIQUEID} "${CHANNEL}" ${FROMEXTEN} )
[macro-envio3001]
exten => s,1,NoOp(Envio3001 ${QAGENT} ${UNIQUEID} ${FROMEXTEN} )
exten => s,n,System(php -f /var/lib/asterisk/agi-bin/ingresallamada.php ${UNIQUEID} "${CHANNEL}" ${FROMEXTEN} )
No hay comentarios:
Publicar un comentario