Problem passing and playing audio files into a conference
Hi all, I hope that someone can help with solving the following problem. I have tried using the example code at the bottom of http://wiki.freeswitch.org/wiki/Mod_conference page, but stripped back to not record (so as to limit the number of possible problems) but just to play back selected wav files. Q: How to create a dialplan to have callers speak their name before joining the conference and announce that to other participants when they join? This is the code I'm using...having added a couple of delays <extension name="Record Name and schedule conf announce"> <condition field="destination_number" expression="^55(3\d\d\d)$"> <action application="answer"/> <action application="playback" data="ivr/ivr-call_being_transferred.wav"/> <action application="sleep" data="1000"/> <action application="log" data="INFO Caller Id Name is: ${caller_id_name}"/> <!-- display for reference only --> <!-- disable original line --> <!-- <action application="set" data="res=${sched_api +1 none conference $1-${domain} play file_string://${namefile}!${sound_prefix}/conference/8000/conf-has_joine d.wav}"/> --> <action application="set" data="res=${sched_api (+2 none conference $1-${domain} play file_string://${sound_prefix}/conference/8000/conf-welcome.wav!${sound_p refix}/conference/8000/conf-has_joined.wav)}"/> <action application="sleep" data="1000"/> <action application="transfer" data="$1 XML default"/> </condition> </extension> Using this line, instead of the original: <action application="set" data="res=${sched_api (+2 none conference $1-${domain} play file_string://${sound_prefix}/conference/8000/conf-welcome.wav!${sound_p refix}/conference/8000/conf-has_joined.wav)}"/> with the () brackets as shown at least set the res ok, i.e. I didn't get this error message: EXECUTE sofia/nat/1101@DOMAIN set(res=) 2012-06-14 09:56:47.493255 [DEBUG] mod_dptools.c:748 sofia/nat/1101@DOMAIN SET [res]=[UNDEF] (note that I have removed the domain name and replaced it with DOMAIN in these messages) but got this instead: 2012-06-15 16:24:55.713235 [DEBUG] switch_scheduler.c:214 Added task 6 sched_api_function (none) to run at 1339773897 EXECUTE sofia/nat/1209@DOMAIN set(res=+OK Added: 6) 2012-06-15 16:24:55.713235 [DEBUG] mod_dptools.c:748 sofia/nat/1209@DOMAIN SET [res]=[+OK Added: 6] which appears to be some improvement! As before the call got transferred to the conference, but didn't run the additional audio clips specified in the action application set up line shown above and then ran the hold music. Instead I got the following invalid file format error message from file_string: 2012-06-15 16:24:57.481975 [ERR] switch_core_file.c:71 Invalid file format [file_string] for [/opt/freeswitch/sounds/en/us/callie/conference/8000/conf-welcome.wav!/o pt/freeswitch/sounds/en/us/callie/conference/8000/conf-has_joined.wav]! 2012-06-15 16:24:57.481975 [DEBUG] mod_commands.c:2391 Command conference(3000-132.185.142.18 play file_string:///opt/freeswitch/sounds/en/us/callie/conference/8000/conf-w elcome.wav!/opt/freeswitch/sounds/en/us/callie/conference/8000/conf-has_ joined.wav): (play) File: file_string:///opt/freeswitch/sounds/en/us/callie/conference/8000/conf-w elcome.wav!/opt/freeswitch/sounds/en/us/callie/conference/8000/conf-has_ joined.wav not found. 2012-06-15 16:24:57.481975 [DEBUG] switch_scheduler.c:138 Deleting task 6 sched_api_function (none) 2012-06-15 16:24:59.473199 [DEBUG] mod_local_stream.c:346 Opening Stream [moh/8000] 8000hz The two particular audio files conf-welcome.wav and conf-has_joined.wav do exist at the specified location.
From what I have seen on various posts in the lists, the file_stream syntax seems to be correct, so what might the problem be parsing and playing these files once into the conference?
Thanks for any help Peter http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this.
participants (1)
-
Peter Stevens