Hi ishfaq,<div>if you want just loging some info into db you can do in dialplan without any AGI.</div><div>i am doing billing on the fly in dialplan and mysql for every single user without AGI and enhanced call capacity almost double.</div>
<div>let me know you need some examples.<br><br><div class="gmail_quote">On Wed, Mar 20, 2013 at 12:56 PM, Ishfaq Malik <span dir="ltr"><<a href="mailto:ish@pack-net.co.uk" target="_blank">ish@pack-net.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 2013-03-20 at 22:52 +1100, Andrew Yager wrote:<br>
> Hi Ishfaq,<br>
> On 20/03/2013, at 10:46 PM, Ishfaq Malik <<a href="mailto:ish@pack-net.co.uk">ish@pack-net.co.uk</a>> wrote:<br>
><br>
> > On Wed, 2013-03-20 at 22:32 +1100, Andrew Yager wrote:<br>
> ><br>
> > Hi Andrew<br>
> ><br>
> > Thanks for the advice, I will look into it (I'm using php)<br>
> ><br>
> > The script executes successfully over 99% of the time, it is run very<br>
> > very frequently. I'm trying to track down why the 1% failures are<br>
> > happening which is always a bit trickier than tracking down why a script<br>
> > always fails!<br>
> ><br>
><br>
> In these cases it's always (very) good to think about attaching standard debugging tools like strace to the asterisk process or your AGI to see what's going on.<br>
><br>
> The use of good debug logging (make sure you output information to a file on the file system) to help you keep track of what your script is doing will also be very useful, and a lot less headachy than attaching strafe to a php or asterisk process.<br>
><br>
> Thanks,<br>
> Andrew<br>
<br>
Hi Andrew<br>
<br>
I have an even simpler fix for this particular script. This one isn't<br>
really a true AGI script, all it's doing is taking the arguments<br>
presented to it and logging them in a db table.<br>
<br>
I'm going to try the system command instead, should have done that in<br>
the first place but the AGI command was just my 'goto place'...<br>
<br>
Thanks for all the advice though<br>
<br>
--<br>
Ishfaq Malik <<a href="mailto:ish@pack-net.co.uk">ish@pack-net.co.uk</a>><br>
Department: VOIP Support<br>
Company: Packnet Limited<br>
t: <a href="tel:%2B44%20%280%29845%20004%204994" value="+448450044994">+44 (0)845 004 4994</a><br>
f: <a href="tel:%2B44%20%280%29161%20660%209825" value="+441616609825">+44 (0)161 660 9825</a><br>
e: <a href="mailto:ish@pack-net.co.uk">ish@pack-net.co.uk</a><br>
w: <a href="http://www.pack-net.co.uk" target="_blank">http://www.pack-net.co.uk</a><br>
<br>
Registered Address: PACKNET LIMITED, 2A ENTERPRISE HOUSE, LLOYD STREET<br>
NORTH, MANCHESTER<br>
SCIENCE PARK, MANCHESTER, M156SE<br>
COMPANY REG NO. 04920552<br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>