[Asterisk-Users] How to get the Called id with AGI
usedcanon
usedcanon at yahoo.co.uk
Thu Jun 10 15:33:19 MST 2004
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: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Angel Diaz
Sent: 10 June 2004 22:41
To: asterisk-users at lists.digium.com
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040610/78d0cf5d/attachment.htm
More information about the asterisk-users
mailing list