B2G/gecko/dom/system/gonk/RadioInterfaceLayer.js
/**
   * Handle call disconnects by updating our current state and the audio system.
   */
Handle call disconnects by updating our current state and the audio system.
Handle call disconnects by updating our current state and the audio system .
function handleCallDisconnected(call) {
    debug("handleCallDisconnected: " + JSON.stringify(call));
    call.state = nsIRadioInterfaceLayer.CALL_STATE_DISCONNECTED;
    let duration = ("started" in call && typeof call.started == "number") ?
      new Date().getTime() - call.started : 0;
    let data = {
      number: call.number,
      duration: duration,
      direction: call.isOutgoing ? "outgoing" : "incoming"
    };
    gSystemMessenger.broadcastMessage("telephony-call-ended", data);
    this.updateCallAudioState(call);
    this._sendTargetMessage("telephony", "RIL:CallStateChanged", call);
  }
function handleCallDisconnected ( call ) { debug ( "handleCallDisconnected: " + JSON . stringify ( call ) ) ; call . state = nsIRadioInterfaceLayer . CALL_STATE_DISCONNECTED ; let duration = ( "started" in call && typeof call . started == "number" ) ? new Date ( ) . getTime ( ) - call . started : 0 ; let data = { number : call . number , duration : duration , direction : call . isOutgoing ? "outgoing" : "incoming" } ; gSystemMessenger . broadcastMessage ( "telephony-call-ended" , data ) ; this . updateCallAudioState ( call ) ; this . _sendTargetMessage ( "telephony" , "RIL:CallStateChanged" , call ) ; }
Handle call disconnects by updating our current state and the audio system.
Handle call disconnects by updating our current state and the audio system .