title: JavaScript application is not working in Freeswitch
body: <p>I am learning FreeSWITCH applications. In this the application called 'javascript' which is used to execute our JavaScript.</p>
  
  <p>I have created the following JavaScript:</p>
  
  <pre><code>var languageCode = "en";
  var soundDir = "sound/";
  
      function playFile(fileName, callBack, callBackArgs)
      {
              session.streamFile(soundDir + languageCode + "/" + fileName, callBack, callBackArgs);
      }
  
      session.answer();
      playFile("HelloWorld.wav");
      exit()
  </code></pre>
  
  <p>Then I have run this script using jsrun API in fs_cli.
  but it has given the error as 'session.answer' is not a function.</p>