]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Check if PBX was started for generic CCSS recall.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 22 Jun 2012 21:04:25 +0000 (21:04 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 22 Jun 2012 21:04:25 +0000 (21:04 +0000)
........

Merged revisions 369238 from http://svn.asterisk.org/svn/asterisk/branches/1.8

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

main/ccss.c

index 6544ba394b537ecf8ac6f6f09953f97df3c5250a..d012550f917fc20140d7f82c84ac6f59ef3be37a 100644 (file)
@@ -2710,8 +2710,13 @@ static void *generic_recall(void *data)
                        return NULL;
                }
        }
-       ast_cc_agent_recalling(agent->core_id, "Generic agent %s is recalling", agent->device_name);
-       ast_pbx_start(chan);
+       if (ast_pbx_start(chan)) {
+               ast_cc_failed(agent->core_id, "PBX failed to start for %s.", agent->device_name);
+               ast_hangup(chan);
+               return NULL;
+       }
+       ast_cc_agent_recalling(agent->core_id, "Generic agent %s is recalling",
+               agent->device_name);
        return NULL;
 }