I am able to get this script to dial, but I am unable to talk or hear anything. The script asks for the number to call and the the caller id to display (if user is not at their normal extension). Once submitted, the external extension receives a call, once answered the call is then placed to the dentition number. 
<br><br>The script works as the call is place, but I cannot hear or say anything. Any one that is able to get this going I would be will to give $20 to (via paypal)<br><br><br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;call&lt;/title&gt;
<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;?<br><br><br>#------------------------------------------------------------------------------------------<br>#edit the below variable values to reflect your system/information<br>#------------------------------------------------------------------------------------------
<br><br>#specify the name/ip address of your asterisk box<br>#if your are hosting this page on your asterisk box, then you can use<br>#127.0.0.1 as the host IP.&nbsp; Otherwise, you will need to edit the following<br>#line in 
manager.conf, under the Admin user section:<br>#permit=<a href="http://127.0.0.1/255.255.255.0">127.0.0.1/255.255.255.0</a><br>#change to:<br>#permit=<a href="http://127.0.0.1/255.255.255.0,xxx.xxx.xxx.xxx">127.0.0.1/255.255.255.0,xxx.xxx.xxx.xxx
</a> ;(the ip address of the server this page is running on)<br>$strHost = &quot;<a href="http://127.0.0.1">127.0.0.1</a>&quot;;<br><br>#specify the username you want to login with (these users are defined in /etc/asterisk/manager.conf)
<br>#this user is the default AAH AMP user; you shouldn&#39;t need to change, if you&#39;re using AAH.<br>$strUser = &quot;admin&quot;;<br><br>#specify the password for the above user<br>$strSecret = &quot;amp111&quot;;<br>
<br>#specify the channel (extension) you want to receive the call requests with<br>#e.g. SIP/XXX, IAX2/XXXX, ZAP/XXXX, etc<br>$strChannel = &quot;Local/15555555555@outrt-001-telasip&quot;;<br><br>#specify the context to make the outgoing call from.&nbsp; By default, AAH uses from-internal
<br>#Using from-internal will make you outgoing dialing rules apply<br>$strContext = &quot;from-internal&quot;;<br><br>#specify the amount of time you want to try calling the specified channel before hangin up<br>$strWaitTime = &quot;30&quot;;
<br><br>#specify the priority you wish to place on making this call<br>$strPriority = &quot;1&quot;;<br><br>#specify the maximum amount of retries<br>$strMaxRetry = &quot;2&quot;;<br><br>#--------------------------------------------------------------------------------------------
<br>#Shouldn&#39;t need to edit anything below this point to make this script work<br>#--------------------------------------------------------------------------------------------<br>#get the phone number from the posted form
<br>$strExten = $_POST[&#39;txtphonenumber&#39;];<br><br>#specify the caller id for the call<br>$strCallerId = $_POST[&#39;txtcid&#39;];<br><br>$length = strlen($strExten);<br><br>if ($length == 11 &amp;&amp; is_numeric($strExten))
<br>{<br>$oSocket = fsockopen($strHost, 5038, $errnum, $errdesc) or die(&quot;Connection to host failed&quot;);<br>fputs($oSocket, &quot;Action: login\r\n&quot;);<br>fputs($oSocket, &quot;Events: off\r\n&quot;);<br>fputs($oSocket, &quot;Username: $strUser\r\n&quot;);
<br>fputs($oSocket, &quot;Secret: $strSecret\r\n\r\n&quot;);<br>fputs($oSocket, &quot;Action: originate\r\n&quot;);<br>fputs($oSocket, &quot;Channel: $strChannel\r\n&quot;);<br>fputs($oSocket, &quot;WaitTime: $strWaitTime\r\n&quot;);
<br>fputs($oSocket, &quot;CallerId: $strCallerId\r\n&quot;);<br>fputs($oSocket, &quot;Exten: $strExten\r\n&quot;);<br>fputs($oSocket, &quot;Context: $strContext\r\n&quot;);<br>fputs($oSocket, &quot;Priority: $strPriority\r\n\r\n&quot;);
<br>fputs($oSocket, &quot;Action: Logoff\r\n\r\n&quot;);<br>fclose($oSocket);<br>?&gt;<br>&lt;p&gt;<br>&lt;table width=&quot;300&quot; border=&quot;1&quot; bordercolor=&quot;#630000&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&gt;
<br>&nbsp;&nbsp;&nbsp; &lt;tr&gt;&lt;td&gt;<br>&nbsp;&nbsp;&nbsp; &lt;font size=&quot;2&quot; face=&quot;verdana,georgia&quot; color=&quot;#630000&quot;&gt;We are currently trying to call you.&nbsp; Please be patient, and wait for<br>&nbsp;&nbsp;&nbsp; your phone to ring!&lt;br&gt;If your phone does not ring after 2 minutes, we apologize, but must either be out, or
<br>already on the<br>&nbsp;&nbsp;&nbsp; phone.&lt;br&gt;&lt;a href=&quot;&lt;? echo $_SERVER[&#39;PHP_SELF&#39;] ?&gt;&quot;&gt;Try Again&lt;/a&gt;&lt;/font&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/td&gt;&lt;/tr&gt;<br>&lt;/table&gt;<br>&lt;/p&gt;<br>&lt;?<br>
}<br>else<br>{<br>?&gt;<br><br><br>&lt;div align=&quot;center&quot;&gt;<br>&nbsp; &lt;table width=&quot;300&quot; border=&quot;1&quot; bordercolor=&quot;#630000&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;form action=&quot;&lt;? echo $_SERVER[&#39;PHP_SELF&#39;] ?&gt;&quot; method=&quot;post&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p align=&quot;left&quot;&gt;&lt;font size=&quot;2&quot; face=&quot;verdana,arial,georgia&quot; color=&quot;#630000&quot;&gt;Enter number to call (11 Digits):&lt;/font&gt;&lt;/p&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p align=&quot;center&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;text&quot; size=&quot;20&quot; maxlength=&quot;11&quot; name=&quot;txtphonenumber&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;verdana,arial,georgia&quot; color=&quot;#630000&quot;&gt;Enter your caller ID&lt;/font&gt;:&lt;/p&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p align=&quot;center&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;text&quot; size=&quot;20&quot; maxlength=&quot;11&quot; name=&quot;txtcid&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;input type=&quot;submit&quot; value=&quot;Make Call&quot;&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/p&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp; &lt;/form&gt;&nbsp;&nbsp;&nbsp; &nbsp; &lt;/td&gt;&lt;/tr&gt;<br>&nbsp; &lt;/table&gt;<br>&nbsp; &lt;/p&gt;<br>&nbsp; &lt;?<br>}<br>?&gt;<br>&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br><br>