[asterisk-commits] rmudgett: branch 1.8 r369238 - /branches/1.8/main/ccss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 22 16:03:19 CDT 2012


Author: rmudgett
Date: Fri Jun 22 16:03:17 2012
New Revision: 369238

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=369238
Log:
Check if PBX was started for generic CCSS recall.

Modified:
    branches/1.8/main/ccss.c

Modified: branches/1.8/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/ccss.c?view=diff&rev=369238&r1=369237&r2=369238
==============================================================================
--- branches/1.8/main/ccss.c (original)
+++ branches/1.8/main/ccss.c Fri Jun 22 16:03:17 2012
@@ -2594,8 +2594,13 @@
 			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;
 }
 




More information about the asterisk-commits mailing list