HI Trevor,<br><br>Thank you for your suggestion.<br>I configured to use what u told as following but not working still.<br><br>routes.pl<br>$dgw = 'SIP/5556';&nbsp;&nbsp; #A-Z carrier<br>$opt = 'L(60000:10000)';<br>$AGI-&gt;set_variable(routecall-destination, $dgw);<br>&nbsp;$AGI-&gt;set_variable(routecall-args, $opt);<br><br>Extnenitons.conf<br>[testwell]<br>exten =&gt; _x.,1,Set(TIMEOUT(absolute)=3660)<br>exten =&gt; _x.,2,AGI(routes.pl)<br>exten =&gt; _x.,3,Dial(${routecall-destination},${routecall-args})<br>exten =&gt; h,1,DeadAGI(stop.pl)<br><br><br>Warnning :<br><br>[Jan 12 14:34:22] WARNING[27323]: app_dial.c:863 dial_exec_full: Dial requires an argument (technology/number)<br>&nbsp; == Spawn extension (testwell, 9745424620, 9) exited non-zero on 'SIP/8098179675-b726f5e8'<br><br><br>Could you please find out where is the problem?<br><br><br><br><br><br><b><i>Abdul &lt;abdul_zu@yahoo.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid
 rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi All,<br><br>i have created one prepaid PERL AGI script to integrate asterisk users in our current Oracle Billing System. I am using $AGI-&gt;exec('Dial', $dialstr); in script after getting the MAX time out for the priticular call.<br><br>But when the channels increase on my asterisk more than 50-60 asterisk get crashed and i am suspecting the cause is of AGI Script. because when i check ps on server i found lot of process for routing.pl file which is the main to check balance and max credit time.<br><br>[root@hatifserver3 root]# ps -aux|grep asterisk<br>root&nbsp;&nbsp;&nbsp;&nbsp; 16419&nbsp; 0.0&nbsp; 0.0&nbsp; 5288 1072 pts/1&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 10:46&nbsp;&nbsp; 0:00 /bin/sh /usr/sbin/safe_asterisk<br>root&nbsp;&nbsp;&nbsp;&nbsp; 16421 32.5&nbsp; 0.4 39404 17604 pts/1&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 10:46&nbsp; 22:39 /usr/sbin/asterisk -f -vvvg -c<br>root&nbsp;&nbsp;&nbsp;&nbsp; 24537&nbsp;
 0.0&nbsp; 0.2 96392 10472 pts/1&nbsp;&nbsp;  S&nbsp;&nbsp;&nbsp; 11:29&nbsp;&nbsp; 0:00 /usr/local/bin/perl /var/lib/asterisk/agi-bin/routing.pl<br>root&nbsp;&nbsp;&nbsp;&nbsp; 26821&nbsp; 0.0&nbsp; 0.2 96392 10472 pts/1&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 11:41&nbsp;&nbsp; 0:00 /usr/local/bin/perl /var/lib/asterisk/agi-bin/routing.pl<br>root&nbsp;&nbsp;&nbsp;&nbsp; 27177&nbsp; 0.0&nbsp; 0.2 96384 10476 pts/1&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 11:43&nbsp;&nbsp; 0:00 /usr/local/bin/perl /var/lib/asterisk/agi-bin/routing.pl<br><br>it is more than this just i put only few for example. <br>I think the routing.pl file continue running till the call hangup.<br><br>My question is, Is there anyway to kill the routing.pl once $AGI-&gt;exec('Dial', $dialstr); will run and the call should be continue?<br><br><br><br><br><br><strong><font color="#0000bf" face="arial black">-------- <br>Regard,</font></strong><div>        </div><hr size="1">Be a better friend, newshound, and  know-it-all with
 Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20"> Try it now.</a></blockquote><br><BR><BR><STRONG><FONT face="arial black" color=#0000bf>-------- <BR>Regard,</FONT></STRONG><p>&#32;



      <hr size=1>Never miss a thing.  <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>