Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] asterisk-users Digest, Vol 138, Issue 8


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
waqas.mehmood90 at yah...
Guest





PostPosted: Wed Jan 13, 2016 1:08 pm    Post subject: [asterisk-users] asterisk-users Digest, Vol 138, Issue 8 Reply with quote

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



Sent from my Samsung Galaxy smartphone.



-------- Original message --------
From: asterisk-users-request@lists.digium.com
Date:13/01/2016 11:00 PM (GMT+05:00)
To: asterisk-users@lists.digium.com
Cc:
Subject: asterisk-users Digest, Vol 138, Issue 8
Back to top
asterisk_list at earth...
Guest





PostPosted: Wed Jan 13, 2016 1:32 pm    Post subject: [asterisk-users] asterisk-users Digest, Vol 138, Issue 8 Reply with quote

On Wednesday 13 Jan 2016, waqas.mehmood90 wrote:
Quote:
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 .

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services