title: Is there an execute api of read in Freeswitch?
body: <p>I have gone thru the Freeswitch API document and what I am looking for is a javascript API which is to replace the read action in my dialplan.
  If I do not use javascript, the code will be like below:</p>
  
  <pre><code>&lt;action application="read" data="4 4 /usr/share/freeswitch/sounds/en/us/callie/conference/8000/pin-number.wav conference_pin_input 10000 #" /&gt;
  </code></pre>
  
  <p>I have found other APIs, like </p>
  
  <pre><code>&lt;action application="hangup"&gt;
  </code></pre>
  
  <p>in javascript is session.hangup() and so on.</p>
  
  <p>Currently I have gone thru the two documents which are <a href="https://freeswitch.org/confluence/display/FREESWITCH/Session+Execute" rel="nofollow noreferrer">https://freeswitch.org/confluence/display/FREESWITCH/Session+Execute</a> and <a href="https://freeswitch.org/confluence/display/FREESWITCH/JavaScript+API+Reference" rel="nofollow noreferrer">https://freeswitch.org/confluence/display/FREESWITCH/JavaScript+API+Reference</a>, but I think the document is quite poor, lots of things that we want need to read the source code. Can I please ask whether there is a javascript API to read the user input from dtmf?</p>