waqas.mehmood90
2016-Jan-15 19:03 UTC
[asterisk-users] Help me please i am facing much trouble
How to get user extension number in agi php scrip from which he's calling on ivr i am using cid and able to get his name but not his extension no please help me thanx in advance Sent from my Samsung Galaxy smartphone. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160116/5af33220/attachment.html>
Steve Edwards
2016-Jan-15 19:26 UTC
[asterisk-users] Help me please i am facing much trouble
On Sat, 16 Jan 2016, waqas.mehmood90 wrote:> How to get user extension number in agi php scrip from which he's > calling on ivr i am using cid and able to get his name but not his > extension no please help me thanx in advanceYou can use the 'agi set debug on' CLI command to enable AGI debugging. This will show you the AGI variables passed to your script. You can use the 'dumpchan()' application to display the available channel variables. There are also CLI commands to interrogate the Asterisk database. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST