[Asterisk-Users] Why does this Macro Loop?

Eric Wieling eric at fnords.org
Thu Apr 14 05:01:26 MST 2005


Mystery Glitch wrote:

> In my [incoming] context I have something like this:
> exten => 8885861575,1,Macro(vrforward,${EXTEN},8136361451)
> 
> 
> And thie Macro contains this:
> [macro-vrforward]
> exten => s,1,GotoIF($[${CALLERIDNUM} = 9545551111]?40:2)
> exten => s,2,SetGroup(${ARG1})
> exten => s,3,CheckGroup(3)
> exten => s,4,SetAccount(${ARG1})
> exten => s,5,Dial(SIP/1${ARG2}@termprovider,30,o)
> exten => s,40,AGI(checkin|${ARG1})
> exten => s,41,Hangup

Change exten => s,40,AGI(checkin|${ARG1}) to exten => s,40,Noop

If it stops looping then the checkin script is causing the loop. 
Perhaps it's running the macro-vmforward from within the script.

-- 
Always do right. This will gratify some people and astonish the rest.
Mark Twain



More information about the asterisk-users mailing list