Insert into a variable the choice of customer deriving by menu and pass it to main context

Hi all,

This is my first post in this forum even if I follow you from many years.
I need that someone help me because I’m not find the correct way to do what I would want!

Scenario:
I have a VM Linux with Ubuntu v.14.04.5 LTS x86_64 and inside this vm it’s installed Asterisk v. 1.8.29.0.

I have to ask by my customer to tell me what type of product.
I thought to realize the above required with a menu in which ask to the customer to select 1 or 2 or 3 (depending on the type of product) and then insert this value in a variable that it must be return to the main context because with other 2 values (taken from two successive and consecutive Read() ) , this will go passed to a php script.

How can I implemented this?

Any help will be appreciated.

Waiting for an hand.
Regards.
Top

same=>n,Read(var1,sound-file1)
same=>n,Read(var2,sound-file2)
same=>n,System(/usr/bin/php /var/www/html/ami/script.php ${var1} ${var2} )

on the PHP script use $argv — Array of arguments passed to script

$argv[1]
$argv[2]

Hello Ambiorixg12,
first of all thanks for your reply and excuse me for delay in my response.

Regards,
Top