you can set up an instance of mod_local_stream to endlessly play back a file and many channels
can listen to it at the same time.
see ext 9999 in the default config.
Faisal,
Dennis makes a good point: you are mixing event socket syntax with
dialplan syntax. I recommend starting with the dialplan example on the
wiki. To get a single sound file to play over and over put it in a
directory by itself.
Also, there is an undocumented feature called ".loc files" that I am
researching. I believe this feature might give you more options. As
soon as I can test it and document it I will report back. If any
community members are using .loc files please let me know how they are
working for you.
Thanks,
MC
Sent from my iPhone
On Dec 6, 2008, at 8:13 AM, Dennis <odermann@googlemail.com> wrote:
> although i do everything with socket outbound and php and not with the
> xml-dialplans, i feel, that you are missing the basics.
>
> first you should find out how to make a basic dialplan and how fs is
> working. then you can start with playing soundfiles and then, how to
> do a looped playback and other nice built in features.
> there are lots of dialplan samples delivered with fs and the wiki will
> help you to start with the rest.
>
> dennis
>
> 2008/12/6 Faisal Maqsoodi <faisalmaqsoodi@yahoo.com>:
>> I need some more help. I used send msg this way. Is there anything
>> missing
>> bcoz its not working. Plz let me know what else should i do. When i
>> dial
>> 2003, file is not played.
>> <extension name="Music">
>> sendmsg 2003
>> call-command: execute
>> execute-app-name: playback
>> execute-app-arg: /usr/local/freeswitch/sounds/enter_plistnum.wav
>> loops: -1
>> </extension>
>>
>> --- On Sat, 12/6/08, Dennis <odermann@googlemail.com> wrote:
>>
>> From: Dennis <odermann@googlemail.com>
>> Subject: Re: [Freeswitch-users] Playing a file again and again
>> To: freeswitch-users@lists.freeswitch.orgi
>> Date: Saturday, December 6, 2008, 2:13 AM
>>
>> with sendmsg playback send: loops: -1
>>
>> 2008/12/6 Faisal Maqsoodi
>> <faisalmaqsoodi@yahoo.com>:
>>> Hi,
>>> Is there any built-in function, like playback, which plays a file
>> again
>>> and again unless interrupted. I want to use a simple function not
>>> FIFO.
>>>
>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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
_______________________________________________
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