Hi Enrico<br>thanks I do what u said but meet this problem:<br>[May 11 11:08:49] WARNING[4545]: file.c:650 ast_openstream_full: File fail.wav does not exist in any format<br>[May 11 11:08:49] WARNING[4545]: file.c:953 ast_streamfile: Unable to open fail.wav (format 0x2 (gsm)): No such file or directory<br>
[May 11 11:08:49] WARNING[4545]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/IMSI460020656177633-00000000 for fail.wav<br><br>fail.wav is the sound which I want to playback, from the message this file can not be found, <br>
I put it under /var/lib/asterisk/sounds/ <br><br><div class="gmail_quote">On Mon, May 9, 2011 at 9:37 PM, Enrico Cicconi <span dir="ltr"><<a href="mailto:enrico.cicconi@rdmnet.it">enrico.cicconi@rdmnet.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff">
Hi,<br>
have you tried to manage all with dialplane ? <br>
<br>
just an example: <br>
<br>
[incoming]<br>
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="color: rgb(51, 51, 51); font-family: 'Lucida Grande',Helvetica,Verdana,sans-serif; font-size: 12px; line-height: 20px;"><b style="margin: 0px; padding: 0px; border-width: 0px; outline-width: 0px; font-size: 12px; background-color: transparent;"></b></span></span>exten
=> s,1,Dial (SIP/your_called_party,20) <br>
exten => s,n, Playback(music_message)<br>
.....<br>
<br>
<br>
<br>
In the first step the call is redirect to the configured called
party and if without answer (busy, not logged, not answered) ...<br>
... in the second step a music is played.<br>
<br>
You can also do other kind of job instead of 'playback' if you need.<br>
<br>
Hoping to have helped you, have a nice day<br>
<br>
Enrico<br>
<a href="http://www.rdmnet.it" target="_blank">www.rdmnet.it</a><br>
<a href="http://www.rdmnet.it/asterisk/104-asterisk-in-pillole-impostare-il-dialplan.html" target="_blank">http://www.rdmnet.it/asterisk/104-asterisk-in-pillole-impostare-il-dialplan.html</a><br>
<br>
<br>
<br>
Il 09/05/2011 09:41, John Wu ha scritto:
<blockquote type="cite"><div><div></div><div class="h5">Hi all,<br>
I need to support this feature. When caller dial if the dial fail
or no answer from the<br>
called number then play a music. So how to achieve that?<br>
<br>
Thanks!<br>
</div></div><pre><fieldset></fieldset>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><div class="im">
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div></pre>
</blockquote>
<br>
</div>
</blockquote></div><br>