Re: [asterisk-users] Problems with AGI and existing channel

2012-10-18 Thread A J Stiles
On Thursday 18 October 2012, Magnus Löfqvist wrote:
 We have some problem when running a AGI script (build with PHP), existing
 channels (all of them) gets a hickup and then continues. We are using
 AGI to lookup incoming calls in directory.
 
 It is kinda annoying, and I don't understand how it can be related.

I think you forgot to attach the actual script.  Without that, we can't help 
you.

-- 
AJS

Answers come *after* questions.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Problems with AGI and existing channel

2012-10-18 Thread Christopher Harrington
On Thu, Oct 18, 2012 at 6:33 AM, Magnus Löfqvist m...@vmi.se wrote:

 Hi,

 ** **

 “Asterisk 1.8.10.0-1digium1~squeeze built by pbuilder @ nighthawk on a
 x86_64 running Linux on 2012-03-08 23:05:09 UTC”

 ** **

 We have some problem when running a AGI script (build with PHP), existing
 channels (all of them) gets a “hickup” and then continues.


You say all of your connected channels experience an audio glitch? Sounds
like PHP is briefly consuming all of your CPU or RAM and causing Asterisk
to fail to meet timing demands.

Whatever your PHP CLI interface is (mine is just `php` but yours may be
different), run

time php  /dev/null

The returned time should be very, very small. Mine was real0m0.018s.

-- 
-Chris Harrington
ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Problems with AGI and existing channel

2012-10-18 Thread Steve Edwards

On Thu, 18 Oct 2012, Magnus Löfqvist wrote:


I have tried with a empty script...
It stills generate problems with existing channels.

But if a try with a empty perl script, it dosent... seems to be 
something that php is doing when starting up.


Can you explain more precisely what you mean by 'hickup?'

If you truely mean an 'empty' file, then that's not a valid AGI.

Which AGI library are you using.

AGI is a 'per channel' kind of thing. If your AGI is affecting all active 
channels then that is kind of odd.


Any chance of a console log with verbose and debug cranked up while this 
is happening? If you enable AGI debugging that may also give a clue.


--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users