Merge "res_fax: Handle fax gateway being started more than once." into 15

15
Joshua Colp 8 years ago committed by Gerrit Code Review
commit 304859d151

@ -2912,6 +2912,11 @@ static int fax_gateway_start(struct fax_gateway *gateway, struct ast_fax_session
struct ast_fax_session *s;
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 */
if (!(s = fax_session_new(details, chan, gateway->s, gateway->token))) {
gateway->token = NULL;

Loading…
Cancel
Save