Thread: [Asterisk-java-users] How to get AsteriskChannel on events
Brought to you by:
srt
From: MT <moh...@gm...> - 2014-01-20 10:41:04
|
Hi everyone, I want to use AgiOperations on some events in ManagerEventListener, some of events like NewStateEvent return channel name as string but I want AsteriskChannel to use it for AgiOperations like setting and getting variables on that channel. please help me regards, mohsen |
From: Yves A. <yv...@gm...> - 2014-01-20 10:54:54
|
Hi, have you tried the method(s) getChannelById(String id) or getChannelByName(String name) from class (Default)AsteriskServer? yves Am 20.01.2014 11:40, schrieb MT: > Hi everyone, > I want to use AgiOperations on some events in ManagerEventListener, > some of events like NewStateEvent return channel name as string but I > want AsteriskChannel to use it for AgiOperations like setting and > getting variables on that channel. > > please help me > > regards, > mohsen > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: MT <moh...@gm...> - 2014-01-20 11:35:58
|
Thanks yves, you always have a solution for everything. you are the best. On Mon, Jan 20, 2014 at 2:24 PM, Yves A. <yv...@gm...> wrote: > Hi, > > have you tried the method(s) getChannelById(String id) or > getChannelByName(String name) from class (Default)AsteriskServer? > > yves > > > Am 20.01.2014 11:40, schrieb MT: > > Hi everyone, > I want to use AgiOperations on some events in ManagerEventListener, > some of events like NewStateEvent return channel name as string but I > want AsteriskChannel to use it for AgiOperations like setting and getting > variables on that channel. > > please help me > > regards, > mohsen > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Asterisk-java-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: MT <moh...@gm...> - 2014-01-20 11:41:21
|
Dear yves, is there anyway to convert AsteriskChannel to AgiChannel? mohsen On Mon, Jan 20, 2014 at 3:05 PM, MT <moh...@gm...> wrote: > Thanks yves, > you always have a solution for everything. > > you are the best. > > > On Mon, Jan 20, 2014 at 2:24 PM, Yves A. <yv...@gm...> wrote: > >> Hi, >> >> have you tried the method(s) getChannelById(String id) or >> getChannelByName(String name) from class (Default)AsteriskServer? >> >> yves >> >> >> Am 20.01.2014 11:40, schrieb MT: >> >> Hi everyone, >> I want to use AgiOperations on some events in ManagerEventListener, >> some of events like NewStateEvent return channel name as string but I >> want AsteriskChannel to use it for AgiOperations like setting and getting >> variables on that channel. >> >> please help me >> >> regards, >> mohsen >> >> >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> >> >> >> _______________________________________________ >> Asterisk-java-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > |
From: Yves A. <yv...@gm...> - 2014-01-20 14:43:13
|
Hi, I am afraid.... no, as these are completely different "things"... What is your objective? Surely there is a way round... yves AsteriskChannel: Am 20.01.2014 12:40, schrieb MT: > Dear yves, > is there anyway to convert AsteriskChannel to AgiChannel? > > mohsen > > > On Mon, Jan 20, 2014 at 3:05 PM, MT <moh...@gm... > <mailto:moh...@gm...>> wrote: > > Thanks yves, > you always have a solution for everything. > > you are the best. > > > On Mon, Jan 20, 2014 at 2:24 PM, Yves A. <yv...@gm... > <mailto:yv...@gm...>> wrote: > > Hi, > > have you tried the method(s) getChannelById(String id) or > getChannelByName(String name) from class (Default)AsteriskServer? > > yves > > > Am 20.01.2014 11:40, schrieb MT: >> Hi everyone, >> I want to use AgiOperations on some events in >> ManagerEventListener, >> some of events like NewStateEvent return channel name as >> string but I want AsteriskChannel to use it for AgiOperations >> like setting and getting variables on that channel. >> >> please help me >> >> regards, >> mohsen >> >> >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> >> >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... <mailto:Ast...@li...> >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In > Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > <mailto:Ast...@li...> > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: MT <moh...@gm...> - 2014-01-20 15:06:40
|
Hi, I want to use AgiOperations on some events in ManagerEventListener. but as you said there are differences between AsteriskServer and AgiServer, I decide to change my code and use AsteriskChannel instead of AgiChannel. thanks yves for your support. mohsen On Mon, Jan 20, 2014 at 6:13 PM, Yves A. <yv...@gm...> wrote: > Hi, > > I am afraid.... no, as these are completely different "things"... > What is your objective? Surely there is a way round... > > yves > > > > AsteriskChannel: > > Am 20.01.2014 12:40, schrieb MT: > > Dear yves, > is there anyway to convert AsteriskChannel to AgiChannel? > > mohsen > > > On Mon, Jan 20, 2014 at 3:05 PM, MT <moh...@gm...> wrote: > >> Thanks yves, >> you always have a solution for everything. >> >> you are the best. >> >> >> On Mon, Jan 20, 2014 at 2:24 PM, Yves A. <yv...@gm...> wrote: >> >>> Hi, >>> >>> have you tried the method(s) getChannelById(String id) or >>> getChannelByName(String name) from class (Default)AsteriskServer? >>> >>> yves >>> >>> >>> Am 20.01.2014 11:40, schrieb MT: >>> >>> Hi everyone, >>> I want to use AgiOperations on some events in ManagerEventListener, >>> some of events like NewStateEvent return channel name as string but I >>> want AsteriskChannel to use it for AgiOperations like setting and getting >>> variables on that channel. >>> >>> please help me >>> >>> regards, >>> mohsen >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >>> Learn Why More Businesses Are Choosing CenturyLink Cloud For >>> Critical Workloads, Development Environments & Everything In Between. >>> Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >>> >>> >>> >>> _______________________________________________ >>> Asterisk-java-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >>> Learn Why More Businesses Are Choosing CenturyLink Cloud For >>> Critical Workloads, Development Environments & Everything In Between. >>> Get a Quote or Start a Free Trial Today. >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >> > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Asterisk-java-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Miguel S. <m.s...@gm...> - 2014-01-20 16:03:40
|
Wich events do you need to manage ? El 20/01/2014 11:42, "MT" <moh...@gm...> escribió: > Hi everyone, > I want to use AgiOperations on some events in ManagerEventListener, > some of events like NewStateEvent return channel name as string but I want > AsteriskChannel to use it for AgiOperations like setting and getting > variables on that channel. > > please help me > > regards, > mohsen > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: MT <moh...@gm...> - 2014-01-20 17:08:30
|
thanks miguel for your answer, I solved my problem with getChannelById(String id) that yves told me. regards, mohsen On Mon, Jan 20, 2014 at 7:33 PM, Miguel Santiago <m.s...@gm...>wrote: > Wich events do you need to manage ? > El 20/01/2014 11:42, "MT" <moh...@gm...> escribió: > >> Hi everyone, >> I want to use AgiOperations on some events in ManagerEventListener, >> some of events like NewStateEvent return channel name as string but I >> want AsteriskChannel to use it for AgiOperations like setting and getting >> variables on that channel. >> >> please help me >> >> regards, >> mohsen >> >> >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Miguel S. <m.s...@gm...> - 2014-01-20 18:06:04
|
Ok. El 20/01/2014 18:09, "MT" <moh...@gm...> escribió: > thanks miguel for your answer, > I solved my problem with getChannelById(String id) that yves told me. > > regards, > mohsen > > > On Mon, Jan 20, 2014 at 7:33 PM, Miguel Santiago < > m.s...@gm...> wrote: > >> Wich events do you need to manage ? >> El 20/01/2014 11:42, "MT" <moh...@gm...> escribió: >> >>> Hi everyone, >>> I want to use AgiOperations on some events in ManagerEventListener, >>> some of events like NewStateEvent return channel name as string but I >>> want AsteriskChannel to use it for AgiOperations like setting and getting >>> variables on that channel. >>> >>> please help me >>> >>> regards, >>> mohsen >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >>> Learn Why More Businesses Are Choosing CenturyLink Cloud For >>> Critical Workloads, Development Environments & Everything In Between. >>> Get a Quote or Start a Free Trial Today. >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |