mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 12:18:18 +00:00
OPENZAP-220 fix blocked into read and add cause for a correct hangup
This commit is contained in:
parent
da43bdeb12
commit
7ec7c920d1
@ -1251,6 +1251,8 @@ static ftdm_status_t state_advance(ftdm_channel_t *chan)
|
||||
} else if (caller_data->hangup_cause == PRI_CAUSE_DESTINATION_OUT_OF_ORDER) {
|
||||
/* Can happen when we have a DL link expire or some timer expired */
|
||||
ftdm_set_state_locked(chan, FTDM_CHANNEL_STATE_HANGUP_COMPLETE);
|
||||
} else if (caller_data->hangup_cause == PRI_CAUSE_INVALID_NUMBER_FORMAT) {
|
||||
ftdm_set_state_locked(chan, FTDM_CHANNEL_STATE_HANGUP_COMPLETE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1402,7 +1402,7 @@ static FIO_READ_FUNCTION(zt_read)
|
||||
} else {
|
||||
ftdm_log_chan_msg(ftdmchan, FTDM_LOG_DEBUG, "Skipping one IO read cycle due to DTMF event processing\n");
|
||||
}
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Read error, keep going unless to many errors force us to abort ...*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user