Hi Smadi. I have tested the script in my box and seems to be working
just fine. By the way, in any programming language, the way to get the
asterisk environment vars, and in general all the communication is
through STDIN, STDOUT and STDERR
try to give us more info so we can help you
best regards
Try print "EXEC ChanIsAvail IAX2/24\n";
Channel type is IAX2 not IAX
Cheers
2005/12/2, Cyrille Demaret <[EMAIL PROTECTED]>:
> Hi,
>
> I'm running the last CVS asterisk version (I was running an older version
> before with the same problem) and I've a problem with agi scripts. Commands
> results
écembre 2005 12:52
À : Asterisk Users Mailing List - Non-Commercial Discussion
Objet : Re: [Asterisk-Users] AGI Problem
Try print "EXEC ChanIsAvail IAX2/24\n";
Channel type is IAX2 not IAX
Cheers
2005/12/2, Cyrille Demaret <[EMAIL PROTECTED]>:
> Hi,
>
> I'm running the
agi are not correct.
>
> Regards,
>
> Cyrille
>
> -Message d'origine-
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] De la part de Giovanni
> Miano
> Envoyé: vendredi 2 décembre 2005 12:52
> À: Asterisk Users Mailing List - Non-Commercial Discussion
> Ob
Hi!
> The first result is ok (-1) but not the second and the third.
> Why do I get different results for the same command?
Hm... u might want to try this:
# Check
print "EXEC ChanIsAvail IAX/24\n";
$result = ;
print "VERBOSE \"$result\" 0\n";
$result = ;
# Check
print "EXEC ChanIsAvail IAX/24
i 2 décembre 2005 16:18
À : Asterisk Users Mailing List - Non-Commercial Discussion
Objet : Re: [Asterisk-Users] AGI Problem
I thing u cant use ChanIsAvail with exec command
... as use EXEC DIAL(SIP/40) .. it isnt work
2005/12/2, Cyrille Demaret <[EMAIL PROTECTED]>:
> Hi,
>
> I
; Cyrille
>> -Message d'origine-> De: [EMAIL PROTECTED]> [mailto:
[EMAIL PROTECTED]] De la part de Giovanni> Miano> Envoyé: vendredi 2 décembre 2005 12:52> À: Asterisk Users Mailing List - Non-Commercial Discussion> Objet: Re: [Asterisk-Users] AGI Problem
>
Quoting "René Enskat [Teamware GmbH]" <[EMAIL PROTECTED]>:
In my experience most AGI problems I had came from other info sent to the
terminal via verbose commands and other stdout output. There is some info on
the voip-info wiki about using AGI.
I use the phpagi 2 library, and carefully setting u
-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mehmet
Avcioglu
Sent: Friday, September 23, 2011 12:02 PM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] AGI Problem
Hello,
I have an AGI script t
On Sep 23, 2011, at 8:07 PM, Danny Nicholas wrote:
> Just a WAG - 4 is the error level returned by your php script, where it
> normally returns 0.
Yes would thing so. But at no place in my script I intentionally exit with 4. I
believe 4 is SIGILL (Illegal Instruction) so my script might be seg f
On 09/23/2011 12:16 PM, Mehmet Avcioglu wrote:
On Sep 23, 2011, at 8:07 PM, Danny Nicholas wrote:
Just a WAG - 4 is the error level returned by your php script, where it
normally returns 0.
Yes would thing so. But at no place in my script I intentionally exit with 4. I
believe 4 is SIGILL (I
On Sep 23, 2011, at 8:01 PM, Mehmet Avcioglu wrote:
> I have an AGI script that occasionally disappears without completing its
> action and asterisk logs the following.
>
> AGI Script script.php completed, returning 4
> Spawn extension (context, 0123456, 2) exited non-zero on
> 'Local/0123456
How much time your AGI is taking? Check if it is completing its task and not
killed by asterisk. I guess we've 6~7 seconds before asterisk kills all call
channel and related tasks.
On Sat, Sep 24, 2011 at 3:21 PM, Mehmet Avcioglu wrote:
>
> On Sep 23, 2011, at 8:01 PM, Mehmet Avcioglu wrote:
> >
Thanks for the response.
Asterisk logs the execution of the AGI and script completed messages within the
same second, so less than a second.
--
Mehmet
On Sep 24, 2011, at 3:34 PM, Sam Govind wrote:
> How much time your AGI is taking? Check if it is completing its task and not
> killed by as
Thats wicked !! hmmm stop your asterisk (if u can afford) and run it like
"asterisk -cvg" and then make a call.. see whats your AGI doing in there
!!
On Sat, Sep 24, 2011 at 5:43 PM, Mehmet Avcioglu wrote:
>
> Thanks for the response.
>
> Asterisk logs the execution of the AGI and script comp
Out of about 18000 instances this problem occurred 48 times yesterday. So it
has been pretty much impossible for me to replicate it under test conditions.
Thanks
--
Mehmet
On Sep 24, 2011, at 4:00 PM, Sam Govind wrote:
> Thats wicked !! hmmm stop your asterisk (if u can afford) and run it lik
Should we consider it ignorable or you are still interested in resolving !
Best of Luck in any case !
On Sat, Sep 24, 2011 at 6:16 PM, Mehmet Avcioglu wrote:
>
> Out of about 18000 instances this problem occurred 48 times yesterday. So
> it has been pretty much impossible for me to replicate it u
Thanks for the help. 48 times out of 18000 should be ignorable in most cases
but it required human intervention 48 times.:) Obviously if there is no other
way I'll find a way to automate that human intervention somehow.. Thanks again.
--
Mehmet
On Sep 24, 2011, at 4:34 PM, Sam Govind wrote:
>
On Sat, 24 Sep 2011, Mehmet Avcioglu wrote:
Thanks for the help. 48 times out of 18000 should be ignorable in most
cases but it required human intervention 48 times.:) Obviously if there
is no other way I'll find a way to automate that human intervention
somehow.. Thanks again.
In no particu
Thanks for the response. Although I had already gone thorough a lot of these
types of QAs during my own problem solving, your suggestions did bring a couple
that I had not.
> In no particular order...
>
> Earlier, you suspected receiving a signal was causing your problem.
> Instead of ignoring
ssage-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mehmet
Avcioglu
Sent: Monday, September 26, 2011 7:08 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] AGI Problem
Thanks for the respo
On Sat, 24 Sep 2011, Steve Edwards wrote:
Instead of ignoring the signal, how setting up a handler and logging
the reception?
On Mon, 26 Sep 2011, Mehmet Avcioglu wrote:
The program is written in a very top to bottom way (himm stateless?
non-oo? not sure what to call it) and would be really
Danny's suggestion of using System instead of AGI was correct, it was wrong of
me to use AGI here as there is no communication. The same script does
communicate with asterisk when executed with different options, so I had just
kept the same line using different options at different places.
To
On Tue, 27 Sep 2011, Mehmet Avcioglu wrote:
Today I changed the AGI calls to System at places where there is no
response back to asterisk. Kept everything the same, instead of
AGI(script.php,var1,var2) made it System(/path/script.php "var1" "var2")
and it worked without a problem. This way I h
Hi,
I have the same problem, Im also running RH 9. But Im using SIP only
with Cisco ATAs. There are reports of asterisk not doing well with
RedHat because of the new threads handling in RH kernel. Maybe compiling
a fresh rpm from kernel.org will solve the problem.
Testing my AGI script (writen in
Hi Ivar,
Try putting this line before launching asterisk:
export LD_ASSUME_KERNEL=2.4.1
Best regards,
On Thu, 2003-10-16 at 06:48, Ívar Ragnarsson wrote:
> Hi
>
> Every time I hangup on my AGI script Asterisk crashes if it is not running
> in console mode.
> (happens when using python and per
ED]
> Subject: Re: [Asterisk-Users] AGI problem (crash) in RH9
>
>
> Hi Ivar,
>
> Try putting this line before launching asterisk:
>
> export LD_ASSUME_KERNEL=2.4.1
>
> Best regards,
>
> On Thu, 2003-10-16 at 06:48, Ívar Ragnarsson wrote:
> > Hi
>
other languages too
MATT---
-Original Message-
From: Ray Burkholder [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 5:16 PM
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] AGI problem (crash) in RH9
You may wish to upgrade your kernel to 2.4.20-20.9 through 'up2date
On Fri, 17 Oct 2003, mattf wrote:
> Redhat has EVERYTHING set to LANG=UTF-8 and it screws up all sorts of perl
> stuff, and several other pre-written programs in other languages too
It is a pain, and it even breaks man pages and all sorts of other things
in my experience. I recommend disabling
ECTED]'
Subject: RE: [Asterisk-Users] AGI problem (crash) in RH9
On Fri, 17 Oct 2003, mattf wrote:
> Redhat has EVERYTHING set to LANG=UTF-8 and it screws up all sorts of perl
> stuff, and several other pre-written programs in other languages too
It is a pain, and it even breaks man pages
Douglas Mortensen wrote:
>
> I have a software developer creating a .Net / mono program to use as an
> AGI script. We are having problems getting it to stream files. From what
> we can tell, it is talking to asterisk correctly when called from the
> dial plan. Its stderr output goes to the asteris
On Wed, 25 Feb 2009, Douglas Mortensen wrote:
> I have a software developer creating a .Net / mono program to use as an
> AGI script. We are having problems getting it to stream files. From what
> we can tell, it is talking to asterisk correctly when called from the
> dial plan. Its stderr outp
Suggest,
Use .net to do an web services and use curl+agi scripts to integrate
your solutions.
Regards,
Luis Morales
On Wed, Feb 25, 2009 at 6:37 PM, Douglas Mortensen
wrote:
> Hello.
>
> I have a software developer creating a .Net / mono program to use as an
> AGI script. We are having proble
On Wed, 25 Feb 2009, Steve Edwards wrote:
> The AGI interface (is that redundant?) can be summarized as:
>
> 1) Asterisk sends a bunch of cruft (the AGI environment variables) to your
> program's STDIN.
1a) Your program must read all of the AGI environment variables.
> 2) Your program sends a re
Steve:
=
Thanks for the info on the agi debug command. We'll see what information
we can garner with that. Thanks also for the advanced logging info.
Unfortunately, we are pretty aware of how AGI works (at least at the
level that you explained it). Thanks for the illustrati
An update here. Yesterday's problem has been solved (partly). After
looking closer at the results of my perl script, as well as looking at
the documentation, I realized that we were leaving the escape character
argument off of the STREAM FILE command in the mono application. After
appending "" to t
On Thu, 26 Feb 2009, Douglas Mortensen wrote:
> New problem:
> ==
> Although we see the following in our logs / asterisk console: [Feb 26
> 11:11:05] VERBOSE[9824] logger.c: -- Playing 'filename'
> (escape_digits=) (sample_offset 0)
>
> All that the caller hears is a very brief clic
Hi douglas,
I made an AGI script with curl in my dial-plan. Take a look:
[custom-login]
exten => s,1,Set(LOGINOK=0)
exten => s,2,Read(codigo|custom/codigo|4||3|3)
exten => s,3,Read(clave|custom/clave|4||3|3)
exten =>
s,4,Set(LOGINOK=${CURL(http:///cgi-bin/login.pl?codigo=${codigo}&clave=${clave
You can add your library path in the /etc/init.d/asterisk script and
restart asterisk via service.
or
You also can
1/ add your library path in your /etc/ld.so.conf
2/ type ldconfig as root.
3/ restart asterisk via service
> Hi List,
>
> My AGI seems work well in
39 matches
Mail list logo