........
Merged revisions 369238 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 369239 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369240
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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;
}