[Asterisk-Users] Jumb between macro's and variables
Julian J. M.
julianjm at gmail.com
Sun Feb 27 12:19:50 MST 2005
I guess you should do:
[macro-default]
exten => s,1,DBGet(do-not-disturb=DND/${ARG1})
exten => s,2,GotoIf($["${do-not-disturb}" = "YES"]?200)
...
exten => s,200,Macro(do_not_disturb,$ARG1) ; Call the macro, do not
jump directly like if it was a context
[macro-do_not_disturb]
exten => s,1,Wait(2)
exten => s,2,Answer
exten => s,3,Playback(pls-try-call-later)
exten => s,4,Voicemail(u${ARG1})
exten => s,5,Hangup
Julian J. M.
On Sun, 27 Feb 2005 19:58:32 +0100, Riphagen, Ferdy
<f.riphagen at tiscali.nl> wrote:
> Hello All,
>
> I have a macro and want to jump to another macro if a conditition is true or
> false.
> Asterisk is jumping to the next macro, but then the {ARG1} variable is not
> working anymore.
>
> part of config:
>
> [macro-default]
> exten => s,1,DBGet(do-not-disturb=DND/${ARG1})
> exten => s,2,GotoIf($["${do-not-disturb}" = "YES"]?macro-do_not_disturb,s,1)
> ...
More information about the asterisk-users
mailing list