Re: [Asterisk-java-users] Local channel
Brought to you by:
srt
From: Yves A. <yv...@gm...> - 2014-04-19 23:23:41
|
hi, I don´t see a reason why whispering to a known sip channel should not work without the use of local channels.... did you try? if its not working as expected pls. post your code and dialplan... local channels are a way to call into a dialplan, not to a "phone"... normally you would originate a call between to "phones" (extensions), but if you want to execute some kind of "logic" before bridging the two ends, the use of local channels makes this not only much easier but is sometimes the only way to go. take a look at the dial command itself... it expects type/identifier as first argument, e.g. SIP/123 or DAHDI/g0/123456... so without "local" as an asterisk-specific channel type you would not be able to call into a dialplan to execute dialplan logic at one (or more) legs of the call. regards, yves Am 19.04.2014 00:00, schrieb Murthy Gandikota: > > The answer to all of your questions is "Yes". > > My question was about Local/s@whisper which as you know connects to > the [whisper] context in the dialplan that plays, in the case of our > app, a pre-recorded message (e.g. "There is a caller on line"). > > The question is: if I know the SIP channel of the agent and the host > on which the agent is registered, why can't I use that info? At the > moment, my app works perfectly with Local. So you may consider my > question as exploratory. In other words, what exactly will Local buy us? > > Thanks for your reply and I look forward to hearing from you. > > ------------------------------------------------------------------------ > > *From:*Yves A. [mailto:yv...@gm...] > *Sent:* Thursday, April 17, 2014 2:16 PM > *To:* ast...@li... > *Subject:* Re: [Asterisk-java-users] Local channel > > Hi, > > originateAction works as described in the docs. If you have problems > or questions regarding this action, it would be necessary to know what > extensions / channels you want to bridge and to see the part of the > dialplan that is behind the contexts your using... > > What Do you mean with "whisper"...? Some kind of announcement to the > agent before the caller is transferred to the meetme or some kind of > supervision where the supervisor can listen to the conversation and > talk to the agent (only the agent can hear the supervisors voice)..? > Why did you use local channels at all? This makes only sense, if you > want to connect the called party with a part of your dialplan..? Is > the "whisperer" > not a human being, but some kind of IVR or voicefile to be played? > > yves > > Am 17.04.2014 19:12, schrieb Murthy Gandikota: > >> I am dealing with an application consisting of agents and callers. >> The agents are hooked up to a meetme bridge. When a caller comes in >> and wants to get on the meetme with an agent, I use AMI's >> OriginateAction class to whisper on the agent's channel using Local >> extension. >> >> originateAction.setChannel("Local/s@whisper"); >> >> My question is, if I know the hostname and SIP channel, is there any >> way to whisper to the agent without using the Local? >> >> The documentation on originateAction says, the channel has the same >> parameters as the DIAL command. How can I implement this without >> using Local >> >> Thanks >> >> Murthy >> >> >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> >> >> >> >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... <mailto:Ast...@li...> >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |