summaryrefslogtreecommitdiffstats
path: root/voip
diff options
context:
space:
mode:
authorHung-ying Tyan <tyanh@google.com>2011-07-01 19:43:00 +0800
committerHung-ying Tyan <tyanh@google.com>2011-07-01 20:26:48 +0800
commit8ba4566c01c5848b378d1d86e9041730f5b5a13f (patch)
tree0370a20b5337e6fd5913fea7406116226fc64dd2 /voip
parent54fa6196b0058933a68cffde17b4413b098630d3 (diff)
downloadframeworks_base-8ba4566c01c5848b378d1d86e9041730f5b5a13f.zip
frameworks_base-8ba4566c01c5848b378d1d86e9041730f5b5a13f.tar.gz
frameworks_base-8ba4566c01c5848b378d1d86e9041730f5b5a13f.tar.bz2
Do not keep alive for re-established call.
Only need to keep alive for caller in a newly established call. Change-Id: I36f9d9499c806c8701e3b78555de399b00593be8
Diffstat (limited to 'voip')
-rw-r--r--voip/java/com/android/server/sip/SipSessionGroup.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/voip/java/com/android/server/sip/SipSessionGroup.java b/voip/java/com/android/server/sip/SipSessionGroup.java
index 047eb8d..4e44402 100644
--- a/voip/java/com/android/server/sip/SipSessionGroup.java
+++ b/voip/java/com/android/server/sip/SipSessionGroup.java
@@ -1223,9 +1223,9 @@ class SipSessionGroup implements SipListener {
private void establishCall(boolean enableKeepAlive) {
mState = SipSession.State.IN_CALL;
- mInCall = true;
cancelSessionTimer();
- if (enableKeepAlive) enableKeepAlive();
+ if (!mInCall && enableKeepAlive) enableKeepAlive();
+ mInCall = true;
mProxy.onCallEstablished(this, mPeerSessionDescription);
}