Never mind its solved. It was receiving 4 length instead of 2. <br><br>class iCanSolveNasaProblemsLolController extends Zend_Controller_Action<br>{<br>  <br>  public function init()<br>  {<br>    $this-&gt;_helper-&gt;layout()-&gt;disableLayout();<br>
    $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender();<br>    //$this-&gt;getHelper(&#39;layout&#39;)-&gt;disableLayout();<br>    //$this-&gt;getHelper(&#39;ViewRenderer&#39;)-&gt;setNoRender();<br>    //Zend_Controller_Action_HelperBroker::removeHelper(&#39;Layout&#39;);<br>
    $a = &#39;OK&#39;;<br><br>    $this-&gt;getResponse()<br>
         -&gt;setHeader(&#39;Content-Type&#39;, &#39;application/text&#39;)<br>
         -&gt;setBody($a)<br>
         -&gt;sendResponse();<br>
    exit;<br>  }<br><br><br>}<br><br><br><div class="gmail_quote">On Wed, Oct 13, 2010 at 12:52 AM, Shamun toha md <span dir="ltr">&lt;<a href="mailto:shamun.toha@gmail.com">shamun.toha@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br><br><br>I am almost 2 week on the same script and same problem.  It gets OK, and then automatically hangup the call, instead of moving/transfer the call to somewhere else. <br>
<br>**In fedora 12, the same script same setup is working 100% accurate. Then i installed it to CentOS 5.5, there it doesnt work. What is the problem, please advise kindly.<br>
<br>Should work:<br>===========<br>Here you can see i am receiving &#39;OK&#39; via curl 2010-10-13 00:39:04.570826 [INFO] conference.js:45 OK<br>Normally it should now execute this:<br><br>function my_callback(string,arg)<br>

{<br>  console_log(&quot;info&quot;, string);<br><br>   session.sayPhrase(&quot;valid&quot;, menuselection, &quot;en&quot;);<br>   session.setVariable(&quot;myroom&quot;, menuselection);<br>   session.execute(&quot;conference&quot; , menuselection, &quot;en&quot;);<br>

<br><br><br>  return true;<br>}<br><br><br>Debug:<br>=======<br><br>2010-10-13 00:38:46.946636 [DEBUG] switch_ivr_play_say.c:244 Handle speak-text:[Enter your room number.] (en:en)<br>2010-10-13 00:38:46.946636 [DEBUG] switch_ivr_play_say.c:2160 OPEN TTS cepstral<br>

2010-10-13 00:38:46.946636 [DEBUG] switch_ivr_play_say.c:2169 Raw Codec Activated<br><br><br>2010-10-13 00:38:46.947636 [DEBUG] switch_ivr_play_say.c:1878 Speaking text: Enter your room number.<br>2010-10-13 00:38:58.046751 [DEBUG] switch_rtp.c:2902 RTP RECV DTMF 3:800<br>

2010-10-13 00:38:58.046751 [DEBUG] conference.js:126 digit: 3<br>2010-10-13 00:38:58.626757 [DEBUG] switch_ivr_play_say.c:2050 done speaking text<br>2010-10-13 00:38:58.726760 [DEBUG] conference.js:140 Prompt done=[DialByNumberMenu] Collected 1 digits [3]<br>

<br><br>2010-10-13 00:38:58.907732 [DEBUG] switch_rtp.c:2902 RTP RECV DTMF 2:800<br>2010-10-13 00:38:59.767758 [DEBUG] switch_rtp.c:2902 RTP RECV DTMF 3:800<br>2010-10-13 00:39:00.546774 [DEBUG] switch_rtp.c:2902 RTP RECV DTMF 2:800<br>

2010-10-13 00:39:01.986791 [DEBUG] switch_rtp.c:2902 RTP RECV DTMF 9:800<br>2010-10-13 00:39:02.727801 [DEBUG] switch_rtp.c:2902 RTP RECV DTMF 8:800<br>2010-10-13 00:39:03.626796 [DEBUG] switch_rtp.c:2902 RTP RECV DTMF 2:800<br>

2010-10-13 00:39:04.366833 [DEBUG] switch_rtp.c:2902 RTP RECV DTMF 1:800<br>2010-10-13 00:39:04.366833 [DEBUG] mod_spidermonkey_curl.c:182 Running: method: [POST] url: [<a href="http://portal.x86_64.com/conference/query" target="_blank">http://portal.x86_64.com/conference/query</a>] data: [room=32329821&amp;security=___whyyoudothis___] cred=[] cb: [yes]<br>

2010-10-13 00:39:04.570826 [INFO] conference.js:45 OK<br><br><br><br><br>2010-10-13 00:39:04.576826 [DEBUG] switch_ivr_play_say.c:244 Handle execute:[sleep(500)] (en:en)<br>EXECUTE sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> sleep(500)<br>

2010-10-13 00:39:05.206844 [DEBUG] switch_ivr_play_say.c:244 Handle speak-text:[Room number is invalid, Please try again.] (en:en)<br><br><br>2010-10-13 00:39:05.206844 [DEBUG] switch_ivr_play_say.c:2160 OPEN TTS cepstral<br>

2010-10-13 00:39:05.206844 [DEBUG] switch_ivr_play_say.c:2169 Raw Codec Activated<br>2010-10-13 00:39:05.207837 [DEBUG] switch_ivr_play_say.c:1878 Speaking text: Room number is invalid, Please try again.<br>2010-10-13 00:39:18.606958 [DEBUG] switch_ivr_play_say.c:2050 done speaking text<br>

2010-10-13 00:39:18.707961 [NOTICE] switch_core_state_machine.c:185 sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> has executed the last dialplan instruction, hanging up.<br>2010-10-13 00:39:18.707961 [DEBUG] switch_channel.c:2357 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) Callstate Change ACTIVE -&gt; HANGUP<br>

<br><br>2010-10-13 00:39:18.707961 [NOTICE] switch_core_state_machine.c:187 Hangup sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>2010-10-13 00:39:18.707961 [DEBUG] switch_channel.c:2373 Send signal sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> [KILL]<br>

2010-10-13 00:39:18.707961 [DEBUG] switch_core_session.c:1047 Send signal sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> [BREAK]<br>2010-10-13 00:39:18.707961 [DEBUG] switch_core_state_machine.c:348 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) State EXECUTE going to sleep<br>

