Re: [asterisk-users] Problem with AGI Script

2007-11-21 Thread Matt
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

Re: [asterisk-users] Problem with AGI Script

2007-11-19 Thread Chris Blunt
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

Re: [asterisk-users] Problem with AGI Script

2007-11-19 Thread Matt
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

Re: [asterisk-users] Problem with AGI Script

2007-11-18 Thread didier
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

Re: [asterisk-users] Problem with AGI Script

2007-11-18 Thread Tilghman Lesher
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.

Re: [asterisk-users] Problem with AGI Script

2007-11-18 Thread Eric ManxPower Wieling
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--

Re: [asterisk-users] Problem with AGI Script

2007-11-16 Thread Steve Edwards
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

Re: [asterisk-users] Problem with AGI Script

2007-11-16 Thread Benjamin Jacob
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

Re: [asterisk-users] Problem with AGI Script

2007-11-15 Thread Steve Edwards
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,

Re: [asterisk-users] Problem with AGI Script

2007-11-14 Thread Brett Crapser
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

Re: [asterisk-users] Problem with AGI Script

2007-11-14 Thread Matt
-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

Re: [asterisk-users] Problem with AGI Script

2007-11-14 Thread Moises Silva
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

Re: [asterisk-users] Problem with AGI Script

2007-11-14 Thread Mindaugas Kezys
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

Re: [asterisk-users] Problem with AGI Script

2007-11-14 Thread Matt
[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

Re: [asterisk-users] Problem with AGI Script

2007-11-14 Thread Benjamin Jacob
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