[asterisk-dev] Problem with chan->_bridge Pointer in answered Macro

Stefan Schmidt sst at sil.at
Fri Sep 11 08:10:34 CDT 2009


i forgot i use asterisk 1.6.1.5 with addons.1.6.1.1

> Hello,
> 
> i have build a application which insert some data into a DB after a call
> is answered by using the M(macro) option in a dial command.
> 
> this looks like this:
> 
> [macro answered]
> 
> exten => s,1,Application()
> 
> 
> [default]
> 
> exten => X,1,Dial(SIP/bla,60,M(answered)
> 
> in this application i get as the chan the answering channel which is
> named SIP/bla-xxxx. My problem is that the chan->_bridge value of this
> channel is NULL so i cant get the bridged channel.
> 
> Shouldnt the bridge pointer work in both directions or is it just for
> the call which starts the bridge?
> 
> i thought that i would be:
> 
> chan A->_bridge = Chan B
> Chan B->_bridge = Chan A
> 
> or is this a mistake?
> 
> 
> thank you
> 
> best regards.
> 
> Steve Smith
> 



More information about the asterisk-dev mailing list