<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"><<a href="mailto:35633@heb.be" target="_blank">35633@heb.be</a>></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><include><br> <extension name="outbound-socket"><br> <condition field="${sip_to_user}" expression="(972550428)$"><br> <action application="set" data="ivr_path=/usr/local/freeswitch/scripts/ivrd-demo.php"/><br> <action application="socket" data="<a href="http://10.0.0.6:8021" target="_blank">10.0.0.6:8021</a> async full"/>--><br> </condition><br> </extension><br></include></div><div><br></div><div>And my php script is:</div><div><br></div><div><br></div><div><?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("php://stdin", "r");</div><div> // Connect<br> echo "connect\n\n";</div><div> // Answer<br> echo "sendmsg\n";<br> echo "call-command: execute\n";<br> echo "execute-app-name: answer\n\n";</div><div> // Play a prompt<br> echo "sendmsg\n";<br> echo "call-command: execute\n";<br> echo "execute-app-name: playback\n";<br> echo "execute-app-arg: \<br> /usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-welcome_to_freeswitch.wav\n\n \<br> ";<br> // Wait<br> sleep(5);</div><div> // Hangup<br> echo "sendmsg\n";<br> echo "call-command: hangup\n\n";</div><div> fclose($in);</div><div> ?></div><div> <br></div><div>When i dial the DID number, the call state is "call setup" for a while, and after i'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>