[Asterisk-Users] Jumb between macro's and variables

Howard Lowndes lannet at lannet.com.au
Sun Feb 27 13:33:27 MST 2005


On Mon, 2005-02-28 at 05:58, Riphagen, Ferdy 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.

Try SetVar(SAVEARG=${ARG1}) in one macro then reference it in the next.

> 
> 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)
> ...
> 
> 
> [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
> 
> In the asterisk log I see this error for s,4 in macro-do_not_disturb:
> 
> -- Executing VoiceMail("SIP/201-6440", "u") in new stack
> Feb 27 19:44:32 WARNING[1202]: app_voicemail.c:1540 leave_voicemail: No
> entry in voicemail config file for ''
> 
> What is wrong?
> 
> Thanks,
> 
> --Ferdy
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 2/25/2005
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Howard.
LANNet Computing Associates;
Your Linux people <http://www.lannetlinux.com>
------------------------------------------
"When you just want a system that works, you choose Linux;
when you want a system that just works, you choose Microsoft."
------------------------------------------
"Flatter government, not fatter government;
Get rid of the Australian states."





More information about the asterisk-users mailing list