[Freeswitch-users] Hangup and sound question

Pete Kay petedao at gmail.com
Sun Apr 20 06:54:11 PDT 2008


Hi,

I two a few questions about hangup and sounds:


1.
In my dialplan, I have

 <extension name="catchall">
      <condition field="destination_number" expression="^(.*)$">
           <action application="set" data="default_language=zh"/>
        <action application="phrase" data="call-back-later"/>
        <action application="hangup" data="SUCCESS"/>
      </condition>
    </extension>

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?


Also, when can i change the "The extension you are dialing is
unavailable..." greeting to a localized version?


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:

   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?
   2. Sound marco: in the sound marco, is there a way to specify the file to
be extracted from DB?

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?

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080420/e9278678/attachment-0002.html 


More information about the FreeSWITCH-users mailing list