VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
naveenp at quinnox.com Guest
|
Posted: Thu Feb 14, 2008 11:22 am Post subject: [asterisk-users] Pass arguments from extensions.conf |
|
|
Hi,
I have been working with asterisk to make ivr calls (outbound and inbound). I have the functionality -
Read(variable|file_name)
used in my dialplan. Now i need to pass the variable to my ruby file to compare the data entered with the database (mysql).
How can i pass the arguments from my dialplan to the ruby file. Is there a way i can do it with the agi script?
Any one has any clues on it.
Regards,
Naveen.Palani
________________________________
?Quinnox, a global IT services company prides itself on its SEI-CMM Level 5, ISO?9001:2000 assessed delivery processes and provides solutions in areas of E-Business, ERP, Application Management Services, and EAI to customers in BFSI, Manufacturing, Retail, Telecom and Healthcare sector, powered by our Global Delivery Model.?
This e-mail and any attached files are confidential, proprietary, and may also be legally privileged information, and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient of this e-mail, please send it back to the person who sent it to you and delete the e-mail and any attached files and destroy any copies of it; you may call us immediately at + 91 22 2829 0100 or email us at systems at quinnox.com
Quinnox Consultancy Services and/or any of its sister companies owns no responsibility for the views presented in the e-mail and any attached files unless the sender mentions so, with due authority of Quinnox Consultancy Services.
Unauthorized reading, reproduction, publication, use, dissemination, forwarding, printing or copying of this e-mail and its attachments is prohibited.
We have checked this message for any known viruses; however we decline any liability, in case of any damage caused by a non-detected virus.
For more details about our company, visit http://www.Quinnox.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080214/2ccbca57/attachment.htm |
|
Back to top |
|
|
rajkumars at gmail.com Guest
|
Posted: Fri Feb 15, 2008 4:26 am Post subject: [asterisk-users] Pass arguments from extensions.conf |
|
|
On Thu, Feb 14, 2008 at 9:52 PM, Naveen Palani <naveenp at quinnox.com> wrote:
Quote: | How can i pass the arguments from my dialplan to the ruby file. Is there a
way i can do it with the agi script?
|
Set them as variables in your extensions.conf and use them inside your
agi scripts.
raj |
|
Back to top |
|
|
jsmith at digium.com Guest
|
Posted: Fri Feb 15, 2008 9:28 am Post subject: [asterisk-users] Pass arguments from extensions.conf |
|
|
On Thu, 2008-02-14 at 21:52 +0530, Naveen Palani wrote:
Quote: | How can i pass the arguments from my dialplan to the ruby file. Is
there a way i can do it with the agi script?
|
Sure... simply pass your arguments to the AGI() application, and they'll
show up as if they were command-line arguments to your ruby program.
For example, if you wanted to pass the arguments "red" and "green", you
would do something like:
exten => 123,1,AGI(/path/to/your/ruby/program,red,green)
--
Jared Smith
Community Relations Manager
Digium, Inc. |
|
Back to top |
|
|
|
|
|
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
|