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

Stefan Schmidt sst at sil.at
Fri Sep 11 09:42:57 CDT 2009


ok i´ve found the problem by myself. the bridge starts after the macro
finished!

how could i solve this problem? starting a own thread maybe or is there
another way?

i know a deadagi maybe could do this but i dont like agis ;)

best regards.

steve

Stefan Schmidt schrieb:
> 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
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev

-- 
Für weitere Fragen stehen wir gerne unter voip at sil.at oder
059944 - 2440 zur Verfügung.

Mit freundlichen Grüssen
-- 
Stefan Schmidt
Sysadmin/VOIP // voip at sil.at // Tel 059944-2440//
-------------------------------------------------
SILVER SERVER GmbH // Lorenz-Mandl-Gasse 33/1 //
A-1160 Wien // Fax 059944-9000 // www.sil.at  //
-------------------------------------------------



More information about the asterisk-dev mailing list