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

Riphagen, Ferdy f.riphagen at tiscali.nl
Sun Feb 27 11:58:32 MST 2005


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)
...


[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




More information about the asterisk-users mailing list