it looks like the person who posted that example did not post their sample phrase macro file. However, do a git pull...<div><br></div><div><div><font face="&#39;courier new&#39;, monospace" size="1">commit 9ea3ce666fa7f021b5c2a7e2fbe153eb351c5734</font></div>
<div><font face="&#39;courier new&#39;, monospace" size="1">Author: Michael S Collins &lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</font></div><div><font face="&#39;courier new&#39;, monospace" size="1">Date:   Wed Dec 7 14:49:16 2011 -0800</font></div>
<div><font face="&#39;courier new&#39;, monospace" size="1"><br></font></div><div><font face="&#39;courier new&#39;, monospace" size="1">    config: add screen_confirm macro to lang/en/ivr/sounds.xml</font></div><div><br>
</div><div>snag that config file and drop it into conf/lang/en/ivr/ and then reloadxml. I did this on the fly w/o testing so be sure to test it thoroughly to make sure it works! Also, be sure to use the full path name to the sound file that you are playing back.</div>
<div><br></div><div>-MC</div><br><div class="gmail_quote">On Wed, Dec 7, 2011 at 12:49 PM, Phil Quesinberry <span dir="ltr">&lt;<a href="mailto:philq@qsystemsengineering.com">philq@qsystemsengineering.com</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 trying to use the call screening example in the wiki and can&#39;t get FS to<br>
play the caller&#39;s name back to the destination extension.<br>
example here:<br>
<a href="http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML#Example_13:_Call_Scr" target="_blank">http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML#Example_13:_Call_Scr</a><br>
eening<br>
<br>
The initial announcement asking for the caller&#39;s name works fine:<br>
EXECUTE sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> phrase(voicemail_record_name)<br>
2011-12-07 14:52:13.715494 [DEBUG] mod_dptools.c:2362 Execute<br>
voicemail_record_name() lang<br>
2011-12-07 14:52:13.715494 [DEBUG] switch_ivr_play_say.c:67 No language<br>
specified - Using [en]<br>
2011-12-07 14:52:13.715494 [DEBUG] switch_ivr_play_say.c:244 Handle<br>
play-file:[voicemail/vm-record_name1.wav] (en:en)<br>
2011-12-07 14:52:13.715494 [DEBUG] switch_ivr_play_say.c:1302 Codec<br>
Activated L16@8000hz 1 channels 20ms<br>
2011-12-07 14:52:18.695891 [DEBUG] switch_ivr_play_say.c:1672 done playing<br>
file /usr/local/freeswitch/sounds/en/us/callie/voicemail/vm-record_name1.wav<br>
EXECUTE sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> playback(tone_stream://%(500, 0,<br>
640))<br>
2011-12-07 14:52:18.799791 [DEBUG] switch_ivr_play_say.c:1302 Codec<br>
Activated L16@8000hz 1 channels 20ms<br>
2011-12-07 14:52:19.299814 [DEBUG] switch_ivr_play_say.c:1672 done playing<br>
file tone_stream://%(500, 0, 640)<br>
EXECUTE sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a><br>
set(playback_terminators=#*0123456789)<br>
2011-12-07 14:52:19.299814 [DEBUG] mod_dptools.c:1263<br>
sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> SET<br>
[playback_terminators]=[#*0123456789]<br>
<br>
Then the caller&#39;s name is recorded, and I&#39;ve verified that the recording is<br>
indeed saved in /tmp:<br>
EXECUTE sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> record(/tmp/102-name.wav 7 200<br>
2)<br>
2011-12-07 14:52:19.299814 [DEBUG] switch_ivr_play_say.c:585 Raw Codec<br>
Activated<br>
2011-12-07 14:52:19.299814 [DEBUG] switch_core_codec.c:116<br>
sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> Push codec L16:70<br>
.<br>
EXECUTE sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> set(group_confirm_key=1)<br>
2011-12-07 14:52:21.623965 [DEBUG] mod_dptools.c:1263<br>
sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> SET [group_confirm_key]=[1]<br>
EXECUTE sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> set(fail_on_single_reject=true)<br>
2011-12-07 14:52:21.623965 [DEBUG] mod_dptools.c:1263<br>
sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> SET [fail_on_single_reject]=[true]<br>
EXECUTE sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a><br>
set(group_confirm_file=phrase:screen_confirm:/tmp/102-name.wav)<br>
2011-12-07 14:52:21.623965 [DEBUG] mod_dptools.c:1263<br>
sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> SET<br>
[group_confirm_file]=[phrase:screen_confirm:/tmp/102-name.wav]<br>
EXECUTE sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> set(continue_on_fail=true)<br>
2011-12-07 14:52:21.623965 [DEBUG] mod_dptools.c:1263<br>
sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> SET [continue_on_fail]=[true]<br>
EXECUTE sofia/internal/<a href="http://102@192.168.1.6:5060" target="_blank">102@192.168.1.6:5060</a> bridge(user/102)<br>
.<br>
Then when attempting to play back the Output from the console showing the<br>
error is here:<br>
2011-12-07 14:52:26.348406 [ERR] switch_ivr_play_say.c:142 Can&#39;t find macro<br>
screen_confirm.<br>
2011-12-07 14:52:26.348406 [WARNING] switch_ivr_play_say.c:339 Macro<br>
[screen_confirm]: &#39;/tmp/102-name.wav&#39; did not match any patterns<br>
2011-12-07 14:52:26.348406 [ERR] switch_ivr_originate.c:219<br>
sofia/internal/<a href="http://sip:102@192.168.1.4:5060" target="_blank">sip:102@192.168.1.4:5060</a> Error Playing File!<br>
<br>
The call goes right to voicemail once the destination extension attempts to<br>
answer it.<br>
<br>
Where are these macros supposed to be stored?  Somewhere under<br>
/usr/local/freeswitch/conf/lang/en?  Do I need to create a macro for<br>
screen_confirm or is it just named incorrectly or in the wrong place?<br>
<br>
Thanks,<br>
<br>
Phil Quesinberry<br>
Q Systems Engineering, Inc.<br>
Electronic Controls and Embedded Systems Development<br>
<a href="tel:%28410%29%20969-8002" value="+14109698002">(410) 969-8002</a><br>
<a href="http://www.qsystemsengineering.com" target="_blank">http://www.qsystemsengineering.com</a><br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>