Re: [Asterisk-java-users] setVarAction Issue
Brought to you by:
srt
From: Rounak S. <rou...@gm...> - 2013-06-13 08:44:10
|
Hii yves, Sorry am new to Asterisk and Asterisk-java. just after posting I realised that I havenot set the channel correct and have not send it through manager connection. I guessed it should be setChannel("incoming-call").But now it seems its incorrect. Actually I am working under a software for Hospital where I have to call patients(as max as possible at a time) and remind them to take medicine.Numbers and medicine to take will be extracted from hospital Database If you can suggest a good way to do it,then it will be great What I though of doing was: [incoming-call] exten,300,1,Answer() same=>n,Dial(DAHDI/GO/${number}) where number will be set using AMI under a for loop,each time changing the number value. Now I am just testing the various commands in Asterisk-Java. This works fine in asterisk though. *[incoming-call]* exten=>300,1,Answer() same=>n,Set(number="incoming-call,301,1") same=>n,Goto(${number}) exten=>301,1,Playback(b) So is there not a way to set variable in context? I tried originateAction.setvariable("number",""value") but it didnot work also.Whats the use of originateAction.setVariable command then? - for these kind of experiments I´d recommend using an AGI... As directed from my mentor(am doing GSOC http://www.google-melange.com/) I can use AMI only. Please help. > |