Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] Pass arguments from extensions.conf


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





PostPosted: Thu Feb 14, 2008 11:22 am    Post subject: [asterisk-users] Pass arguments from extensions.conf Reply with quote

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





PostPosted: Fri Feb 15, 2008 4:26 am    Post subject: [asterisk-users] Pass arguments from extensions.conf Reply with quote

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





PostPosted: Fri Feb 15, 2008 9:28 am    Post subject: [asterisk-users] Pass arguments from extensions.conf Reply with quote

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
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