<div class="de2">Hi,<br>I am having problem with the speak marco, can someone please help me?<br><br>In the sample code:</div><div class="de1"> session.sayPhrase<span class="br0">(</span>"speak", "Please leave a message after the beep", "en"<span class="br0">)</span>;</div>
<div class="de2"> </div><div class="de1">Inside /usr/local/freeswitch/conf/lang/en/vm/sounds.xm, I added:</div><div class="de2"> </div><div class="de1"> <macro name="speak"></div><div class="de2"> <input pattern="<span class="br0">(</span>.*<span class="br0">)</span>"></div>
<div class="de1"> <match></div><div class="de2"> <action function="play-file" data="voicemail/vm-hello.wav"/></div><div class="de1"> </match></div><div class="de2"> </input></div>
<div class="de1"> </div><div class="de2"> </macro></div><div class="de1"> </div><div class="de2"> </div><div class="de1"> </div><div class="de2"> </div><div class="de1">I am getting can't find marco speak error:</div>
<div class="de2"><span class="nu0">2008</span><span class="nu0">-04</span><span class="nu0">-19</span> <span class="nu0">03</span>:<span class="nu0">40</span>:<span class="nu0">20</span> <span class="br0">[</span>ERR<span class="br0">]</span> switch_ivr_play_say.c:<span class="nu0">196</span> switch_ivr_phrase_macro<span class="br0">(</span><span class="br0">)</span> can't find macro speak.</div>
<div class="de1"><span class="nu0">2008</span><span class="nu0">-04</span><span class="nu0">-19</span> <span class="nu0">03</span>:<span class="nu0">40</span>:<span class="nu0">20</span> <span class="br0">[</span>WARNING<span class="br0">]</span> switch_ivr_play_say.c:<span class="nu0">330</span> switch_ivr_phrase_macro<span class="br0">(</span><span class="br0">)</span> macro <span class="br0">[</span>speak<span class="br0">]</span> did not match any patterns</div>
<div class="de2"><span class="nu0">2008</span><span class="nu0">-04</span><span class="nu0">-19</span> <span class="nu0">03</span>:<span class="nu0">40</span>:<span class="nu0">20</span> <span class="br0">[</span>DEBUG<span class="br0">]</span> inc_logger.js:<span class="nu0">6</span> console_log<span class="br0">(</span><span class="br0">)</span>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
session.streamFile rtn=<span class="br0">[</span>undefined<span class="br0">]</span> >>>>>>>>> undefined</div><div class="de1"> </div><br><br>What did I do wrong?<br><br>Thanks in advance for all your help.<br>
<br>Regards,<br>Pete<br><span class="nu0"></span>