[Asterisk-Dev] Manual Bridge Application

Robert Spielmann spielmann at plus.cablesurf.de
Tue Feb 1 17:38:07 MST 2005


On Tue, 1 Feb 2005 13:47:42 -0600
"Brian West" <brian at bkw.org> wrote:

> 1. You're going about this wrong.

1st attempt of trial and error ;)

> 2. So you're calling this app with two args.  chan1 and chan2 neither
> being the caller?

Of course one of the channels is the caller - the app is called from
within AGI processing.

> 3. Um where is the channel that called the app?
> 
> Quoting a wise man here:
> "find the target chan then you alloc a blank channel and suck the life
> force  from the real chan into yours via masq then the now lifeless
> chan just drops  dead in it's tracks like it was soft hungup then it
> bridges the new chan  which you now own to you in your thread then you
> dispose of it and exit"

I'll ponder that ;)

> Danger, Will Robinson! Danger!

Thanks for the warning!

> 
> bkw
> 
> ----- Original Message ----- 
> From: "Robert Spielmann" <spielmann at plus.cablesurf.de>
> To: <Asterisk-Dev at lists.digium.com>
> Sent: Tuesday, February 01, 2005 1:25 PM
> Subject: [Asterisk-Dev] Manual Bridge Application
> 
> 
> > Hi,
> >
> > I've done quite a dirty hack to manually bridge two channels, I only
> > have one problem:
> >
> > a) complaints about possible deadlocks on the CLI
> > b) the bridge itself works fine, but when one side hangs up, the
> > channels stay open.
> >
> > Code: http://www.byteforge.org/asterisk/app_manualbridge.c
> >
> > Can anyone give me a hint? :-)
> >
> > TIA
> > Robert
> >
> > -- 
> > "Whether Halliburton, ENRON or anyone
> > greed is a weapon of mass destruction"
> > Faithless, "Mass Destruction"
> >
> > Visit my website: http://www.byteforge.org
> > _______________________________________________
> > Asterisk-Dev mailing list
> > Asterisk-Dev at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-dev
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-dev 
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev


-- 
"Whether Halliburton, ENRON or anyone
greed is a weapon of mass destruction"
Faithless, "Mass Destruction"

Visit my website: http://www.byteforge.org-- 
"Whether Halliburton, ENRON or anyone
greed is a weapon of mass destruction"
Faithless, "Mass Destruction"

Visit my website: http://www.byteforge.org



More information about the asterisk-dev mailing list