[Asterisk-java-users] OriginateAction.setVariable
Brought to you by:
srt
From: Tobias W. <tob...@ev...> - 2005-09-06 15:57:05
|
Hi, first of all i am still using asterisk-java-0.1 because i didn't want to disturb the AGIs presently in use :-S I wanted to set a Variable while i am originating a call. Here is what i wrote: OriginateAction originateAction = new OriginateAction(); originateAction.setChannel("Local/5000@test"); originateAction.setVariable("var1=TEST"); originateAction.setApplication("MeetMe"); originateAction.setData(number); originateAction.setTimeout(new Integer(30000)); ManagerResponse originateResponse = managerConnection.sendAction(originateAction, 30000); Here is the extension: exten => 5000,1,Answer() exten => 5000,2,NoOp(Our var should be printed here : ${var1}) exten => 5000,3,Playback(demo-abouttotry) exten => 5000,4,Hangup() The call is executed correctly and the sound is streamed into the conference, but the channel variable is not. I also have tried out an call file: Channel: Local/5000@test SetVar: var1=100 Application: MeetMe Data: 333 With the same result. Can anybody point me to my fault ?? Greetings, tobias |