<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Asterisk</title>
	<atom:link href="http://www.simionovich.com/nir-on-asterisk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simionovich.com</link>
	<description>The rants and raves of a technogeek</description>
	<lastBuildDate>Mon, 09 Aug 2010 20:57:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: rajibdk</title>
		<link>http://www.simionovich.com/nir-on-asterisk/comment-page-1/#comment-89</link>
		<dc:creator>rajibdk</dc:creator>
		<pubDate>Wed, 18 Feb 2009 18:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.simionovich.com/?page_id=85#comment-89</guid>
		<description>Hi Sir,
thanks for your promptly response. I am a newbie to asterisk. I have a intel dual core pc with 1 GB ram. I have installed Asterisk 1.6.0.5 and configured with Zoiper Soft phone. I want to connect my PSTN line to it and some other phones to the extensions so, what hardware I need to attach PSTN line to my asterisk server. Please let me know.

Thanks and Regards
Rajib Deka</description>
		<content:encoded><![CDATA[<p>Hi Sir,<br />
thanks for your promptly response. I am a newbie to asterisk. I have a intel dual core pc with 1 GB ram. I have installed Asterisk 1.6.0.5 and configured with Zoiper Soft phone. I want to connect my PSTN line to it and some other phones to the extensions so, what hardware I need to attach PSTN line to my asterisk server. Please let me know.</p>
<p>Thanks and Regards<br />
Rajib Deka</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.simionovich.com/nir-on-asterisk/comment-page-1/#comment-88</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 18 Feb 2009 11:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.simionovich.com/?page_id=85#comment-88</guid>
		<description>Hi Rajib,

  Well, if you copy pasted your AGI script as is, you have a small mistake with your ANSWER directive.

1. #!/usr/bin/php -q
2. answer();
10.
11. $agi-&gt;stream_file(”demo-congrats”,”#”);
12. do
13. {
14. $agi-&gt;stream_file(”enter-some-digits”,”#”);
15. $result = $agi-&gt;get_data(’beep’, 3000, 20);
$keys = $result[&#039;result&#039;];
16.
17. $agi-&gt;stream_file(”you-entered”,”#”);
18. $agi-&gt;say_digits($keys);
19. } while($keys != ‘111′);
20. $agi-&gt;hangup();
21. ?&gt;

In addition, it would appear that you didn&#039;t even construct the AGI object correctly. If you refer to page 105 of my book, you would notice that lines 3 through 7 are missing from your script. 

Try also to increase your console debug level via the /etc/asterisk/logger.conf file, that may shed some more information in regards to what breaks your script. 

Cheers,
Nir</description>
		<content:encoded><![CDATA[<p>Hi Rajib,</p>
<p>  Well, if you copy pasted your AGI script as is, you have a small mistake with your ANSWER directive.</p>
<p>1. #!/usr/bin/php -q<br />
2. answer();<br />
10.<br />
11. $agi->stream_file(”demo-congrats”,”#”);<br />
12. do<br />
13. {<br />
14. $agi->stream_file(”enter-some-digits”,”#”);<br />
15. $result = $agi->get_data(’beep’, 3000, 20);<br />
$keys = $result['result'];<br />
16.<br />
17. $agi->stream_file(”you-entered”,”#”);<br />
18. $agi->say_digits($keys);<br />
19. } while($keys != ‘111′);<br />
20. $agi->hangup();<br />
21. ?></p>
<p>In addition, it would appear that you didn&#8217;t even construct the AGI object correctly. If you refer to page 105 of my book, you would notice that lines 3 through 7 are missing from your script. </p>
<p>Try also to increase your console debug level via the /etc/asterisk/logger.conf file, that may shed some more information in regards to what breaks your script. </p>
<p>Cheers,<br />
Nir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajibdk</title>
		<link>http://www.simionovich.com/nir-on-asterisk/comment-page-1/#comment-87</link>
		<dc:creator>rajibdk</dc:creator>
		<pubDate>Wed, 18 Feb 2009 10:24:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.simionovich.com/?page_id=85#comment-87</guid>
		<description>Hello Sir,

    I have a problem with the following code (took from your book). It
doesnot make a beep sound and takes ainput. I am using Zoiper soft
phone to test it with an IAX2 account.
   $result = agi-&gt;get_data(&quot;beep&quot;, 3000, 20);
   say_digits() also not working.

My code looks like...

 1. #!/usr/bin/php -q
 2. answer();
10.
11.    $agi-&gt;stream_file(&quot;demo-congrats&quot;,&quot;#&quot;);
12.    do
13.    {
14.               $agi-&gt;stream_file(&quot;enter-some-digits&quot;,&quot;#&quot;);
15.               $result = $agi-&gt;get_data(&#039;beep&#039;, 3000, 20);
                  $keys = $result[&#039;result&#039;];
16.
17.               $agi-&gt;stream_file(&quot;you-entered&quot;,&quot;#&quot;);
18.               $agi-&gt;say_digits($keys);
19.    } while($keys != &#039;111&#039;);
20.    $agi-&gt;hangup();
21. ?&gt;

asterisk out put....

 -- Accepting AUTHENTICATED call from 127.0.0.1:
       &gt; requested format = gsm,
       &gt; requested prefs = (),
       &gt; actual format = gsm,
       &gt; host prefs = (),
       &gt; priority = mine
    -- Executing [999@agitest:1] AGI(&quot;IAX2/rajib-14434&quot;, &quot;hello.php&quot;) in
new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hello.php
AGI Tx &gt;&gt; agi_request: hello.php
AGI Tx &gt;&gt; agi_channel: IAX2/rajib-14434
AGI Tx &gt;&gt; agi_language: en
AGI Tx &gt;&gt; agi_type: IAX2
AGI Tx &gt;&gt; agi_uniqueid: 1234947670.52
AGI Tx &gt;&gt; agi_version: 1.6.0.5
AGI Tx &gt;&gt; agi_callerid: unknown
AGI Tx &gt;&gt; agi_calleridname: rajib
AGI Tx &gt;&gt; agi_callingpres: 1
AGI Tx &gt;&gt; agi_callingani2: 0
AGI Tx &gt;&gt; agi_callington: 16
AGI Tx &gt;&gt; agi_callingtns: 0
AGI Tx &gt;&gt; agi_dnid: 999
AGI Tx &gt;&gt; agi_rdnis: unknown
AGI Tx &gt;&gt; agi_context: agitest
AGI Tx &gt;&gt; agi_extension: 999
AGI Tx &gt;&gt; agi_priority: 1
AGI Tx &gt;&gt; agi_enhanced: 0.0
AGI Tx &gt;&gt; agi_accountcode:
AGI Tx &gt;&gt; agi_threadid: -1217868912
AGI Tx &gt;&gt;
    -- AGI Script hello.php completed, returning 0
    -- Executing [999@agitest:2] Hangup(&quot;IAX2/rajib-14434&quot;, &quot;&quot;) in new stack
  == Spawn extension (agitest, 999, 2) exited non-zero on &#039;IAX2/rajib-14434&#039;
    -- Hungup &#039;IAX2/rajib-14434&#039;



server configuration.....

    Fedora core 8
    asterisk server 1.6.0.5
    phpagi-2.14

No other hardware is attached for PSTN line. I have tested the examples
with Zoiper.

Please help me out.

Thanks and Regards
Rajib Deka
rajib@excoflare.com</description>
		<content:encoded><![CDATA[<p>Hello Sir,</p>
<p>    I have a problem with the following code (took from your book). It<br />
doesnot make a beep sound and takes ainput. I am using Zoiper soft<br />
phone to test it with an IAX2 account.<br />
   $result = agi-&gt;get_data(&#8220;beep&#8221;, 3000, 20);<br />
   say_digits() also not working.</p>
<p>My code looks like&#8230;</p>
<p> 1. #!/usr/bin/php -q<br />
 2. answer();<br />
10.<br />
11.    $agi-&gt;stream_file(&#8220;demo-congrats&#8221;,&#8221;#&#8221;);<br />
12.    do<br />
13.    {<br />
14.               $agi-&gt;stream_file(&#8220;enter-some-digits&#8221;,&#8221;#&#8221;);<br />
15.               $result = $agi-&gt;get_data(&#8216;beep&#8217;, 3000, 20);<br />
                  $keys = $result['result'];<br />
16.<br />
17.               $agi-&gt;stream_file(&#8220;you-entered&#8221;,&#8221;#&#8221;);<br />
18.               $agi-&gt;say_digits($keys);<br />
19.    } while($keys != &#8217;111&#8242;);<br />
20.    $agi-&gt;hangup();<br />
21. ?&gt;</p>
<p>asterisk out put&#8230;.</p>
<p> &#8212; Accepting AUTHENTICATED call from 127.0.0.1:<br />
       &gt; requested format = gsm,<br />
       &gt; requested prefs = (),<br />
       &gt; actual format = gsm,<br />
       &gt; host prefs = (),<br />
       &gt; priority = mine<br />
    &#8212; Executing [999@agitest:1] AGI(&#8220;IAX2/rajib-14434&#8243;, &#8220;hello.php&#8221;) in<br />
new stack<br />
    &#8212; Launched AGI Script /var/lib/asterisk/agi-bin/hello.php<br />
AGI Tx &gt;&gt; agi_request: hello.php<br />
AGI Tx &gt;&gt; agi_channel: IAX2/rajib-14434<br />
AGI Tx &gt;&gt; agi_language: en<br />
AGI Tx &gt;&gt; agi_type: IAX2<br />
AGI Tx &gt;&gt; agi_uniqueid: 1234947670.52<br />
AGI Tx &gt;&gt; agi_version: 1.6.0.5<br />
AGI Tx &gt;&gt; agi_callerid: unknown<br />
AGI Tx &gt;&gt; agi_calleridname: rajib<br />
AGI Tx &gt;&gt; agi_callingpres: 1<br />
AGI Tx &gt;&gt; agi_callingani2: 0<br />
AGI Tx &gt;&gt; agi_callington: 16<br />
AGI Tx &gt;&gt; agi_callingtns: 0<br />
AGI Tx &gt;&gt; agi_dnid: 999<br />
AGI Tx &gt;&gt; agi_rdnis: unknown<br />
AGI Tx &gt;&gt; agi_context: agitest<br />
AGI Tx &gt;&gt; agi_extension: 999<br />
AGI Tx &gt;&gt; agi_priority: 1<br />
AGI Tx &gt;&gt; agi_enhanced: 0.0<br />
AGI Tx &gt;&gt; agi_accountcode:<br />
AGI Tx &gt;&gt; agi_threadid: -1217868912<br />
AGI Tx &gt;&gt;<br />
    &#8212; AGI Script hello.php completed, returning 0<br />
    &#8212; Executing [999@agitest:2] Hangup(&#8220;IAX2/rajib-14434&#8243;, &#8220;&#8221;) in new stack<br />
  == Spawn extension (agitest, 999, 2) exited non-zero on &#8216;IAX2/rajib-14434&#8242;<br />
    &#8212; Hungup &#8216;IAX2/rajib-14434&#8242;</p>
<p>server configuration&#8230;..</p>
<p>    Fedora core 8<br />
    asterisk server 1.6.0.5<br />
    phpagi-2.14</p>
<p>No other hardware is attached for PSTN line. I have tested the examples<br />
with Zoiper.</p>
<p>Please help me out.</p>
<p>Thanks and Regards<br />
Rajib Deka<br />
<a href="mailto:rajib@excoflare.com">rajib@excoflare.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

