mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 17:26:03 +00:00
Merge branch 'arnaldo.ftdm_channel_read_event' of git.sangoma.com:smg_freeswitch into arnaldo.ftdm_channel_read_event
This commit is contained in:
commit
1cad9ed8a9
@ -68,7 +68,7 @@ typedef struct ftdm_r2_call_t {
|
|||||||
int accepted:1;
|
int accepted:1;
|
||||||
int answer_pending:1;
|
int answer_pending:1;
|
||||||
int disconnect_rcvd:1;
|
int disconnect_rcvd:1;
|
||||||
int ftdm_started:1;
|
int ftdm_call_started:1;
|
||||||
int protocol_error:1;
|
int protocol_error:1;
|
||||||
ftdm_channel_state_t chanstate;
|
ftdm_channel_state_t chanstate;
|
||||||
ftdm_size_t dnis_index;
|
ftdm_size_t dnis_index;
|
||||||
@ -357,7 +357,7 @@ static FIO_CHANNEL_OUTGOING_CALL_FUNCTION(r2_outgoing_call)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ft_r2_clean_call(ftdmchan->call_data);
|
ft_r2_clean_call(ftdmchan->call_data);
|
||||||
R2CALL(ftdmchan)->ftdm_started = 1;
|
R2CALL(ftdmchan)->ftdm_call_started = 1;
|
||||||
R2CALL(ftdmchan)->chanstate = FTDM_CHANNEL_STATE_DOWN;
|
R2CALL(ftdmchan)->chanstate = FTDM_CHANNEL_STATE_DOWN;
|
||||||
ftdm_set_state(ftdmchan, FTDM_CHANNEL_STATE_DIALING);
|
ftdm_set_state(ftdmchan, FTDM_CHANNEL_STATE_DIALING);
|
||||||
|
|
||||||
@ -503,7 +503,7 @@ static void ftdm_r2_on_call_disconnect(openr2_chan_t *r2chan, openr2_call_discon
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* if the call has not been started yet we must go to HANGUP right here */
|
/* if the call has not been started yet we must go to HANGUP right here */
|
||||||
if (!R2CALL(ftdmchan)->ftdm_started) {
|
if (!R2CALL(ftdmchan)->ftdm_call_started) {
|
||||||
ftdm_set_state_locked(ftdmchan, FTDM_CHANNEL_STATE_HANGUP);
|
ftdm_set_state_locked(ftdmchan, FTDM_CHANNEL_STATE_HANGUP);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -567,7 +567,7 @@ static void ftdm_r2_on_protocol_error(openr2_chan_t *r2chan, openr2_protocol_err
|
|||||||
R2CALL(ftdmchan)->disconnect_rcvd = 1;
|
R2CALL(ftdmchan)->disconnect_rcvd = 1;
|
||||||
R2CALL(ftdmchan)->protocol_error = 1;
|
R2CALL(ftdmchan)->protocol_error = 1;
|
||||||
|
|
||||||
if (!R2CALL(ftdmchan)->ftdm_started) {
|
if (!R2CALL(ftdmchan)->ftdm_call_started) {
|
||||||
ftdm_set_state(ftdmchan, FTDM_CHANNEL_STATE_HANGUP);
|
ftdm_set_state(ftdmchan, FTDM_CHANNEL_STATE_HANGUP);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1260,7 +1260,7 @@ static int ftdm_r2_state_advance(ftdm_channel_t *ftdmchan)
|
|||||||
ftdm_set_state(ftdmchan, FTDM_CHANNEL_STATE_CANCEL);
|
ftdm_set_state(ftdmchan, FTDM_CHANNEL_STATE_CANCEL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
R2CALL(ftdmchan)->ftdm_started = 1;
|
R2CALL(ftdmchan)->ftdm_call_started = 1;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user