ThedefaultcodeisNORMAL_CLEARING(ifyoudonotspecifyone)Thecodesaredocumentedinsrc/switch_channel.candSIPProtocolMessagesIEstandsforInformationElementQ.850toSIPCodeTableThefollowingtabledescribesthemappingsimplementedbyFreeSwitch(seemod_sofia.c:hangup_cause_to_sip).Unspecifiedcausescodes(novalueintheSIPEquiv.columninthetable)aretranslatedtoSIP480TemporarilyUnavailablebyFreeSwitch.Thetablealsocontainsnon-standardcodesabove127(ISUPandISDNonlyspecifycodesupto127).ThesecodesareusedinternallytoFreeSwitchtoindicateotherstates.(ThesecodesdonotmapdirectlytoSIPerrorcodeseither.)ThecompletelistofSWITCH_CAUSE_codes(switch_call_cause_t)isdefinedininclude/switch_types.h.SeeITU-TQ.850standardforaformaldefinitionofstandardtelephonydisconnectcausecodesforISDN,andthemappingbetweenQ.931(DSSS1)andISUPcodes.SeeITUQ.1912.5foraformaldefinitionofinteroperabilitybetweenISUPandSIP,especiallysection6.11whichspecifiestheReasonheaderandgivesthemappingofthedisconnectcausecodesbetweenISUPandSIP.AnothersetofmappingsaretheQ.SIG/SIPmappingsfromRFC4497section8.4.1.(Q.SIGisoneofmanyextensionstoQ.931usedforPBX-to-PBXsignallingonprivatelinks.)InpracticeitappearsthatFreeSwitchimplementsneitherQ.1912.5norRFC4497.ITU-TQ.850CodeSIPEquiv.EnumerationCauseDescription0UNSPECIFIEDUnspecified.Noothercausecodesapplicable.Thisisusuallygivenbytherouterwhennoneoftheothercodesapply.Thiscauseusuallyoccursinthesametypeofsituationsascause1,cause88,andcause100.1404UNALLOCATED_NUMBERUnallocated(unassigned)number[Q.850value1]Thiscauseindicatesthatthecalledpartycannotbereachedbecause,althoughthecalledpartynumberisinavalidformat,itisnotcurrentlyallocated(assigned).2404NO_ROUTE_TRANSIT_NETHangup_CausesQ.850toSIPCodeTable1Noroutetospecifiedtransitnetwork(nationaluse)[Q.850]Thiscauseindicatesthattheequipmentsendingthiscausehasreceivedarequesttoroutethecallthroughaparticulartransitnetwork,whichitdoesnotrecognize.Theequipmentsendingthiscausedoesnotrecognizethetransitnetworkeitherbecausethetransitnetworkdoesnotexistorbecausethatparticulartransitnetwork,whileitdoesexist,doesnotservetheequipmentwhichissendingthiscause.3404NO_ROUTE_DESTINATIONNoroutetodestination[Q.850]Thiscauseindicatesthatthecalledpartycannotbereachedbecausethenetworkthroughwhichthecallhasbeenrouteddoesnotservethedestinationdesired.Thiscauseissupportedonanetworkdependentbasis.6CHANNEL_UNACCEPTABLEchannelunacceptable[Q.850]Thiscauseindicatesthatthechannelmostrecentlyidentifiedisnotacceptabletothesendingentityforuseinthiscall.7CALL_AWARDED_DELIVEREDcallawarded,beingdeliveredinanestablishedchannel[Q.850]Thiscauseindicatesthattheuserhasbeenawardedtheincomingcall,andthattheincomingcallisbeingconnectedtoachannelalreadyestablishedtothatuserforsimilarcalls(e.g.packet-modex.25virtualcalls).16NORMAL_CLEARINGnormalcallclearing[Q.850]Thiscauseindicatesthatthecallisbeingclearedbecauseoneoftheusersinvolvedinthecallhasrequestedthatthecallbecleared.Undernormalsituations,thesourceofthiscauseisnotthenetwork.17486USER_BUSYuserbusy[Q.850]ThiscauseisusedtoindicatethatthecalledpartyisunabletoacceptanothercallbecauseHangup_CausesQ.850toSIPCodeTable2theuserbusyconditionhasbeenencountered.Thiscausevaluemaybegeneratedbythecalleduserorbythenetwork.Inthecaseofuserdetermineduserbusyitisnotedthattheuserequipmentiscompatiblewiththecall.18408NO_USER_RESPONSEnouserresponding[Q.850]Thiscauseisusedwhenacalledpartydoesnotrespondtoacallestablishmentmessagewitheitheranalertingorconnectindicationwithintheprescribedperiodoftimeallocated.19480NO_ANSWERnoanswerfromuser(useralerted)[Q.850]Thiscauseisusedwhenthecalledpartyhasbeenalertedbutdoesnotrespondwithaconnectindicationwithinaprescribedperiodoftime.Note-ThiscauseisnotnecessarilygeneratedbyQ.931proceduresbutmaybegeneratedbyinternalnetworktimers.20480SUBSCRIBER_ABSENTsubscriberabsent[Q.850]Thiscausevalueisusedwhenamobilestationhasloggedoff,radiocontactisnotobtainedwithamobilestationorifapersonaltelecommunicationuseristemporarilynotaddressableatanyuser-networkinterface.SofiaSIPwillnormallyraiseUSER_NOT_REGISTEREDinsuchsituations.21603CALL_REJECTEDcallrejected[Q.850]Thiscauseindicatesthattheequipmentsendingthiscausedoesnotwishtoacceptthiscall,althoughitcouldhaveacceptedthecallbecausetheequipmentsendingthiscauseisneitherbusynorincompatible.Thenetworkmayalsogeneratethiscause,indicatingthatthecallwasclearedduetoaHangup_CausesQ.850toSIPCodeTable3supplementaryserviceconstraint.Thediagnosticfieldmaycontainadditionalinformationaboutthesupplementaryserviceandreasonforrejection.22410NUMBER_CHANGEDnumberchanged[Q.850]Thiscauseisreturnedtoacallingpartywhenthecalledpartynumberindicatedbythecallingpartyisnolongerassigned,Thenewcalledpartynumbermayoptionallybeincludedinthediagnosticfield.Ifanetworkdoesnotsupportthiscause,causeno:1,unallocated(unassigned)numbershallbeused.23410REDIRECTION_TO_NEW_DESTINATIONThiscauseisusedbyageneralISUPprotocolmechanismthatcanbeinvokedbyanexchangethatdecidesthatthecallshouldbeset-uptoadifferentcallednumber.Suchanexchangecaninvokearedirectionmechanism,byuseofthiscausevalue,torequestap