[asterisk-users] how to load our own .wav sound files in the dial plans for playback

upendra uppi.me at gmail.com
Sun Sep 9 23:33:04 CDT 2012


Hi Steve ,

Thanks for the info . I will gothrough the resources and do the required
testing.


Regrads
Upendra.

On Sat, Sep 8, 2012 at 10:58 PM, Steve Edwards <asterisk.org at sedwards.com>wrote:

> On Sat, 8 Sep 2012, upendra wrote:
>
>  i am trying to add my own sound file in the asterisk dial plan extension
>> for playback option , i dont no where to put the file and how to give the
>> path in extension file and all so is need that the sound file should be
>> convert in asterisk as .wav file???
>>
>
> A command similar to:
>
>         sox\
>                 "${INPUT}"\
>                 --bits 16\
>                 --channels 1\
>                 --encoding signed-integer\
>                 --rate 8k\
>                 "${OUTPUT}"
>
> will convert the file to a format Asterisk will be happy with.
>
> When you specify a file to be played, for example, using 'playback()', you
> specify the file's path. If you don't specify an absolute path, the path is
> relative to the directory set in asterisk.conf.
>
> One last 'oops' I still do is forgetting that Asterisk likes to choose the
> 'file type' (even if you only have .wav) so don't specify it.
>
> So, for example, if you had a file named 'my-first-wave-file.wav' in a
> sub-directory of Asterisk's 'sounds' directory named 'upendra' you could
> play the file with either:
>
>         playback(upendra/my-first-**wave-file)
>         playback(/var/lib/asterisk/**sounds/upendra/my-first-wave-**file)
>
> www.voip-info.org is an excellent (if somewhat dated) resource for
> Asterisk questions. I'm sure asterisk.org and ATFOT.pdf are also
> excellent resources. I started with voip-info.org, so it's my 'go to'
> resource.
>
> --
> Thanks in advance,
> ------------------------------**------------------------------**
> -------------
> Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
> Newline                                              Fax: +1-760-731-3000
>
> --
> ______________________________**______________________________**_________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/**mailman/listinfo/asterisk-**users<http://lists.digium.com/mailman/listinfo/asterisk-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120910/0336e61a/attachment.htm>


More information about the asterisk-users mailing list