History log of /frameworks/base/voip/java/android/net/sip/SipManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
25ccbb97ffd3298caede635f29445073e845cfc3 28-Jul-2011 Masahiko Endo <masahiko.endo@gmail.com> Prevent NullPointerException cases while using SipService.

Some SipService methods may return null, in such cases like no Wi-Fi
connection. Added minimum check to prevent NullPointerExceptions.

Change-Id: Ia7fae57ee893f2564cbfdedb6dc614938ab60ff7
Signed-off-by: Masahiko Endo <masahiko.endo@gmail.com>
/frameworks/base/voip/java/android/net/sip/SipManager.java
5bd3782f244212cd8ef51bf9f3578869b08b4e18 20-Dec-2010 Hung-ying Tyan <tyanh@google.com> Check if VoIP API is supported in SipManager.

This is to make SipManager.isVoipSupported() effective.
Also add NPE check now that we may return null SipAudioCall when VOIP is not
supported.

Bug: 3251016

Change-Id: Icd551123499f55eef190743b90980922893c4a13
/frameworks/base/voip/java/android/net/sip/SipManager.java
8d1b2a17d9935819ec96f1b5fca0e9945f564eaa 03-Nov-2010 Hung-ying Tyan <tyanh@google.com> Throw proper exceptions in SipManager

instead of silently returning null and causing NPE in applications as returning
null is not documented in the javadoc.

Add connection to the connection list in SipCall after dial() succeeds so that
we don't need to clean up if it fails. The original code will cause the failed
connection to continue to live in the SipCall and in next dial() attempt, a new
connection is created and the in-call screen sees two connections in the call
and thus shows conference call UI.

Bug: 3157234, 3157387
Change-Id: Iabc3235f781c4f1e09384a67ad56b09ad2c12e5e
/frameworks/base/voip/java/android/net/sip/SipManager.java
02b1d685cc287d7c53141872b3d80be4ee5dd59e 22-Oct-2010 Scott Main <smain@google.com> docs: revise javadocs for sip
add a package description, revise class descriptions and edit some method docs

Change-Id: Ice969a99c830349674c65d99e4b7a6f1d2f24a7e
/frameworks/base/voip/java/android/net/sip/SipManager.java
e87b644402642bad7147f915849bfa0eadaea446 18-Oct-2010 Hung-ying Tyan <tyanh@google.com> Add permission requirements to SipAudioCall and SipManager javadoc.

Bug: 3116259

Change-Id: I00a033794e9d3e1c2d2ccfe4e612cd50003ec2ee
/frameworks/base/voip/java/android/net/sip/SipManager.java
9b449e5606786f7c197679f8f9d25985308bfb72 20-Oct-2010 Hung-ying Tyan <tyanh@google.com> Remove ringtone API from SipAudioCall.

(watch out auto-merge conflict for SipAudioCall).

Bug: 3113033, related CL: https://android-git/g/#change,75185

Change-Id: Ib48d3b990e229e0b341e47e10e76934e1a50d10f
/frameworks/base/voip/java/android/net/sip/SipManager.java
a0cdfbf5b74a92611789b7ec08a84274b9011021 18-Oct-2010 Hung-ying Tyan <tyanh@google.com> Uncomment SIP/VOIP feature check in SipManager.

http://b/issue?id=2971947

Change-Id: I3afa8eb03c4e347b382213dd388354365f766b2f
/frameworks/base/voip/java/android/net/sip/SipManager.java
08faac3c26e12863858e1534985dd950193f755f 15-Sep-2010 Hung-ying Tyan <tyanh@google.com> Unhide SIP API.

Change-Id: I09468e3149a242a3b1e085ad220eb74f84ac6c68
/frameworks/base/voip/java/android/net/sip/SipManager.java
9db99a4dc10ac0d5d3751f03ea51c0fed217d2f8 07-Oct-2010 Hung-ying Tyan <tyanh@google.com> Make SipService broadcast SIP_SERVICE_UP when it's up.

http://b/issue?id=3062010

