mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
FS-11824 [sofia-sip,mod_sofia,core] Added cause codes that map to SIP 600,603,604,606,607
This commit is contained in:
committed by
Mike Jerris
parent
552d3d8b02
commit
0a6d87edfe
@@ -340,6 +340,17 @@ static int hangup_cause_to_sip(switch_call_cause_t cause)
|
||||
return 487;
|
||||
case SWITCH_CAUSE_EXCHANGE_ROUTING_ERROR:
|
||||
return 483;
|
||||
/* Custom mappings not part of RFC */
|
||||
case SWITCH_CAUSE_BUSY_EVERYWHERE:
|
||||
return 600;
|
||||
case SWITCH_CAUSE_DECLINE:
|
||||
return 603;
|
||||
case SWITCH_CAUSE_DOES_NOT_EXIST_ANYWHERE:
|
||||
return 604;
|
||||
case SWITCH_CAUSE_NOT_ACCEPTABLE:
|
||||
return 606;
|
||||
case SWITCH_CAUSE_UNWANTED:
|
||||
return 607;
|
||||
default:
|
||||
return 480;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user