[Freeswitch-users] Question with marco speak

Pete Kay petedao at gmail.com
Fri Apr 18 06:48:30 PDT 2008

I am having problem with the speak marco, can someone please help me?

In the sample code:
    session.sayPhrase("speak", "Please leave a message after the beep", "en"

Inside  /usr/local/freeswitch/conf/lang/en/vm/sounds.xm, I added:

  <macro name="speak">
    <input pattern="(.*)">
        <action function="play-file" data="voicemail/vm-hello.wav"/>


I am getting can't find marco speak error:
2008-04-19 03:40:20 [ERR] switch_ivr_play_say.c:196 switch_ivr_phrase_macro(
) can't find macro speak.
2008-04-19 03:40:20 [WARNING] switch_ivr_play_say.c:330switch_ivr_phrase_macro
() macro [speak] did not match any patterns
2008-04-19 03:40:20 [DEBUG] inc_logger.js:6 console_log()
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> session.streamFile rtn=[undefined] >>>>>>>>>

What did I do wrong?

Thanks in advance for all your help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080418/90914d05/attachment-0002.html 

More information about the FreeSWITCH-users mailing list