Hi Steve ,<br><br>Thanks for the info . I will gothrough the resources and do the required testing.<br><br><br>Regrads<br>Upendra.<br><br><div class="gmail_quote">On Sat, Sep 8, 2012 at 10:58 PM, Steve Edwards <span dir="ltr"><<a href="mailto:asterisk.org@sedwards.com" target="_blank">asterisk.org@sedwards.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sat, 8 Sep 2012, upendra wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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???<br>
</blockquote>
<br></div>
A command similar to:<br>
<br>
sox\<br>
"${INPUT}"\<br>
--bits 16\<br>
--channels 1\<br>
--encoding signed-integer\<br>
--rate 8k\<br>
"${OUTPUT}"<br>
<br>
will convert the file to a format Asterisk will be happy with.<br>
<br>
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.<br>
<br>
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.<br>
<br>
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:<br>
<br>
playback(upendra/my-first-<u></u>wave-file)<br>
playback(/var/lib/asterisk/<u></u>sounds/upendra/my-first-wave-<u></u>file)<br>
<br>
<a href="http://www.voip-info.org" target="_blank">www.voip-info.org</a> is an excellent (if somewhat dated) resource for Asterisk questions. I'm sure <a href="http://asterisk.org" target="_blank">asterisk.org</a> and ATFOT.pdf are also excellent resources. I started with <a href="http://voip-info.org" target="_blank">voip-info.org</a>, so it's my 'go to' resource.<br>
<br>
-- <br>
Thanks in advance,<br>
------------------------------<u></u>------------------------------<u></u>-------------<br>
Steve Edwards <a href="mailto:sedwards@sedwards.com" target="_blank">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>
Newline Fax: +1-760-731-3000<br>
<br>
--<br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</blockquote></div><br>