Bug 992948 - Add missing data to the telephony-call-ended systemmessage. r=hsinyi
authorEtienne Segonzac <etienne@segonzac.info>
Thu, 10 Apr 2014 10:01:58 -0400
changeset 177772 c3ef5671229c062b493d976ff615ccfd684d3905
parent 177771 cd99a3cbba9cf2c4c9c0bfdcb0dc8ad1573e857d
child 177773 b63479c34ae79fd4e63b5b032eeff8d5c474c7f9
push id6127
push userryanvm@gmail.com
push dateThu, 10 Apr 2014 14:00:55 +0000
treeherderb2g-inbound@c3ef5671229c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs992948
milestone31.0a1
Bug 992948 - Add missing data to the telephony-call-ended systemmessage. r=hsinyi
dom/telephony/gonk/TelephonyProvider.js
--- a/dom/telephony/gonk/TelephonyProvider.js
+++ b/dom/telephony/gonk/TelephonyProvider.js
@@ -709,16 +709,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);