If you had read chapter 6 of the bridge book you&#39;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=&quot;phrase:cc_ivr_main_menu:${cash}:${arg2}:${arg3}&quot;<br>
<br></div><div>and</div><div><br></div><div><meta charset="utf-8">&lt;macro name=&quot;cc_ivr_main_menu&quot;&gt;<br>        &lt;input pattern=&quot;(.*?):(.*?):(.*?)&quot;&gt;</div><div>            &lt;!-- ${cash} is in $1 now --&gt;</div>
<div><meta charset="utf-8"><div>            &lt;!-- ${arg2} is in $2 now --&gt;</div></div><div><meta charset="utf-8"><div><div>            &lt;!-- ${arg3} is in $3 now --&gt;</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&#39;d read chapter 6 of the FS book you&#39;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&#39;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">&lt;<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I&#39;m kinda new to IVRs and Phrases, but I see this:<br>
<br>
    &lt;action application=&quot;phrase&quot; data=&quot;msgcount,130&quot;/&gt;<br>
    &lt;macro name=&quot;msgcount&quot;&gt;<br>
         &lt;input pattern=&quot;(.*)&quot;&gt;<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&#39;d like to have an announcement of a balance at the beginning, but<br>
start listening for the digits already.<br>
But, I&#39;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=&quot;phrase:cc_ivr_main_menu,${cash}&quot; I get:<br>
2011-06-12 00:05:24.788910 [ERR] switch_ivr_play_say.c:142 Can&#39;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>