[asterisk-users] Asterisk Queue's
José Carlos Messias
zehkarlos at gmail.com
Wed Sep 3 05:54:27 CDT 2008
Hi,
I'm using pauseQueueMember and UnPauseQueueMember to resolve this
issue. Here's part of my macro:
[macro-disca]
exten=>s, 1,set(CDR(userfield)=${CALLERID(num)}_${CLIENTE})
exten=>s, n,set(AGNT=${CALLERID(num)})
exten=>s, n,set(_TAM=${LEN(${AGNT})})
exten=>s, n,set(__TAMDST=${LEN(${MACRO_EXTEN})})
exten=>s, n,GotoIf($["${TAMDST}" = "4"]?cfimCk) ;
exten=>s, n,GotoIf($["${TAM}" = "3"]?pauseOn) ;is agent
exten=>s, n,GotoIf($["${GRAVAR}" = "y"]?rec:disk) ;record call
exten=>s, n(pauseOn),PauseQueueMember(|Agent/${AGNT}) ;pause agent
exten=>s, n(rec),Macro(gravacao,saintes,${MACRO_EXTEN}) ;record calls
exten=>s, n,Dial(${ARG1},60,tTg) ;g->to execute line before
exten=>s, n,GotoIf($["${TAM}" = "3"]?pauseOff:status)
exten=>s, n(pauseOff),UnPauseQueueMember(|Agent/${AGNT})
exten=>s, n(status),goto(s-${DIALSTATUS},1)
exten=>s, n(end),HangUp()
exten=>h,1,GotoIf($["${TAM}" = "3"]?2:3)
exten=>h,2,UnPauseQueueMember(|Agent/${AGNT})
exten=>h,3,HangUp()
More information about the asterisk-users
mailing list