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;">&lt;include&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  &lt;macro name=&quot;confwelcome&quot;&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    &lt;input pattern=&quot;(.*)&quot;&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">      &lt;action function=&quot;play-file&quot; data=&quot;vm/vm-youhave.wav&quot;/&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    &lt;/input&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  &lt;/macro&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;/include&gt;</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">&lt;<a href="mailto:mbsip@gazeta.pl">mbsip@gazeta.pl</a>&gt;</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&#39;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 &quot;mod_say_en&quot; loaded (&lt;load module=&quot;mod_say_en&quot;/&gt;)<br>
- confirmed that there are proper .wav files<br>
- modified onf/lang/en/en.xml file:<br>
 &lt;section name=&quot;phrases&quot; description=&quot;Speech Phrase Management&quot;&gt;<br>
   &lt;macros&gt;<br>
     &lt;language name=&quot;en&quot; sound_path=&quot;$${sounds_dir}/en/us/callie&quot;<br>
tts_engine=&quot;cepstral&quot; tts_voice=&quot;callie&quot;&gt;<br>
       &lt;macro name=&quot;confwelcome&quot;&gt;<br>
         &lt;input pattern=&quot;(.*)&quot;&gt;<br>
           &lt;match&gt;<br>
              &lt;action function=&quot;play-file&quot; data=&quot;vm-youhave.wav&quot;/&gt;<br>
&lt;!-- just to test the phrase--&gt;<br>
           &lt;/match&gt;<br>
     &lt;/language&gt;<br>
   &lt;/macros&gt;<br>
 &lt;/section&gt;<br>
- modified a part of dialplan:<br>
    &lt;extension name=&quot;conference_48112223344&quot;&gt;<br>
      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{11})$&quot;&gt;<br>
         &lt;action application=&quot;phrase&quot; data=&quot;confwelcome&quot;/&gt;<br>
      &lt;/condition&gt;<br>
     &lt;/extension&gt;<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&#39;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>
    &lt;extension name=&quot;conference_48112223344&quot;&gt;<br>
      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{11})$&quot;&gt;<br>
         &lt;action application=&quot;phrase&quot; data=&quot;msgcount&quot;/&gt;<br>
      &lt;/condition&gt;<br>
     &lt;/extension&gt;<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>