]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add a WARNING in bridge_softmix when a timing module isn't loaded
authorMatthew Jordan <mjordan@digium.com>
Wed, 18 Sep 2013 17:17:13 +0000 (17:17 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 18 Sep 2013 17:17:13 +0000 (17:17 +0000)
If bridge_softmix fails to be created because no timing source is present in
Asterisk, this will currently fail gracefully but with (most likely) a generic
error message by whatever module tried to create the softmix bridge. This
patch adds a more explicit warning so you can actually diagnose and fix the
problem.

Review: https://reviewboard.asterisk.org/r/2857/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@399353 65c4cc65-6c06-0410-ace0-fbb531ad65f3

bridges/bridge_softmix.c

index 1a0b4fc18105b8c9dbfc9ec9f48a1e6767d9ea4d..bf9f014f540332844b0949f8a73ed507b73d8935 100644 (file)
@@ -313,6 +313,7 @@ static int softmix_bridge_create(struct ast_bridge *bridge)
                return -1;
        }
        if (!(softmix_data->timer = ast_timer_open())) {
+               ast_log(AST_LOG_WARNING, "Failed to open timer for softmix bridge\n");
                ao2_ref(softmix_data, -1);
                return -1;
        }