Re: [Freeswitch-users] How to specify Path for sound files
Hi Faisal, the path is either an absolute path or a path relative to the directory in the sound_prefix var in vars.xml. So this <action application="playback" data="/usr/local/freeswitch/sounds/en/us/callie/misc/8000/call_secured.wav"/> works fine on my box. You sure this one doesn't work for you? Jan
I tried to play a sound file using the dialplan given on the link http://wiki.freeswitch.org/wiki/Playing_recording_external_media#Play_wav
<action application="playback" data="/path/to/your.wav"/> In place of /path/to/your.wave I used "/en/us/callie/misc/8000/call_secured.wav" "/usr/local/freeswitch/sounds/en/us/callie/misc/8000/call_secured.wav" "/sounds/en/us/callie/misc/8000/call_secured.wav" But none of these is useful bcoz when i call on 2009, which is to b dialed to play the sound, same msg is displayed "404 NOT FOUND" Plz help me out.??? Faisal
Yes its not working on my system. When i copy this in default.xml dialplan, it works but as a seperate extension in dialplan/extensions it does'nt. Faisal --- On Mon, 12/1/08, Jan Kubr <jan.kubr@gmail.com> wrote: From: Jan Kubr <jan.kubr@gmail.com> Subject: Re: [Freeswitch-users] How to specify Path for sound files To: freeswitch-users@lists.freeswitch.org Date: Monday, December 1, 2008, 12:55 PM Hi Faisal, the path is either an absolute path or a path relative to the directory in the sound_prefix var in vars.xml. So this <action application="playback" data="/usr/local/freeswitch/sounds/en/us/callie/misc/8000/call_secured.wav"/> works fine on my box. You sure this one doesn't work for you? Jan
I tried to play a sound file using the dialplan given on the link http://wiki.freeswitch.org/wiki/Playing_recording_external_media#Play_wav
<action application="playback" data="/path/to/your.wav"/> In place of /path/to/your.wave I used "/en/us/callie/misc/8000/call_secured.wav"
"/usr/local/freeswitch/sounds/en/us/callie/misc/8000/call_secured.wav"
"/sounds/en/us/callie/misc/8000/call_secured.wav" But none of these is useful bcoz when i call on 2009, which is to b dialed to play the sound, same msg is displayed "404 NOT FOUND" Plz help me out.??? Faisal
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Tuesday 02 December 2008 18:30:53 Faisal Maqsoodi wrote:
Yes its not working on my system. When i copy this in default.xml dialplan, it works but as a seperate extension in dialplan/extensions it does'nt. Faisal
It's a little hard to understand what you're saying but I'd hazard a guess that your extension is below the transfer to enum. Are you creating a separate file in conf/dialplan/default/ ? What are you naming the file? Does it show up below the enum file in a directory listing? As Anthony said if you set debug logging then you will see what is going on. hads -- http://nicegear.co.nz VoIP, DVB and other Linux compatible hardware.
Actually i copied the following text in a new text file and saved it as test1.xml file in /conf/dialplan/extensions, where 99999_enum.xml and 00_pizza_demo.xml exist, but it didnt worked. <extension name="wavs"> <condition field="destination_number" expression="^2009$"> <action application="playback" data="/usr/local/freeswitch/sounds/en/us/callie/misc/8000/call_secured.wav"/> </condition> </extension> Then i copied the same text and pasted in conf/dialplan/default.xml file below the line <context name="default"> and above the line <extension name="unloop"> and it worked successfully. Hope i ve explained what i wanted to. Faisal --- On Mon, 12/1/08, Hadley Rich <hads@nice.net.nz> wrote: From: Hadley Rich <hads@nice.net.nz> Subject: Re: [Freeswitch-users] How to specify Path for sound files To: freeswitch-users@lists.freeswitch.org Date: Monday, December 1, 2008, 9:54 PM On Tuesday 02 December 2008 18:30:53 Faisal Maqsoodi wrote:
Yes its not working on my system. When i copy this in default.xml dialplan, it works but as a seperate extension in dialplan/extensions it does'nt. Faisal
It's a little hard to understand what you're saying but I'd hazard a guess that your extension is below the transfer to enum. Are you creating a separate file in conf/dialplan/default/ ? What are you naming the file? Does it show up below the enum file in a directory listing? As Anthony said if you set debug logging then you will see what is going on. hads -- http://nicegear.co.nz VoIP, DVB and other Linux compatible hardware. _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Tuesday 02 December 2008 19:44:21 Faisal Maqsoodi wrote:
Actually i copied the following text in a new text file and saved it as test1.xml file in /conf/dialplan/extensions, where 99999_enum.xml and 00_pizza_demo.xml exist, but it didnt worked. <extension name="wavs"> <condition field="destination_number" expression="^2009$"> <action application="playback" data="/usr/local/freeswitch/sounds/en/us/callie/misc/8000/call_secured.wav" /> </condition> </extension> Then i copied the same text and pasted in conf/dialplan/default.xml file below the line <context name="default"> and above the line <extension name="unloop"> and it worked successfully. Hope i ve explained what i wanted to. Faisal
--- On Mon, 12/1/08, Hadley Rich <hads@nice.net.nz> wrote: From: Hadley Rich <hads@nice.net.nz> Subject: Re: [Freeswitch-users] How to specify Path for sound files To: freeswitch-users@lists.freeswitch.org Date: Monday, December 1, 2008, 9:54 PM
On Tuesday 02 December 2008 18:30:53 Faisal Maqsoodi wrote:
Yes its not working on my system. When i copy this in default.xml
dialplan,
it works but as a seperate extension in dialplan/extensions it
does'nt.
Faisal
It's a little hard to understand what you're saying but I'd hazard a guess that your extension is below the transfer to enum.
Are you creating a separate file in conf/dialplan/default/ ? What are you naming the file? Does it show up below the enum file in a directory listing?
As Anthony said if you set debug logging then you will see what is going on.
hads
People should really quote properly huh. As I suspected you're getting transferred to enum (which the debug logging would have told you). Try naming your file 50-test.xml and seeing what happens. hads -- http://nicegear.co.nz New Zealands Open Source Hardware Supplier
Sir thank you very much. It really works. Faisal --- On Mon, 12/1/08, Hadley Rich <hads@nice.net.nz> wrote: From: Hadley Rich <hads@nice.net.nz> Subject: Re: [Freeswitch-users] How to specify Path for sound files To: freeswitch-users@lists.freeswitch.org Date: Monday, December 1, 2008, 11:03 PM On Tuesday 02 December 2008 19:44:21 Faisal Maqsoodi wrote:
Actually i copied the following text in a new text file and saved it as test1.xml file in /conf/dialplan/extensions, where 99999_enum.xml and 00_pizza_demo.xml exist, but it didnt worked. <extension name="wavs"> <condition field="destination_number" expression="^2009$"> <action application="playback"
data="/usr/local/freeswitch/sounds/en/us/callie/misc/8000/call_secured.wav"
/> </condition> </extension> Then i copied the same text and pasted in conf/dialplan/default.xml file below the line <context name="default"> and above the line <extension name="unloop"> and it worked successfully. Hope i ve explained what i wanted to.
Faisal
--- On Mon, 12/1/08, Hadley Rich <hads@nice.net.nz> wrote: From: Hadley Rich <hads@nice.net.nz> Subject: Re: [Freeswitch-users] How to specify Path for sound files To: freeswitch-users@lists.freeswitch.org Date: Monday, December 1, 2008, 9:54 PM
On Tuesday 02 December 2008 18:30:53 Faisal Maqsoodi wrote:
Yes its not working on my system. When i copy this in default.xml
dialplan,
it works but as a seperate extension in dialplan/extensions it
does'nt.
Faisal
It's a little hard to understand what you're saying but I'd hazard a guess that your extension is below the transfer to enum.
Are you creating a separate file in conf/dialplan/default/ ? What are you naming the file? Does it show up below the enum file in a directory listing?
As Anthony said if you set debug logging then you will see what is going on.
hads
People should really quote properly huh. As I suspected you're getting transferred to enum (which the debug logging would have told you). Try naming your file 50-test.xml and seeing what happens. hads -- http://nicegear.co.nz New Zealands Open Source Hardware Supplier _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Faisal Maqsoodi
-
Hadley Rich
-
Jan Kubr