Is there a way to run a macro in a GotoIfTime statement ?? from the wiki documentation it seems not, but...... I would like to do something like this: ......... 554,3,GotoIfTime(08:30-14:30|mon-wed|*|*?Macro(exten-vm,novm,567)) it does not work, as expected from documentation any workaround to call an extension WITHOUT vm (also if vm for that extension is present...) as a consequence of a Time condition? thanks in advance Andrea Chi ricevesse questa mail per errore e' gentilmente pregato di cancellarla. Visitate il sito http://www.frameweb.it
On Wed, 2006-10-18 at 13:39 +0200, asterisk@frameweb.it wrote:> Is there a way to run a macro in a GotoIfTime statement ?? > from the wiki documentation it seems not, but...... > > I would like to do something like this: > > ......... > 554,3,GotoIfTime(08:30-14:30|mon-wed|*|*?Macro(exten-vm,novm,567)) > > it does not work, as expected from documentation > > any workaround to call an extension WITHOUT vm (also if vm for that > extension is present...) as a consequence of a Time condition? >I presume you can't move the GotoIfTime into the macro itself? Would something like that work for you? (You might need to doublecheck the exact syntax!) exten => 554,3,GotoIfTime(08:30-14:30|mon-wed|*|*?novm,567,1) ... [novm] exten => _X.,1,Macro(exten-vm,novm,${EXTEN}) ... Otherwise, can you post the rest of your dialplan and/or describe in more detail what you're trying to achieve? Conrad
Mojo with Horan & Company, LLC
2006-Oct-18 09:43 UTC
[asterisk-users] gotoiftime and Macro question
You don't run a function in the GotoIfTime application, you point to another context/extension/priority to jump to that DOES have the applications you need, as Conrad exampled. Moj asterisk@frameweb.it wrote:> Is there a way to run a macro in a GotoIfTime statement ?? > from the wiki documentation it seems not, but...... > > I would like to do something like this: > > ......... > 554,3,GotoIfTime(08:30-14:30|mon-wed|*|*?Macro(exten-vm,novm,567)) > > it does not work, as expected from documentation > > any workaround to call an extension WITHOUT vm (also if vm for that > extension is present...) as a consequence of a Time condition? > > thanks in advance > > Andrea > > Chi ricevesse questa mail per errore e' gentilmente pregato di cancellarla. > > Visitate il sito http://www.frameweb.it > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > !DSPAM:500,45361734218322068143078! >-- Mojo <mojo@horanappraisals.com> Office Manager, Horan & Company, LLC (907) 747-6666 x112