Thanks, I'll try. I'm using the trixbox and my 311 info was in extensions_custom.conf if that means anything.<br><br><div><span class="gmail_quote">On 12/27/06, <b class="gmail_sendername">John covici</b> <<a href="mailto:covici@ccs.covici.com">
covici@ccs.covici.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Don't know if this will do it (see your full logs for details), but
<br>the timeout lines in your 311 are at least depricated if removed --<br>use the set statement and functions like this<br>exten => s,n,Set(TIMEOUT(digit)=5)<br><br>Hope this helps.<br><br>on Wednesday 12/27/2006 blackwater dev(
<a href="mailto:blackwaterdev@gmail.com">blackwaterdev@gmail.com</a>) wrote<br> > Not sure if this has anything to do with it but running the input.php script<br> > directly from the command line gives this warning:
<br> ><br> > PHP Warning: Unknown(): Unable to load dynamic library<br> > '/usr/lib/php4/imap.so' - libc-client.so.0: cannot open shared object file:<br> > No such file or directory in Unknown on line 0
<br> ><br> > Thanks.<br> ><br> > On 12/27/06, blackwater dev <<a href="mailto:blackwaterdev@gmail.com">blackwaterdev@gmail.com</a>> wrote:<br> > ><br> > > I have this code which was taken from the phpagi project page along with
<br> > > the following in extensions_conf and the output from the asterisk CLI. When<br> > > I call the 311 extension, I does nothing then hangs up. What am I doing<br> > > wrong??<br> > ><br> > > ----php code------------
<br> > ><br> > > #!/usr/local/bin/php -q<br> > > <?php<br> > > set_time_limit(30);<br> > > require('phpagi.php');<br> > ><br> > > $agi = new AGI();<br> > > $agi->answer();
<br> > > $cid = $agi->parse_callerid();<br> > > $agi->text2wav("Hello, {$cid['name']}. Let's enter some text.");<br> > > $text = $agi->text_input('UPPERCASE');
<br> > > $agi->text2wav("You entered $text");<br> > > $agi->text2wav('Goodbye');<br> > > $agi->hangup();<br> > > ?><br> > ><br> > > ------extensions_custom.php------------
<br> > > exten => 311,1,Answer<br> > > exten => 311,2 Wait(1)<br> > > exten => 311,3,DigitTimeout(7)<br> > > exten => 311,4,ResponseTimeout(10)<br> > > exten => 311,5,AGI( input.php
)<br> > ><br> > > ------CLI output ----------------------<br> > > -- Executing Answer("SIP/200-09b20488", "") in new stack<br> > > == Spawn extension (from-internal, 311, 2) exited non-zero on
<br> > > 'SIP/200-09b20488'<br> > > -- Executing Macro("SIP/200-09b20488", "hangupcall") in new stack<br> > > -- Executing ResetCDR("SIP/200-09b20488", "w") in new stack
<br> > > -- Executing NoCDR("SIP/200-09b20488", "") in new stack<br> > > -- Executing Wait("SIP/200-09b20488", "5") in new stack<br> > > -- Executing Hangup("SIP/200-09b20488", "") in new stack
<br> > > == Spawn extension (macro-hangupcall, s, 4) exited non-zero on<br> > > 'SIP/200-09b20488' in macro 'hangupcall'<br> > > == Spawn extension (macro-hangupcall, s, 4) exited non-zero on
<br> > > 'SIP/200-09b20488'<br> > Not sure if this has anything to do with it but running the input.php script directly from the command line gives this warning:<br><br>PHP Warning:&nbsp; Unknown(): Unable to load dynamic library &#39;/usr/lib/php4/imap.so&#39; -
<br> > libc-client.so.0: cannot open shared object file: No such file or directory in Unknown on line 0<br><br>Thanks.<br><br><div><span class="gmail_quote">On 12/27/06, <b class="gmail_sendername">blackwater dev</b> &lt;<a href="mailto:
<a href="mailto:blackwaterdev@gmail.com">blackwaterdev@gmail.com</a>"><br> > <a href="mailto:blackwaterdev@gmail.com">blackwaterdev@gmail.com</a></a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt
0.8ex; padding-left: 1ex;">I have this code which was taken from the phpagi project page along with the following in extensions_conf and the output from the asterisk CLI.&nbsp; When I call the 311 extension, I does nothing then hangs up.&nbsp; What am I doing wrong??
<br> > <br><br>----php code------------<br><br>#!/usr/local/bin/php -q<br>&lt;?php<br>&nbsp; set_time_limit(30);<br>&nbsp; require(&#39;phpagi.php&#39;);<br><br>&nbsp; $agi = new AGI();<br>&nbsp; $agi-&gt;answer();<br>&nbsp; $cid = $agi-&gt;parse_callerid();
<br> > <br>&nbsp; $agi-&gt;text2wav(&quot;Hello, {$cid[&#39;name&#39;]}.&nbsp; Let&#39;s enter some text.&quot;);<br>&nbsp; $text = $agi-&gt;text_input(&#39;UPPERCASE&#39;);<br>&nbsp; $agi-&gt;text2wav(&quot;You entered $text&quot;);<br>&nbsp; $agi-&gt;text2wav(&#39;Goodbye&#39;);
<br> > <br>&nbsp; $agi-&gt;hangup();<br>?&gt;<br><br>------extensions_custom.php------------<br>exten =&gt; 311,1,Answer<br>exten =&gt; 311,2 Wait(1)<br>exten =&gt; 311,3,DigitTimeout(7)<br>exten =&gt; 311,4,ResponseTimeout(10)<br>exten =&gt; 311,5,AGI(
<br> > input.php)<br><br>------CLI output ----------------------<br>&nbsp;-- Executing Answer(&quot;SIP/200-09b20488&quot;, &quot;&quot;) in new stack<br>&nbsp; == Spawn extension (from-internal, 311, 2) exited non-zero on &#39;SIP/200-09b20488&#39;
<br> > <br>&nbsp;&nbsp;&nbsp; -- Executing Macro(&quot;SIP/200-09b20488&quot;, &quot;hangupcall&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing ResetCDR(&quot;SIP/200-09b20488&quot;, &quot;w&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing NoCDR(&quot;SIP/200-09b20488&quot;, &quot;&quot;) in new stack
<br> > <br>&nbsp;&nbsp;&nbsp; -- Executing Wait(&quot;SIP/200-09b20488&quot;, &quot;5&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing Hangup(&quot;SIP/200-09b20488&quot;, &quot;&quot;) in new stack<br>&nbsp; == Spawn extension (macro-hangupcall, s, 4) exited non-zero on &#39;SIP/200-09b20488&#39; in macro &#39;hangupcall&#39;
<br> > <br>&nbsp; == Spawn extension (macro-hangupcall, s, 4) exited non-zero on &#39;SIP/200-09b20488&#39;<br> ><br> > </blockquote></div><br><br> > _______________________________________________
<br> > --Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br> ><br> > asterisk-users mailing list<br> > To UNSUBSCRIBE or update options visit:<br> > <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br>--<br>Your life is like a penny. You're going to lose it. The question is:<br>How do<br>you spend it?<br><br> John Covici<br> <a href="mailto:covici@ccs.covici.com">
covici@ccs.covici.com</a><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:
<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>