If you had read chapter 6 of the bridge book you'd know the answer. ;)<div><br></div><div>If you want to pass arguments then do something like this:</div><div><br></div><div><meta charset="utf-8"><meta charset="utf-8">greet-long="phrase:cc_ivr_main_menu:${cash}:${arg2}:${arg3}"<br>
<br></div><div>and</div><div><br></div><div><meta charset="utf-8"><macro name="cc_ivr_main_menu"><br> <input pattern="(.*?):(.*?):(.*?)"></div><div> <!-- ${cash} is in $1 now --></div>
<div><meta charset="utf-8"><div> <!-- ${arg2} is in $2 now --></div></div><div><meta charset="utf-8"><div><div> <!-- ${arg3} is in $3 now --></div></div></div><div><br></div><div>Now you can use $1, $2, $3, etc. in your phrase macro. If you want to see macros in action then I suggest you look at the voicemail macros - they do all sorts of stuff. Of course, if you'd read chapter 6 of the FS book you'd know that, too. ;)</div>
<div><br></div><div>-MC</div><div><br></div><div>P.S. - Did I mention chapter 6 of the book? :D The reason I'm so familiar with it is because I wrote the stuff on phrase macros in chapter 6 and chapter 7...</div><div>
<br><div class="gmail_quote">On Sat, Jun 11, 2011 at 2:20 PM, Avi Marcus <span dir="ltr"><<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm kinda new to IVRs and Phrases, but I see this:<br>
<br>
<action application="phrase" data="msgcount,130"/><br>
<macro name="msgcount"><br>
<input pattern="(.*)"><br>
<br>
Meaning I can pass a parameter to the phrase, and then set different<br>
matching input configurations.<br>
<br>
Now, I see phrases are being used in the IVR:<br>
I'd like to have an announcement of a balance at the beginning, but<br>
start listening for the digits already.<br>
But, I'd like to have two different types of announcement in the beginning.<br>
I can either duplicate and create two different IVRs and two different<br>
sets of phrases, or I can take advantage of that parameter passing.<br>
<br>
But when I try: greet-long="phrase:cc_ivr_main_menu,${cash}" I get:<br>
2011-06-12 00:05:24.788910 [ERR] switch_ivr_play_say.c:142 Can't find<br>
macro cc_ivr_main_menu,33.09.<br>
<br>
Am I missing something?<br>
Do I need to make a lua IVR to start capturing digits while I play<br>
other audio (how??) or create split the IVR into two nearly duplicate<br>
ones?<br>
<br>
Thanks,<br>
Avi<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>