Re: [asterisk-users] Pass arguments from extensions.conf

2008-02-15 Thread Rajkumar S
On Thu, Feb 14, 2008 at 9:52 PM, Naveen Palani [EMAIL PROTECTED] wrote:

 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

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Pass arguments from extensions.conf

2008-02-15 Thread Jared Smith
On Thu, 2008-02-14 at 21:52 +0530, Naveen Palani wrote:
 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.


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Pass arguments from extensions.conf

2008-02-14 Thread Naveen Palani
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 [EMAIL PROTECTED]

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
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users