[asterisk-dev] Bridge not in Stasis application

Joshua C. Colp jcolp at sangoma.com
Wed Feb 26 06:42:38 CST 2020


On Wed, Feb 26, 2020 at 6:10 AM <abhay at avissol.com> wrote:

> Hi ,
>
>
>
> I have not raised the issue on issue tracker as I have not been able to
> simulate the issue , but is happening as rare occurrence every 1-2 days on
> production server and so wanted to trace it further .
>
>
>
> I have been able to debug till this function in bridge.c where it reaches
> and so thread is working properly
>
>
>
> static void bridge_base_dissolving(struct ast_bridge *self)
>
> {
>
>         ast_debug(1,"Bridge dissolving %s in
> bridge_base_dissolving\n",self->uniqueid);
>
>         ao2_unlink(bridges, self);
>
> }
>
>
>
> After this on unlink the destroy function is not being called i.e “static
> void destroy_bridge(void *obj)” can you guide me on how to debug/trace it
> further .
>

That would mean something still has a reference to the bridge. You can try
getting a backtrace[1] at the time and seeing if a thread is possibly
stuck.

[1] https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace

-- 
Joshua C. Colp
Asterisk Technical Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20200226/54421b57/attachment.html>


More information about the asterisk-dev mailing list