Re: [Asterisk-java-users] OriginateAction.setVariable
Brought to you by:
srt
From: Tobias W. <tob...@ev...> - 2005-09-07 09:55:23
|
Stefan Reuter schrieb: > On Tue, 2005-09-06 at 17:56 +0200, Tobias Wolf wrote: > > You can still use your "old" AGIs with Asterisk-Java 0.2-rc1 though you > will get a compile time warning about using a deprecated API. > ok, thx for the info. i will keep that in mind ... > > > When originating a call two channels are involved. Let's asume you > originate a call from A to B then what happens looks like: > > A channel is created to A: > ----> A > A is ringing > When A is answered the second channel is created: > ----> A ----> B > The channel variables are set on the channel from A to B only. > > Does that help in your case? > thx for you explanation, it helps to improve my overall understanding of the concept, although i am not really happy with it, but this is something a have to live with, i guess :) the main idea of what i want to do is the following: stream an audio file (which is variable) into a conf room (which is also variable, of course). the problem is that i have to set something in 'A' and in 'B'. Since variables only appear in the called channel (B) it is only useful to send the conf room number per variable and the problem stucks with the file to stream, which has to be set in A. so i switched to use originateAction.setChannel("Local/"+number+"@confannounce"); originateAction.setApplication("Playback"); originateAction.setData(file); [confannounce] exten => _X.,1,NoOp(This is the conf room number in which to stream: ${EXTEN}) exten => _X.,2,MeetMe(${EXTEN}) exten => _X.,3,Hangup This approach connects to the Local Channel. I tried even to set variables in this szenario, but they does not apppear accordingly to the valuable information of Stefan. After the Channel is answered, wich is done by the MeetMe-Application, the Application is executed which is defined in the Originating-Action. so, in the end i think i have reached the behavior i wanted. thx for the help :) tobias |