[Asterisk-java-users] Help with executing asterisk applications.
Brought to you by:
srt
From: Jan du T. <jan...@de...> - 2006-01-12 06:53:58
|
Hi. I know if you want to invoke an asterisk application, like the "Wait" application, you must do it with the AGI stuff. Write a sript that extends from BaseAGIScript and then in the service method call this.exec("Wait","1"). My question is with applications that have more than one option, how must the option string that is passed to exec look like? For example the MeetMeAdmin application. Running the "show application MeetMeAdmin" CLI command provides us with this: MeetMeAdmin(confno,command[,user]): 'e' -- Eject last user that joined 'k' -- Kick one user out of conference 'K' -- Kick all users out of conference 'l' -- Unlock conference 'L' -- Lock conference 'm' -- Unmute conference 'M' -- Mute conference 'n' -- Unmute entire conference (except admin) 'N' -- Mute entire conference (except admin) So in my agi script I have: this.exec("MeetMeAdmin","8000,K"). But it doesn't work. Asterisk gives me the following warning: app_meetme.c:1970 admin_exec: MeetmeAdmin requires a command! What is the correct syntax for the options string when you have multiple options? Thanks in advance. Bye. |