Hi, Is it possible to get the remote channelname that will be bridged when the call is answered, only having the channel that is in the Ring(ing) state? As far as I can see no variable seems to fit when doing the show channel command. I want to be able to redirect/manipulate an incoming call before it gets answered/bridged, but to do that I have to now which channel to use. Is there a way? Prefarably using manager API. Thanks, Marcus
Eric "ManxPower" Wieling
2007-Jun-04 14:08 UTC
[asterisk-users] Get calling channel before pickup
Marcus Carlson wrote:> Is it possible to get the remote channelname that will be bridged when > the call is answered, only having the channel that is in the Ring(ing) > state? As far as I can see no variable seems to fit when doing the show > channel command. > > I want to be able to redirect/manipulate an incoming call before it gets > answered/bridged, but to do that I have to now which channel to use. > > Is there a way? Prefarably using manager API.Asterisk does not know which of the several devices you are calling will pick up. Dial(SIP/1234&Zap/7&IAX2/fred/555)
Mojo with Horan & Company, LLC
2007-Jun-05 09:40 UTC
[asterisk-users] Get calling channel before pickup
I must be not understanding your question very well, because it seems like an easy answer :) In the following Dial event, we have Source and Destination. Like Eric said, Destination can contain multiple devices, so can't be trusted. But Source should only contain one device.... Does it have data you can use? Moj Event: Dial Privilege: call,all Source: SIP/112-09823a58 Destination: SIP/118-0986d4c0 CallerID: 112 CallerIDName: Mojo SrcUniqueID: 1181061393.53 DestUniqueID: 1181061393.54 P.S. I think you meant you wanted the channel that is HEARING the ringing, not the channel that is IN the ringing state....? Moj Marcus Carlson wrote:> Hi, > > Is it possible to get the remote channelname that will be bridged when > the call is answered, only having the channel that is in the Ring(ing) > state? As far as I can see no variable seems to fit when doing the show > channel command. > > I want to be able to redirect/manipulate an incoming call before it gets > answered/bridged, but to do that I have to now which channel to use. > > Is there a way? Prefarably using manager API. > > Thanks, > Marcus > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users