- move ast_set_state outside of i->lock.
This commit is contained in:
parent
1d6156f52f
commit
5ef8dd4426
|
@ -1393,12 +1393,12 @@ static int pbx_capi_call(struct ast_channel *c, char *idest, int timeout)
|
|||
cc_mutex_unlock(&i->lock);
|
||||
return error;
|
||||
}
|
||||
|
||||
i->state = CAPI_STATE_CONNECTPENDING;
|
||||
cc_mutex_unlock(&i->lock);
|
||||
|
||||
ast_setstate(c, AST_STATE_DIALING);
|
||||
|
||||
/* now we shall return .... the rest has to be done by handle_msg */
|
||||
cc_mutex_unlock(&i->lock);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue