mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 13:58:38 +00:00
Merge "res_fax: Handle fax gateway being started more than once."
This commit is contained in:
@@ -2914,6 +2914,11 @@ static int fax_gateway_start(struct fax_gateway *gateway, struct ast_fax_session
|
|||||||
struct ast_fax_session *s;
|
struct ast_fax_session *s;
|
||||||
int start_res;
|
int start_res;
|
||||||
|
|
||||||
|
/* if the fax gateway is already started then do nothing */
|
||||||
|
if (gateway->s && gateway->s->state != AST_FAX_STATE_RESERVED) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* create the FAX session */
|
/* create the FAX session */
|
||||||
if (!(s = fax_session_new(details, chan, gateway->s, gateway->token))) {
|
if (!(s = fax_session_new(details, chan, gateway->s, gateway->token))) {
|
||||||
gateway->token = NULL;
|
gateway->token = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user