freetdm: added fix for hangup cause sometimes set to 0 during glare

This commit is contained in:
David Yat Sin 2011-01-11 16:20:05 -05:00
parent 10109165b7
commit 45340d8017
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ void sngisdn_process_rel_ind (sngisdn_event_data_t *sngisdn_event)
ftdm_log_chan(ftdmchan, FTDM_LOG_DEBUG, "cause:%d\n", ftdmchan->caller_data.hangup_cause);
} else {
ftdm_log_chan_msg(ftdmchan, FTDM_LOG_WARNING, "RELEASE COMPLETE did not have a cause code\n");
ftdmchan->caller_data.hangup_cause = 0;
ftdmchan->caller_data.hangup_cause = FTDM_CAUSE_REQUESTED_CHAN_UNAVAIL;
}
sngisdn_set_flag(sngisdn_info, FLAG_REMOTE_ABORT);