[asterisk-users] Ringing Groups, SIP Forward and looping problem
Robert Lister
robl at linx.net
Fri Sep 28 11:03:42 CDT 2007
Whoops! Forgot to change it for SIP devices.
Of course you need to change your queue member devices to SIP and not
Local/${ARG1} as I've got agents and other complications in mine.
You might need a context or not, see what happens!
Rob
Here is corrected version (I think will work, untested though!)
> [macro-outofgroup]
> exten => s,1,NoOp("macro-outofgroup reached: ${ARG1}")
> exten => s,n,NoOp( -- DND pausing queue member: SIP/${ARG1} --- )
> exten => s,n,PauseQueueMember(|SIP/${ARG1})
> exten => s,n,Set(DB(${ARG1}/outofgroup)=1)
> exten => s,n,Answer
> exten => s,n,Playback(extras/dnd-out-of-group)
> exten => s,n,Hangup
>
> [macro-ingroup]
> exten => s,1,NoOp("macro-ingroup reached: ${ARG1}")
> exten => s,n,NoOp( -- DND unpausing queue member: SIP/${ARG1} --- )
> exten => s,n,UnPauseQueueMember(|SIP/${ARG1})
> exten => s,n,DBdel(${ARG1}/outofgroup)
> exten => s,n,Answer
> exten => s,n,Playback(extras/dnd-now-in-group)
> exten => s,n,Hangup
>
> [macro-togglegroup]
> exten => s,1,NoOp("macro-togglegroup reached: ${ARG1}")
> exten => s,n,GotoIf($["${DB(${ARG1}/outofgroup)}" = ""]?900)
> exten => s,n,Macro(ingroup,${ARG1})
> exten => s,n,Hangup
>
> exten => s,900,Macro(outofgroup,${ARG1});
> exten => s,n,Hangup
--
Robert Lister - London Internet Exchange - http://www.linx.net/
sip:robl at linx.net - inoc-dba:5459*710 - tel: +44 (0)20 7645 3510
More information about the asterisk-users
mailing list