[asterisk-dev] Problem with chan->_bridge Pointer in answered Macro
Kaloyan Kovachev
kkovachev at varna.net
Fri Sep 11 09:58:03 CDT 2009
On Fri, 11 Sep 2009 16:42:57 +0200, Stefan Schmidt wrote
> ok iґve found the problem by myself. the bridge starts after the macro
> finished!
>
yes, at this point the bridge is not started yet
> how could i solve this problem? starting a own thread maybe or is there
> another way?
>
pass the calling channel name as an argument to the Macro and then to your app
> 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 //
> -------------------------------------------------
>
> _______________________________________________
> --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
More information about the asterisk-dev
mailing list