[AsteriskBrasil] pause agent

Éder eder.alem em gmail.com
Quinta Outubro 3 08:27:27 BRT 2013


Alguem pode ajudar ai

 

 

;;;pausar agent

exten => *11,1,Answer

exten => *11,1,Wait(1)

exten => *11,n,Macro(user-callerid,SKIPTTL,)

exten => *11,n,Set(CALLBACKNUM=${AMPUSER})

exten => *11,n,PauseQueueMember(|Local/${CALLBACKNUM}@from-internal/n)

exten => *11,n,System( echo
"${EPOCH}|${UNIQUEID}|NONE|Agent/${CALLBACKNUM}|AGENTUNPAUSED|-" >>
/var/log/asterisk/queue_log )

exten => *11,n,UserEvent(RefreshQueue)

exten => *11,n,Wait(1)

exten => *11,n,Playback(extension)

exten => *11,n,SayDigits(${CALLBACKNUM})

exten => *11,n,Playback(dictate/pause)

exten => *11,n,Wait(1)

exten => *11,n,Hangup

 

Cli>

 

  == Using SIP RTP CoS mark 5

    -- Executing [*11 em from-internal:1] Answer("SIP/2301-00000014", "") in
new stack

    -- Executing [*11 em from-internal:2] Macro("SIP/2301-00000014",
"user-callerid,SKIPTTL,") in new stack

    -- Executing [s em macro-user-callerid:1] Set("SIP/2301-00000014",
"TOUCH_MONITOR=1380747591.24") in new stack

    -- Executing [s em macro-user-callerid:2] Set("SIP/2301-00000014",
"AMPUSER=2301") in new stack

    -- Executing [s em macro-user-callerid:3] GotoIf("SIP/2301-00000014",
"0?report") in new stack

    -- Executing [s em macro-user-callerid:4] ExecIf("SIP/2301-00000014",
"1?Set(REALCALLERIDNUM=2301)") in new stack

    -- Executing [s em macro-user-callerid:5] Set("SIP/2301-00000014",
"AMPUSER=2301") in new stack

    -- Executing [s em macro-user-callerid:6] Set("SIP/2301-00000014",
"AMPUSERCIDNAME=2301") in new stack

    -- Executing [s em macro-user-callerid:7] GotoIf("SIP/2301-00000014",
"0?report") in new stack

    -- Executing [s em macro-user-callerid:8] Set("SIP/2301-00000014",
"AMPUSERCID=2301") in new stack

    -- Executing [s em macro-user-callerid:9] Set("SIP/2301-00000014",
"__DIAL_OPTIONS=Ttr") in new stack

    -- Executing [s em macro-user-callerid:10] Set("SIP/2301-00000014",
"CALLERID(all)="2301" <2301>") in new stack

    -- Executing [s em macro-user-callerid:11] GotoIf("SIP/2301-00000014",
"0?limit") in new stack

    -- Executing [s em macro-user-callerid:12] ExecIf("SIP/2301-00000014",
"0?Set(GROUP(concurrency_limit)=2301)") in new stack

    -- Executing [s em macro-user-callerid:13] ExecIf("SIP/2301-00000014",
"0?Set(CHANNEL(language)=)") in new stack

    -- Executing [s em macro-user-callerid:14] GosubIf("SIP/2301-00000014",
"7?sub-ccss,s,1(from-internal,*11)") in new stack

    -- Executing [s em sub-ccss:1] ExecIf("SIP/2301-00000014", "0?Return()") in
new stack

    -- Executing [s em sub-ccss:2] Set("SIP/2301-00000014", "CCSS_SETUP=TRUE")
in new stack

    -- Executing [s em sub-ccss:3] GosubIf("SIP/2301-00000014",
"0?monitor_config,1(from-internal,*11):monitor_default,1(from-internal,*11)"
) in new stack

    -- Executing [monitor_default em sub-ccss:1] GotoIf("SIP/2301-00000014",
"0?is_exten") in new stack

    -- Executing [monitor_default em sub-ccss:2] StackPop("SIP/2301-00000014",
"") in new stack

    -- Executing [monitor_default em sub-ccss:3] Return("SIP/2301-00000014",
"FALSE") in new stack

    -- Executing [s em macro-user-callerid:15] GotoIf("SIP/2301-00000014",
"1?continue") in new stack

    -- Goto (macro-user-callerid,s,28)

    -- Executing [s em macro-user-callerid:28] Set("SIP/2301-00000014",
"CALLERID(number)=2301") in new stack

    -- Executing [s em macro-user-callerid:29] Set("SIP/2301-00000014",
"CALLERID(name)=2301") in new stack

    -- Executing [s em macro-user-callerid:30] Set("SIP/2301-00000014",
"CDR(cnum)=2301") in new stack

    -- Executing [s em macro-user-callerid:31] Set("SIP/2301-00000014",
"CDR(cnam)=2301") in new stack

    -- Executing [s em macro-user-callerid:32] Set("SIP/2301-00000014",
"CHANNEL(language)=pt_BR") in new stack

    -- Executing [*11 em from-internal:3] Set("SIP/2301-00000014",
"CALLBACKNUM=2301") in new stack

    -- Executing [*11 em from-internal:4] PauseQueueMember("SIP/2301-00000014",
"|Local/2301 em from-internal/n") in new stack

[2013-10-02 17:59:51] WARNING[7154]: pbx.c:1442 pbx_exec: The application
delimiter is now the comma, not the pipe.  Did you forget to convert your
dialplan?  (PauseQueueMember(|Local/2301 em from-internal/n))

[2013-10-02 17:59:51] WARNING[7154]: app_queue.c:5940 pqm_exec: Missing
interface argument to PauseQueueMember
([queuename],interface[,options[,reason]])

  == Spawn extension (from-internal, *11, 4) exited non-zero on
'SIP/2301-00000014'

    -- Executing [h em from-internal:1] Hangup("SIP/2301-00000014", "") in new
stack

  == Spawn extension (from-internal, h, 1) exited non-zero on
'SIP/2301-00000014'

 

Ja tirei esse pipe ai tb…ele esta passando errando os parametros para o
queue log…nao consigo passar ele certinho

 

 

 

vlw

 

 

 

-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20131003/1599e4a1/attachment-0001.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil