mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
fix cause code passthrough
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4061 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1175,7 +1175,6 @@ static switch_status_t sofia_on_execute(switch_core_session_t *session)
|
||||
// map QSIG cause codes to SIP from RFC4497 section 8.4.1
|
||||
static int hangup_cause_to_sip(switch_call_cause_t cause) {
|
||||
switch (cause) {
|
||||
case SWITCH_CAUSE_UNALLOCATED:
|
||||
case SWITCH_CAUSE_NO_ROUTE_TRANSIT_NET:
|
||||
case SWITCH_CAUSE_NO_ROUTE_DESTINATION:
|
||||
return 404;
|
||||
@@ -2334,7 +2333,7 @@ static switch_call_cause_t sip_cause_to_freeswitch(int status) {
|
||||
case 404:
|
||||
case 485:
|
||||
case 604:
|
||||
return SWITCH_CAUSE_UNALLOCATED;
|
||||
return SWITCH_CAUSE_NO_ROUTE_DESTINATION;
|
||||
case 408:
|
||||
case 504:
|
||||
return SWITCH_CAUSE_RECOVERY_ON_TIMER_EXPIRE;
|
||||
|
||||
Reference in New Issue
Block a user