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 "The extension you are dialing is unavailable..." even I have specified the HANGUP application. How come? How to remove that greeting? <br>
<br><br>Also, when can i change the "The extension you are dialing is unavailable..." greeting to a localized version?<br>
<br><br>2. I am writing my application in javascript. Is there anyway to 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 from DB file and then stored it in the filesystem. Is it possible to do that in Javascript or I need to use something like PHP?<br>
2. Sound marco: in the sound marco, is there a way to specify the file to be extracted from DB? <br> <br>3. Let's say i have an external TTS engine. How do I make a call to it in javascript? The TTS engine can take text-message as input and generate wav content as STDOUT. What would be the best way to incorporate it into my application?<br>
<br>4. Is there anyway to display the post request within the console whenever the post is done?I tried curl_xml debug_on but it only gives me the received xml.<br>
<br>