Bug 992948 - Add missing data to the telephony-call-ended systemmessage. r=hsinyi, a=lsblakk
authorEtienne Segonzac <etienne@segonzac.info>
Thu, 10 Apr 2014 10:01:58 -0400
changeset 185893 99430f6e5e24a853d57dbb9f5d9bd1fd311c36c7
parent 185892 8fa6a5ec575833335060073f78184f34bcdf8b18
child 185894 2edf0bfa4dd7a53a80d9677984df8fad9fd616ee
push id5806
push userryanvm@gmail.com
push dateThu, 24 Apr 2014 20:03:21 +0000
treeherdermozilla-aurora@973dc530a2fa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi, lsblakk
bugs992948
milestone30.0a2
Bug 992948 - Add missing data to the telephony-call-ended systemmessage. r=hsinyi, a=lsblakk
dom/telephony/gonk/TelephonyProvider.js
--- a/dom/telephony/gonk/TelephonyProvider.js
+++ b/dom/telephony/gonk/TelephonyProvider.js
@@ -706,16 +706,18 @@ TelephonyProvider.prototype = {
   notifyCallDisconnected: function(aClientId, aCall) {
     if (DEBUG) debug("handleCallDisconnected: " + JSON.stringify(aCall));
 
     aCall.state = nsITelephonyProvider.CALL_STATE_DISCONNECTED;
     let duration = ("started" in aCall && typeof aCall.started == "number") ?
       new Date().getTime() - aCall.started : 0;
     let data = {
       number: aCall.number,
+      serviceId: aClientId,
+      emergency: aCall.isEmergency,
       duration: duration,
       direction: aCall.isOutgoing ? "outgoing" : "incoming"
     };
     gSystemMessenger.broadcastMessage("telephony-call-ended", data);
 
     aCall.clientId = aClientId;
     this._updateCallAudioState(aCall, null);