Change-Id: I13419fa3a8fdfba1977260f703e4dcaa42a6606c
/frameworks/base/voip/java/android/net/sip/SipManager.java
323d3671ac813df8dd173f3f4d6cb681ee29f740 05-Oct-2010 Hung-ying Tyan <tyanh@google.com> SipService: supply PendingIntent when open a profile.

The SipService used to take an action string and broadcasts an intent with
that action string when an incoming call is received. The design is not safe
(as the intent may be sniffed) and inflexible (can only received by
BroadcastReceiver). Now we use PendingIntent to fix all these.

Companion CL: https://android-git.corp.google.com/g/#change,71800

Change-Id: Id12e5c1cf9321edafb171494932cd936eae10b6e
/frameworks/base/voip/java/android/net/sip/SipManager.java
9ea96c6cade1f25d4d77dcbd24854df431548b36 03-Oct-2010 Hung-ying Tyan <tyanh@google.com> SIP: minor fixes.

+ Log error instead of crashing app process in SipManager's ListenerRelay.
+ Terminate dialog and transaction in SipSessionGroup.reset().
+ Remove redundant reset() in SipSessionGroup.

Change-Id: Ifbf29d2c9607ffe1a1a50b0c131ee3a4e81a0d0e
/frameworks/base/voip/java/android/net/sip/SipManager.java
9e1d308e993d451882456e44cfaacae63df7a496 30-Sep-2010 Hung-ying Tyan <tyanh@google.com> Add uri field to SipManager.ListenerRelay

in case mSession is not available.

Change-Id: Ifee2c129e48aa1177f648f176413ab6aa5606770
/frameworks/base/voip/java/android/net/sip/SipManager.java
fb3a98b1d8d0ad040980d509c4c5341928b9460b 30-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: misc fixes.

+ Fix keepalive timer event leak due to the race between stopping timer and
the async'ed timeout handler
+ SipSessionImpl: set state before handling an event to ensure we get correct
state when some error occurs during handling the event.
+ Fix potential NPE in SipManager.ListenerRelay.getUri().

Change-Id: I021ee34f83059fd4fbb64b30bea427a5462aa51b
/frameworks/base/voip/java/android/net/sip/SipManager.java
3a4197e642e9c70f1fe00c2cba30f0f957d36bfc 24-Sep-2010 Hung-ying Tyan <tyanh@google.com> SipAudioCall: remove SipManager dependency.

Change-Id: I2dc8bf427e52f64529ee0e0261362b975a8917c6
/frameworks/base/voip/java/android/net/sip/SipManager.java
84a357bb6a8005e1c5e924e96a8ecf310e77c47c 15-Sep-2010 Hung-ying Tyan <tyanh@google.com> Refactoring SIP classes to get ready for API review.

+ replace SipAudioCall and its Listener interfaces with real implementations,
+ remove SipAudioCallImpl.java, most of it is has become part of SipAudioCall,
+ add SipSession and its Listener classes to wrap ISipSession and ISipSessionListener,
+ move SipSessionState to SipSession.State,
+ make SipManager keep context and remove the context argument from many methods of its,
+ rename SipManager.getInstance() to newInstance(),
+ rename constant names for action strings and extra keys to follow conventions,
+ set thread names for debugging purpose.

Change-Id: Ie1790dc0e8f49c06c7fc80d33fec0f673a9c3044
/frameworks/base/voip/java/android/net/sip/SipManager.java
97963794af1e18674dd111e3ad344d90b16c922c 17-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: convert enum to static final int.

Converts SipErrorCode and SipSessionState.

Change-Id: Iee3a465649ea89d395b2336bbd673c25113e5f93
/frameworks/base/voip/java/android/net/sip/SipManager.java
c4b87477c076d61062950becc132b7483e3fb198 19-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: add config flag for wifi-only configuration.

http://b/issue?id=2994029

Change-Id: I328da9b0f8b70d660dbcefffdac8250341792101
/frameworks/base/voip/java/android/net/sip/SipManager.java
9352cf1a4d46492fc48a20f7d825a9bcb6e8b365 16-Sep-2010 Hung-ying Tyan <tyanh@google.com> Add timer to SIP session creation process.

