<div dir="ltr">It sounds like the dialplan never makes it to your extension. Get a debug log of the call and put it on <a href="http://pastebin.freeswitch.org">pastebin.freeswitch.org</a>. We can probably help you figure it out from there.<div><br></div><div>-MSC</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 28, 2016 at 12:40 AM, Nduwayezu, Joselyne <span dir="ltr">&lt;<a href="mailto:35633@heb.be" target="_blank">35633@heb.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Hello,</div><div><br></div><div>I would like to invoke php script in the dial plan.</div><div>I defined the dialplan as follos:</div><div><br></div><div><br>&lt;include&gt;<br> &lt;extension name=&quot;outbound-socket&quot;&gt;<br>  &lt;condition field=&quot;${sip_to_user}&quot; expression=&quot;(972550428)$&quot;&gt;<br>   &lt;action application=&quot;set&quot; data=&quot;ivr_path=/usr/local/freeswitch/scripts/ivrd-demo.php&quot;/&gt;<br>   &lt;action application=&quot;socket&quot; data=&quot;<a href="http://10.0.0.6:8021" target="_blank">10.0.0.6:8021</a> async full&quot;/&gt;--&gt;<br>  &lt;/condition&gt;<br> &lt;/extension&gt;<br>&lt;/include&gt;</div><div><br></div><div>And my php script is:</div><div><br></div><div><br></div><div>&lt;?php<br>  // set a couple of things so we dont kill the system<br> ob_implicit_flush(true);<br> set_time_limit(30);</div><div> // Open stdin so we can read the data in<br> $in = fopen(&quot;php://stdin&quot;, &quot;r&quot;);</div><div> // Connect<br> echo &quot;connect\n\n&quot;;</div><div> // Answer<br> echo &quot;sendmsg\n&quot;;<br> echo &quot;call-command: execute\n&quot;;<br> echo &quot;execute-app-name: answer\n\n&quot;;</div><div> // Play a prompt<br> echo &quot;sendmsg\n&quot;;<br> echo &quot;call-command: execute\n&quot;;<br> echo &quot;execute-app-name: playback\n&quot;;<br> echo &quot;execute-app-arg: \<br> /usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-welcome_to_freeswitch.wav\n\n \<br> &quot;;<br> // Wait<br> sleep(5);</div><div> // Hangup<br> echo &quot;sendmsg\n&quot;;<br> echo &quot;call-command: hangup\n\n&quot;;</div><div> fclose($in);</div><div> ?&gt;</div><div>                                       <br></div><div>When i dial the DID number, the call state is &quot;call setup&quot; for a while, and after i&#39;m asked to leave a message because the number is busy or unreachable.</div><div><br></div><div>I tried different sockets in the dialplan (5060, 5080, 8040) with no results</div><div><br></div><div>Any adeas of what is happening?</div><div><br></div><div>Thanks<br><br><br clear="all"></div><div><div><div dir="ltr">NDUWAYEZU Joselyne<br></div></div></div>
</div>

<br>
Haute École de Bruxelles<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>