<div>Hi Brian,</div>
<div> </div>
<div>For Question 1, after executing the Hangup in the dialplan, the session does not close immediately, instead, it goes on playing the "number not available" standard greeting. How to tell fs to not to play the greeting again? Also, how to localize that greeting? I can't find the place to change it since it is a standard feature.<br>
</div>
<div>The other question is about TTS engine. I just want to know what is the best way to play media coming out of my own TTS engine?</div>
<div> </div>
<div>Thank you very much for all your help in answering my questions.</div>
<div> </div>
<div>Regards,</div>
<div>Pete</div>
<div> </div>
<div><br> </div>
<div class="gmail_quote">On Sun, Apr 20, 2008 at 10:25 PM, Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d"><br>On Apr 20, 2008, at 8:54 AM, Pete Kay wrote:<br><br>> Hi,<br>><br>> I two a few questions about hangup and sounds:<br>><br>><br>> 1.<br>> In my dialplan, I have<br>><br>> <extension name="catchall"><br>
> <condition field="destination_number" expression="^(.*)$"><br>> <action application="set" data="default_language=zh"/><br>> <action application="phrase" data="call-back-later"/><br>
> <action application="hangup" data="SUCCESS"/><br>> </condition><br>> </extension><br>><br>> After it play the call-back-later marco, it then goes on to play the<br>
> "The extension you are dialing is unavailable..." even I have<br>> specified the HANGUP application. How come? How to remove that<br>> greeting?<br>><br>><br>> Also, when can i change the "The extension you are dialing is<br>
> unavailable..." greeting to a localized version?<br><br></div>What? You're not making any sense to me.. can you slow down and<br>clarify a bit more? In addition I do not recall "SUCCESS" being a<br>
hangup cause. Try "NORMAL_CLEARING"<br>
<div class="Ih2E3d"><br><br>><br>><br>><br>> 2. I am writing my application in javascript. Is there anyway to<br>> play sounds that are loaded from DB? Two ways I can think of are:<br>><br>> 1. Use session.streamfile: but I need to extract the wav file<br>
> from DB file and then stored it in the filesystem. Is it possible<br>> to do that in Javascript or I need to use something like PHP?<br><br></div>Why on earth do you want to store your wav files in the database?<br>
Thats so inefficient.<br>
<div class="Ih2E3d"><br>><br>> 2. Sound marco: in the sound marco, is there a way to specify the<br>> file to be extracted from DB?<br><br></div>Try xml_curl on the wiki.<br>
<div class="Ih2E3d"><br>><br>><br>> 3. Let's say i have an external TTS engine. How do I make a call<br>> to it in javascript? The TTS engine can take text-message as input<br>> and generate wav content as STDOUT. What would be the best way to<br>
> incorporate it into my application?<br><br></div>Right now you can't really accept any media on stdout and feed it to<br>the channel. (api command to execute system)<br>
<div class="Ih2E3d"><br>><br>><br>> 4. Is there anyway to display the post request within the console<br>> whenever the post is done?I tried curl_xml debug_on but it only<br>> gives me the received xml.<br>
<br></div>You could debug it on your server side that receives the post.<br><br>><br>><br>> _______________________________________________<br>> Freeswitch-users mailing list<br>> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br>Brian West<br><a href="mailto:sip%3Abrian@freeswitch.org">sip:brian@freeswitch.org</a><br><br><br><br><br>_______________________________________________<br>
Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>