2010-10-13 00:39:18.707961 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) Running State Change CS_HANGUP<br>2010-10-13 00:39:18.707961 [DEBUG] switch_core_state_machine.c:535 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) State HANGUP<br>

2010-10-13 00:39:18.707961 [DEBUG] mod_sofia.c:457 Channel sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> hanging up, cause: NORMAL_CLEARING<br>2010-10-13 00:39:18.723960 [DEBUG] mod_sofia.c:500 Sending BYE to sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a><br>

2010-10-13 00:39:18.723960 [DEBUG] switch_core_state_machine.c:46 sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> Standard HANGUP, cause: NORMAL_CLEARING<br>2010-10-13 00:39:18.723960 [DEBUG] switch_core_state_machine.c:535 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) State HANGUP going to sleep<br>

2010-10-13 00:39:18.724961 [DEBUG] switch_core_state_machine.c:333 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) State Change CS_HANGUP -&gt; CS_REPORTING<br>2010-10-13 00:39:18.724961 [DEBUG] switch_core_session.c:1047 Send signal sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> [BREAK]<br>

2010-10-13 00:39:18.724961 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) Running State Change CS_REPORTING<br>2010-10-13 00:39:18.724961 [DEBUG] switch_core_state_machine.c:595 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) State REPORTING<br>

2010-10-13 00:39:18.724961 [DEBUG] switch_core_state_machine.c:53 sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> Standard REPORTING, cause: NORMAL_CLEARING<br>2010-10-13 00:39:18.724961 [DEBUG] switch_core_state_machine.c:595 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) State REPORTING going to sleep<br>

2010-10-13 00:39:18.724961 [DEBUG] switch_core_state_machine.c:327 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) State Change CS_REPORTING -&gt; CS_DESTROY<br>2010-10-13 00:39:18.724961 [DEBUG] switch_core_session.c:1047 Send signal sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> [BREAK]<br>

2010-10-13 00:39:18.724961 [DEBUG] switch_core_session.c:1210 Session 10 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) Locked, Waiting on external entities<br>2010-10-13 00:39:18.724961 [NOTICE] switch_core_session.c:1228 Session 10 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) Ended<br>

2010-10-13 00:39:18.724961 [NOTICE] switch_core_session.c:1230 Close Channel sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> [CS_DESTROY]<br>2010-10-13 00:39:18.725963 [DEBUG] switch_core_state_machine.c:427 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) Callstate Change HANGUP -&gt; DOWN<br>

2010-10-13 00:39:18.725963 [DEBUG] switch_core_state_machine.c:430 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) Running State Change CS_DESTROY<br>2010-10-13 00:39:18.725963 [DEBUG] switch_core_state_machine.c:440 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) State DESTROY<br>

2010-10-13 00:39:18.725963 [DEBUG] mod_sofia.c:362 sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> SOFIA DESTROY<br>2010-10-13 00:39:18.725963 [DEBUG] switch_core_state_machine.c:60 sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a> Standard DESTROY<br>

2010-10-13 00:39:18.725963 [DEBUG] switch_core_state_machine.c:440 (sofia/internal/<a href="mailto:1002@3.x86_64.com" target="_blank">1002@3.x86_64.com</a>) State DESTROY going to sleep<br><br>
</blockquote></div><br>