[Asterisk-java-users] getOptionCommand Issue
Brought to you by:
srt
From: Atul A. <adi...@gm...> - 2013-06-06 09:47:20
|
Hello everyone, This is my asterisk extension conf file as soon as caller calls handle call to Java. I want to know if the following will work. Asterisk extension.conf exten=>100,Answer() same=>n,AGI(agi://127.0.0.1/hello.agi) Java file public void service(AgiRequest request, AgiChannel channel) throws AgiException { streamFile("welcome"); */**Now I will play a main menu and it will ask user to choose.I then *want to save it and perform action based on that.I*s the use correct? * variable option should be string or int? / int option=getOption("mainmenu","12349"); switch(option){ //will perform function based on what user pressed } hangup(); } |