exten => 777,1,Macro(getsupportconf|1500) [macro-getsupportconf] exten => s,1,Set(CONFNUM=${ARG1}) ; starting number exten => s,n,NoOp(${CONFNUM}) exten => s,n,MeetMeCount(${CONFNUM}|count) exten => s,n,GotoIf($["${count}" = "0"]?10) exten => s,n,Set(CONFNUM=$[${CONFNUM}+1]) exten => s,n,Goto(2) ; try the next conference exten => s,10,NoOp(Found valid conference ${CONFNUM}) exten => s,n,Dial(SIP/jonlaptop||mG(macro-getsupportconf^join-${CONFNUM}^1)) exten => _join-.,1,Goto(5) exten => _join-.,2,MeetMe(${EXTEN:5}|1dAMqx) ; end conference if advantage leaves. exten => _join-.,3,Hangup() exten => _join-.,5,MeetMe(${EXTEN:5}|1dMqx) ; this is the user calling for support. exten => _join-.,6,Hangup() -- Executing Macro("SIP/jonlaptop-0822f400", "getsupportconf|1500") in new stack -- Executing Set("SIP/jonlaptop-0822f400", "CONFNUM=1500") in new stack -- Executing NoOp("SIP/jonlaptop-0822f400", "1500") in new stack -- Executing MeetMeCount("SIP/jonlaptop-0822f400", "1500|count") in new stack == Parsing '/etc/asterisk/meetme.conf': Found -- Executing GotoIf("SIP/jonlaptop-0822f400", "1?10") in new stack -- Goto (macro-getsupportconf,s,10) -- Executing NoOp("SIP/jonlaptop-0822f400", "Found valid conference 1500") in new stack -- Executing Dial("SIP/jonlaptop-0822f400", "SIP/jonlaptop||mG(macro-getsupportconf^join-1500^1)") in new stack -- Called jonlaptop -- Started music on hold, class 'default', on channel 'SIP/jonlaptop-0822f400' -- SIP/jonlaptop-08235138 is ringing -- SIP/jonlaptop-08235138 answered SIP/jonlaptop-0822f400 == Auto fallthrough, channel 'SIP/jonlaptop-0822f400' status is 'UNKNOWN' -- Stopped music on hold on SIP/jonlaptop-0822f400 == Starting SIP/jonlaptop-08235138 at macro-getsupportconf,join-1500,2 failed so falling back to exten 's' -- Executing Set("SIP/jonlaptop-08235138", "CONFNUM=") in new stack -- Executing NoOp("SIP/jonlaptop-08235138", "") in new stack -- Executing MeetMeCount("SIP/jonlaptop-08235138", "|count") in new stack == Parsing '/etc/asterisk/meetme.conf': Found -- Executing GotoIf("SIP/jonlaptop-08235138", "1?10") in new stack -- Goto (macro-getsupportconf,s,10) -- Executing NoOp("SIP/jonlaptop-08235138", "Found valid conference ") in new stack -- Executing Dial("SIP/jonlaptop-08235138", "SIP/jonlaptop||mG(macro-getsupportconf^join-^1)") in new stack -- Called jonlaptop -- Started music on hold, class 'default', on channel 'SIP/jonlaptop-08235138' -- SIP/jonlaptop-082432d8 is ringing -- SIP/jonlaptop-082432d8 is ringing -- Stopped music on hold on SIP/jonlaptop-08235138 == Spawn extension (macro-getsupportconf, s, 11) exited non-zero on 'SIP/jonlaptop-08235138'