[Asterisk-Users] SetGroup and CheckGroup problems

Mike Sander mike at corporatebankinginternational.com
Mon Jan 24 16:54:13 MST 2005


I have a rather long dial plan, but it includes support for call waiting.
However, the setgroup checkgroup commands don't seem to be working. Can
anyone help on this one?

Excerpts are below. First exten-vm is dialed and then dial-new.

As I understand, priority 1 increments the active channels for the caller
and then in "dial-new" priority 8 increments for Arg3, or the Callee
extension. Problem is, that priority 9 always goes on to 10 (i.e. group
never is "on-the-phone".

Am I missing something?

When ext201 dials 202, CLI shows:

    -- Executing Macro("SIP/201-8571", "exten-vm|202|202") in new stack
    -- Executing SetGroup("SIP/201-8571", "201") in new stack
    -- Executing SetMusicOnHold("SIP/201-8571", "default") in new stack
    -- Executing SetVar("SIP/201-8571", "FROMCONTEXT=exten-vm") in new stack
    -- Executing GotoIf("SIP/201-8571", "0?9:5") in new stack
    -- Goto (macro-exten-vm,s,5)
    -- Executing Macro("SIP/201-8571", "dial-new|15|tr|202|202") in new
stack
    -- Executing DBget("SIP/201-8571", "CallForwardIm=CF/202") in new stack
    -- DBget: varname=CallForwardIm, family=CF, key=202
    -- DBget: Value not found in database.
    -- Executing Goto("SIP/201-8571", "s|4") in new stack
    -- Goto (macro-dial-new,s,4)
    -- Executing DBget("SIP/201-8571", "DNDStatus=DND/202") in new stack
    -- DBget: varname=DNDStatus, family=DND, key=202
    -- DBget: Value not found in database.
    -- Executing Goto("SIP/201-8571", "s|8") in new stack
    -- Goto (macro-dial-new,s,8)
    -- Executing SetGroup("SIP/201-8571", "202") in new stack

I'll be most grateful for any assistance.

Thanks

Mike


[macro-exten-vm]
exten => s,1,SetGroup(${CALLERIDNUM})
exten => s,2,SetMusicOnHold(default)
exten => s,3,Setvar(FROMCONTEXT=exten-vm) exten =>
s,4,GotoIf($[${CALLERIDNUM} = ${ARG2}]?9:5) ;check self-voicemail exten =>
s,5,Macro(dial-new,${RINGTIMER},${DIAL_OPTIONS},${ARG2},${ARG1})


[macro-dial-new]
;now check if destination is on a call
exten => s,8,SetGroup(${ARG3})
exten => s,9,CheckGroup(1)
;go to 110 then 25 if on the phone (CW handler), go to 10 if not on the
phone
exten => s,110,Goto(s,25)

;line is clear, begin dial sequence
exten => s,10,Setvar(ChanType=${E${ARG3}})      ;Get the channel type
exten => s,11,Dial(${ChanType}/${ARG3},${ARG1},${ARG2})

Mike Sander

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.3 - Release Date: 24/01/2005
 




More information about the asterisk-users mailing list