[asterisk-dev] [Code Review] 3411: Add some asserts that were handy when looking for a stasis cache problem.

rmudgett reviewboard at asterisk.org
Tue Apr 1 18:41:11 CDT 2014

This is an automatically generated e-mail. To reply, visit:

Review request for Asterisk Developers.

Repository: Asterisk


* Assert if a channel is destroyed but has the snapshot staging flag set.  In this case the final channel destruction snapshot would never get taken.

* Assert if what we just got out of the stasis cache is not what we were looking for.  This assert would have saved several days searching for a bug and a lot of my hair.

* Assert if the music on hold message posts could not find the associated channel.  A crash will happen later when manager tries to send the MOH AMI message.  This assert catches the problem when the stasis message is posted instead of by the thread processing the defective message.

* Always generate a backtrace when an ast_assert() fails.


  /branches/12/res/res_musiconhold.c 411651 
  /branches/12/main/utils.c 411651 
  /branches/12/main/stasis_cache.c 411651 
  /branches/12/main/channel.c 411651 

Diff: https://reviewboard.asterisk.org/r/3411/diff/


Inserted an assertion that failed to see that the backtrace is generated.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140401/9857cddc/attachment-0001.html>

More information about the asterisk-dev mailing list