Hi Angel,
 
I assume you mean CALLERIDNUM (the number part of caller ID),
 
The easiest thing in that case is to pass it as a parameter to your AGI script
 
  extex => 500,1,AGI(myscript.py|${CALLERIDNUM})
 
in your script you just used the argument passed as usual ( I am not a perl expert, so not sure on the syntax there )
 
Hope this helps.
 
Umar.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Angel Diaz
Sent: 10 June 2004 22:41
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] How to get the Called id with AGI

Hi all,
    Is there a way to get the "called id" (the B number) with AGI perl ?
I know how to get the caller id which is working fine and is just below:

#!/usr/bin/perl

use Asterisk::AGI;

$AGI = new Asterisk::AGI;

my %input = $AGI->ReadParse();

$callerid = $input{'callerid'};

$AGI->say_digits($callerid);

}

Thanks in advance,

Angel.


Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger

Reply via email to