Bug 1043165 - Part 1: Add TelephonyCall.disconnectedReason (webidl). r=hsinyi

This commit is contained in:
Szu-Yu Chen [:aknow] 2015-03-26 16:39:39 +08:00
parent 4c0e8a7d06
commit 00e03f89e4

View File

@ -31,6 +31,8 @@ interface TelephonyCall : EventTarget {
readonly attribute DOMError? error;
readonly attribute TelephonyCallDisconnectedReason? disconnectedReason;
readonly attribute TelephonyCallGroup? group;
[NewObject]
@ -53,3 +55,70 @@ interface TelephonyCall : EventTarget {
// Fired whenever the group attribute changes.
attribute EventHandler ongroupchange;
};
enum TelephonyCallDisconnectedReason {
"BadNumber",
"NoRouteToDestination",
"ChannelUnacceptable",
"OperatorDeterminedBarring",
"NormalCallClearing",
"Busy",
"NoUserResponding",
"UserAlertingNoAnswer",
"CallRejected",
"NumberChanged",
"CallRejectedDestinationFeature",
"PreEmption",
"DestinationOutOfOrder",
"InvalidNumberFormat",
"FacilityRejected",
"ResponseToStatusEnquiry",
"Congestion",
"NetworkOutOfOrder",
"NetworkTempFailure",
"SwitchingEquipCongestion",
"AccessInfoDiscarded",
"RequestedChannelNotAvailable",
"ResourceUnavailable",
"QosUnavailable",
"RequestedFacilityNotSubscribed",
"IncomingCallsBarredWithinCug",
"BearerCapabilityNotAuthorized",
"BearerCapabilityNotAvailable",
"BearerNotImplemented",
"ServiceNotAvailable",
"IncomingCallExceeded",
"RequestedFacilityNotImplemented",
"UnrestrictedBearerNotAvailable",
"ServiceNotImplemented",
"InvalidTransactionId",
"NotCugMember",
"IncompatibleDestination",
"InvalidTransitNetworkSelection",
"SemanticallyIncorrectMessage",
"InvalidMandatoryInfo",
"MessageTypeNotImplemented",
"MessageTypeIncompatibleProtocolState",
"InfoElementNotImplemented",
"ConditionalIe",
"MessageIncompatibleProtocolState",
"RecoveryOnTimerExpiry",
"Protocol",
"Interworking",
"Barred",
"FDNBlocked",
"SubscriberUnknown",
"DeviceNotAccepted",
"ModifiedDial",
"CdmaLockedUntilPowerCycle",
"CdmaDrop",
"CdmaIntercept",
"CdmaReorder",
"CdmaSoReject",
"CdmaRetryOrder",
"CdmaAcess",
"CdmaPreempted",
"CdmaNotEmergency",
"CdmaAccessBlocked",
"Unspecified",
};