[asterisk-users] asterisk-users Digest, Vol 138, Issue 8
A J Stiles
asterisk_list at earthshod.co.uk
Wed Jan 13 12:31:46 CST 2016
On Wednesday 13 Jan 2016, waqas.mehmood90 wrote:
> How to get user extention no in agi php scrip from which he's calling on
> ivr i am using cid and able to get his name but not his extention no
> please help me
Within the dialplan, what you are looking for would be ${CALLERID(num)} . So
you could just pass this as a parameter to your AGI script. BUT, it may well
be already there as an environment variable within the script.
Try writing a "dummy" AGI script that simply dumps the environment array to a
temporary file and then returns to the dialplan.
--
AJS
Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .
More information about the asterisk-users
mailing list