[Asterisk-Dev] Application "ManualBridge"

Paul Cadach paul at odt.east.telecom.kz
Mon Jan 31 03:44:26 MST 2005


Hi,

Probably you need to manual unlock channels when ones isn't needs anymore by ast_mutex_unlock(&c1->lock) or
ast_mutex_unlock(&c2->lock), at least after call to ast_bridge_call(). This should help a little.

Also, check that ast_moh_stop(), ast_deactivate_generator()4, ast_channel_make_compatible(), ast_bridge_call() isn't
expect unlocked channels.


WBR,
Paul.

----- Original Message -----
From: "Robert Spielmann" <spielmann at tal.de>
To: <asterisk-dev at lists.digium.com>
Sent: Monday, January 31, 2005 4:08 PM
Subject: [Asterisk-Dev] Application "ManualBridge"


> Hi,
>
> I wrote my own app to manually bridge two channels, however I get some error
> messages saying "avoided initial deadlock for channel xyz" and the channels
> keep existing after both partners hang up. Can someone help me? :-)
>
> Code: http://www.pastebin.com/235671
>
> TIA
> Robert Spielmann
> -----------------------------------------------------
> TAL.DE Klaus Internet Service GmbH spielmann at tal.de
> Robertstr. 6 * D-42107 Wuppertal, Germany
> Tel +49 (0) 202 495-364 * Fax +49 (0) 202 / 495-399
>
> _______________________________________________
> 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
>




More information about the asterisk-dev mailing list