+ add timer parameter to ISipSession.make/changeCall(),
+ add timer paramter to SipAudioCall.make/answer/hold/continueCall()'s,
+ add timer parameter to SipManager.makeAudioCall(),
+ modify implementation in SipSessionGroup, SipAudioCallImpl accordingly,
+ make SipPhone to use it with 8-second timeout.

http://b/issue?id=2994748

Change-Id: I661a887e5810087ddc5e2318335e2fa427f80ec6
/frameworks/base/voip/java/android/net/sip/SipManager.java
286bb5a00bdb9f0cb0815aef441ec72f231c84ea 14-Sep-2010 Hung-ying Tyan <tyanh@google.com> Fix links in SIP API javadoc.

Change-Id: I839280fe18502bb576f6e9c9a7948077c02fa570
/frameworks/base/voip/java/android/net/sip/SipManager.java
99bf4e45c4566172189735b34b368b76660ca57a 14-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: remove dependency on javax.sip

and change errorCodeString to errorCode in
SipRegistrationListener.onRegistrationFailed().

Change-Id: Id9618f5a4b0effaed04f8b0dc60347499d9e4501
/frameworks/base/voip/java/android/net/sip/SipManager.java
25b52a2f97df112c2836972d0b6d9a4c7a9c4a4e 13-Sep-2010 Hung-ying Tyan <tyanh@google.com> SIP: remove dependency on javax.sip.SipException.

Change-Id: I77d289bef1b5e7f1ec0c0408d0bbf96c21085cd7
/frameworks/base/voip/java/android/net/sip/SipManager.java
643fce978152c6c5ded316a8c9de6531b7d4cee7 03-Sep-2010 Hung-ying Tyan <tyanh@google.com> SipManager: always return true for SIP API and VOIP support query.

Change-Id: I397a804e0aa598aee77a8ce28ada1b11e10fbaea
http://b/issue?id=2972054
/frameworks/base/voip/java/android/net/sip/SipManager.java
95b15c35608fe3ea679c8a478c6cbd841623371e 02-Sep-2010 Chia-chi Yeh <chiachi@android.com> SipService: reduce the usage of javax.sdp.*.

After this change, SipAudioCallImpl is the only place still using it.

Change-Id: I5693bffa54f9e19cbfa70b45dfcf40fba04dedbb
/frameworks/base/voip/java/android/net/sip/SipManager.java
3424c02e6b931a8bbd651ae75217bebd008b2605 27-Aug-2010 Hung-ying Tyan <tyanh@google.com> Add software features for SIP and VOIP

and block SipService creation and SIP API if the feature is not available.

Change-Id: Icf780af1ac20dda4d8180cea3e5b20e21a8350bc
/frameworks/base/voip/java/android/net/sip/SipManager.java
8e63ddb4c78dc4453d64ea6e94c109db703185e4 09-Aug-2010 Hung-ying Tyan <tyanh@google.com> SIP: clean up unused class and fields.

Change-Id: I79ed7fb324fea9a52946340055b5ea1d389a926a
/frameworks/base/voip/java/android/net/sip/SipManager.java
cde66df44240cfe5a7bec12ac52464c3bf26c14f 05-Aug-2010 Chung-yih Wang <cywang@google.com> Revert "Move SIP telephony related codes to framework."

This reverts commit b631dcf3eb449ddec756bea330f4e70b996ffb9e.
/frameworks/base/voip/java/android/net/sip/SipManager.java
b631dcf3eb449ddec756bea330f4e70b996ffb9e 05-Aug-2010 Chung-yih Wang <cywang@google.com> Move SIP telephony related codes to framework.

+ hardcode the sip service for build dependency.

Change-Id: Ib0e9717c9b87eb6e06ffa3a7b01ae31184de61bb
/frameworks/base/voip/java/android/net/sip/SipManager.java
363c2ab82cca4f095e9e0c8465e28f6d27a24bf8 05-Aug-2010 Chung-yih Wang <cywang@google.com> Move the sip related codes to framework.

Change-Id: Ib81dadc39b73325c8438f078c7251857a83834fe
/frameworks/base/voip/java/android/net/sip/SipManager.java