VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
faisalmaqsoodi at yaho... Guest
|
Posted: Mon Dec 01, 2008 1:12 am Post subject: [Freeswitch-users] How to specify Path for sound files |
|
|
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 |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Mon Dec 01, 2008 11:31 am Post subject: [Freeswitch-users] How to specify Path for sound files |
|
|
404 not found means the extension you are dialing is not found, not the sound file the extension is playing.
press f8 and try again and the debug log will help you figure it out.
On Mon, Dec 1, 2008 at 12:09 AM, Faisal Maqsoodi <faisalmaqsoodi@yahoo.com (faisalmaqsoodi@yahoo.com)> wrote:
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
jan.kubr at gmail.com Guest
|
Posted: Mon Dec 01, 2008 3:59 pm Post subject: [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
Quote: | 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 |
|
Back to top |
|
|
faisalmaqsoodi at yaho... Guest
|
Posted: Tue Dec 02, 2008 12:43 am Post subject: [Freeswitch-users] How to specify Path for sound files |
|
|
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:
Quote: | 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
Quote: | Hi Faisal,the path is either an absolute path or a path relative to thedirectory 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 listFreeswitch-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org |
|
|
|
Back to top |
|
|
hads at nice.net.nz Guest
|
Posted: Tue Dec 02, 2008 1:07 am Post subject: [Freeswitch-users] How to specify Path for sound files |
|
|
On Tuesday 02 December 2008 18:30:53 Faisal Maqsoodi wrote:
Quote: | 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 |
|
Back to top |
|
|
faisalmaqsoodi at yaho... Guest
|
Posted: Tue Dec 02, 2008 1:52 am Post subject: [Freeswitch-users] How to specify Path for sound files |
|
|
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.
Quote: | <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:
Quote: | 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
Quote: | On Tuesday 02 December 2008
18:30:53 Faisal Maqsoodi wrote:> Yes its not working on my system. When i copy this in default.xmldialplan,> it works but as a seperate extension in dialplan/extensions itdoes'nt.> FaisalIt's a little hard to understand what you're saying but I'd hazarda 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.nzVoIP, DVB and other Linux compatible hardware._______________________________________________Freeswitch-users mailing
listFreeswitch-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org |
|
|
|
Back to top |
|
|
hads at nice.net.nz Guest
|
Posted: Tue Dec 02, 2008 2:10 am Post subject: [Freeswitch-users] How to specify Path for sound files |
|
|
On Tuesday 02 December 2008 19:44:21 Faisal Maqsoodi wrote:
Quote: | 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:
Quote: | Yes its not working on my system. When i copy this in default.xml
|
dialplan,
Quote: | it works but as a seperate extension in dialplan/extensions it
|
does'nt.
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 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|