Wow I can't believe I missed this, and I can't believe no one else saw it!
Look at the word FROM in both the script, and the way it is called. 'From'
and 'from'... that doesn't work.
On Nov 14, 2007 8:59 AM, Matt [EMAIL PROTECTED] wrote:
I have asterisk 1.2.18 running on a new system we just
Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Problem with AGI Script
didier wrote:
Callerid(number) ? or callerid(num) ?
Grasshopper, you will find many answers you seek by looking in
/path/to/src/asterisk-1.4/doc/channelvariables.txt
Wieling
Sent: 18 November 2007 16:48
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Problem with AGI Script
didier wrote:
Callerid(number) ? or callerid(num) ?
Grasshopper, you will find many answers you seek by looking in
/path/to/src/asterisk-1.4
Callerid(number) ? or callerid(num) ?
- Original Message -
From: Benjamin Jacob [EMAIL PROTECTED]
To: Asterisk Users Mailing List - Non-Commercial Discussion
asterisk-users@lists.digium.com
Sent: Friday, November 16, 2007 4:39 AM
Subject: Re: [asterisk-users] Problem with AGI Script
On Sunday 18 November 2007 09:58:41 didier wrote:
Callerid(number) ? or callerid(num) ?
Neither. It is CALLERID(num) or CALLERID(number). The function name is
cAsE-sEnSiTiVe, though either argument will work. In fact, you can even do
CALLERD(numthispartmakesnosense) and it will still work.
didier wrote:
Callerid(number) ? or callerid(num) ?
Grasshopper, you will find many answers you seek by looking in
/path/to/src/asterisk-1.4/doc/channelvariables.txt
___
--Bandwidth and Colocation Provided by http://www.api-digital.com--
On Wed, 14 Nov 2007, Moises Silva wrote:
what does agi debug says?
what if you run the script from the command line and you fake the
asterisk input?
agi debug (and syslog()) are the AGI developer's best friends :)
It shows the dialog between Asterisk and your AGI. Even if your AGI fails
to
Steve Edwards wrote:
On Thu, 15 Nov 2007, Benjamin Jacob wrote:
well.. if nothings working.. try putting in debug lines urself in the
code.. say
use system calls to write some debugging data into some temporary file
in ur perl code.
I'm a big fan of
syslog(LOG_ERR, I
On Thu, 15 Nov 2007, Benjamin Jacob wrote:
well.. if nothings working.. try putting in debug lines urself in the
code.. say
use system calls to write some debugging data into some temporary file
in ur perl code.
I'm a big fan of
syslog(LOG_ERR, I expected %d, but I got %d, foo,
On Wed, 14 Nov 2007, Matt wrote:
I have asterisk 1.2.18 running on a new system we just installed.
Although I've used AGIs many times in the past, I'm stumped on this one.
All seems fine. If I run the script from the command line it works as
expected:
However, when actually running in
-rwxrw-r-- 1 asterisk asterisk 1053 Nov 14 08:54 GetEmailFromDID.agi
asterisk 3348 0.0 0.2 27024 9380 ?Sl Oct01 0:01
/usr/sbin/asterisk -U asterisk -G asterisk -v -g -p -U asterisk -G asterisk
On Nov 14, 2007 9:17 AM, Brett Crapser [EMAIL PROTECTED] wrote:
On Wed, 14 Nov
what does agi debug says?
what if you run the script from the command line and you fake the
asterisk input?
Regards,
On Nov 14, 2007 8:33 AM, Matt [EMAIL PROTECTED] wrote:
-rwxrw-r-- 1 asterisk asterisk 1053 Nov 14 08:54 GetEmailFromDID.agi
asterisk 3348 0.0 0.2 27024 9380 ?Sl
Make sure /usr/bin/perl can be reached.
Also try in your CLI:
agi debug
Same case happens when I do not have php-cli installed for php AGI scripts.
Mindaugas Kezys
http://www.kolmisoft.com
MOR - Advanced Billing for Asterisk PBX
From: [EMAIL PROTECTED]
[mailto:[EMAIL
[EMAIL PROTECTED] agi-bin]# /usr/bin/perl -v
This is perl, v5.8.5 built for i386-linux-thread-multi
Debug shows nothing:
-- Launched AGI Script /var/lib/asterisk/agi-bin/GetEmailfromDID.agi
AGI Tx agi_request: GetEmailfromDID.agi
AGI Tx agi_channel: Zap/23-1
AGI Tx agi_language: en
AGI
well.. if nothings working.. try putting in debug lines urself in the
code.. say
use system calls to write some debugging data into some temporary file
in ur perl code.
let us know..
Matt wrote:
[EMAIL PROTECTED] agi-bin]# /usr/bin/perl -v
This is perl, v5.8.5 built for
15 matches
Mail list logo