freetdm: ftmod_r2 - map glare cause

This commit is contained in:
Moises Silva 2011-01-12 10:53:38 -05:00
parent 85e107a56e
commit 8a26a6f6d2
1 changed files with 3 additions and 0 deletions

View File

@ -329,6 +329,9 @@ static openr2_call_disconnect_cause_t ftdm_r2_ftdm_cause_to_openr2_cause(ftdm_ch
case FTDM_CAUSE_NORMAL_UNSPECIFIED: case FTDM_CAUSE_NORMAL_UNSPECIFIED:
return OR2_CAUSE_UNSPECIFIED; return OR2_CAUSE_UNSPECIFIED;
case FTDM_CAUSE_REQUESTED_CHAN_UNAVAIL:
return OR2_CAUSE_GLARE;
} }
ftdm_log_chan(fchan, FTDM_LOG_WARNING, "freetdm hangup cause %d mapped to openr2 cause %s\n", ftdm_log_chan(fchan, FTDM_LOG_WARNING, "freetdm hangup cause %d mapped to openr2 cause %s\n",
fchan->caller_data.hangup_cause, openr2_proto_get_disconnect_string(OR2_CAUSE_UNSPECIFIED)); fchan->caller_data.hangup_cause, openr2_proto_get_disconnect_string(OR2_CAUSE_UNSPECIFIED));