mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
Check if PBX was started for generic CCSS recall.
........ 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
This commit is contained in:
@@ -2744,8 +2744,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user