You might try this suggestion:<br>Create a new file for your custom macros: /conf/lang/en/demo/custom-phrases.xml<br><span style="font-family: courier new,monospace;"><include></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <macro name="confwelcome"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <input pattern="(.*)"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <action function="play-file" data="vm/vm-youhave.wav"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </input></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </macro></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></include></span><br style="font-family: courier new,monospace;">
<br>Now you have a single place to put all of your custom macros. Be sure to reloadxml!<br>-MC<br><br><div class="gmail_quote">On Fri, Feb 26, 2010 at 9:10 AM, Maciej Bylica <span dir="ltr"><<a href="mailto:mbsip@gazeta.pl">mbsip@gazeta.pl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I am playing around with Phrases to use them with conference application.<br>
But i've encountered rudimentary problem of how to use newly added macro.<br>
<br>
What I already did is (according to wiki Speech Phrase Management)<br>
<a href="http://wiki.freeswitch.org/wiki/Speech_Phrase_Management" target="_blank">http://wiki.freeswitch.org/wiki/Speech_Phrase_Management</a><br>
- confirmed that there is "mod_say_en" loaded (<load module="mod_say_en"/>)<br>
- confirmed that there are proper .wav files<br>
- modified onf/lang/en/en.xml file:<br>
<section name="phrases" description="Speech Phrase Management"><br>
<macros><br>
<language name="en" sound_path="$${sounds_dir}/en/us/callie"<br>
tts_engine="cepstral" tts_voice="callie"><br>
<macro name="confwelcome"><br>
<input pattern="(.*)"><br>
<match><br>
<action function="play-file" data="vm-youhave.wav"/><br>
<!-- just to test the phrase--><br>
</match><br>
</language><br>
</macros><br>
</section><br>
- modified a part of dialplan:<br>
<extension name="conference_48112223344"><br>
<condition field="destination_number" expression="^(\d{11})$"><br>
<action application="phrase" data="confwelcome"/><br>
</condition><br>
</extension><br>
<br>
I have following outcome:<br>
2010-02-26 19:57:09.487245 [DEBUG] switch_core_session.c:638 Send<br>
signal sofia/internal/<a href="mailto:1000@217.153.192.36">1000@217.153.192.36</a> [BREAK]<br>
EXECUTE sofia/internal/<a href="mailto:1000@217.153.192.36">1000@217.153.192.36</a> phrase(confwelcome)<br>
2010-02-26 19:57:09.487245 [DEBUG] mod_dptools.c:1850 Execute confwelcome() lang<br>
2010-02-26 19:57:09.487245 [DEBUG] switch_ivr_play_say.c:118 No<br>
language specified - Using [en]<br>
2010-02-26 19:57:09.496322 [ERR] switch_ivr_play_say.c:202 Can't find<br>
macro confwelcome.<br>
2010-02-26 19:57:09.496322 [WARNING] switch_ivr_play_say.c:368 Macro<br>
[confwelcome] did not match any patterns<br>
<br>
<br>
<br>
Strange is that if i use a wiki example, it works. To be more precise:<br>
- conf/lang/en/en.xml file was overwritten with an example macros<br>
(directly from aforementioned wiki).<br>
- dialplan was modified:<br>
<extension name="conference_48112223344"><br>
<condition field="destination_number" expression="^(\d{11})$"><br>
<action application="phrase" data="msgcount"/><br>
</condition><br>
</extension><br>
<br>
<br>
Am i doing something wrong?<br>
<br>
Thx,<br>
Maciej.<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>