summaryrefslogtreecommitdiffstats
path: root/voip
Commit message (Collapse)AuthorAgeFilesLines
...
* | am 35d9e770: am 0a6e717f: Handle dialing a SIP call to self.Hung-ying Tyan2010-10-213-1/+40
|\ \ | |/ | | | | | | | | | | Merge commit '35d9e7701eea343d8cdfcd3c990ae74685b299b2' * commit '35d9e7701eea343d8cdfcd3c990ae74685b299b2': Handle dialing a SIP call to self.
| * Handle dialing a SIP call to self.Hung-ying Tyan2010-10-193-1/+40
| | | | | | | | | | | | | | | | | | Reply BUSY HERE response so server may redirect the call to the voice mailbox. http://b/issue?id=3103072 http://b/issue?id=3109479 Change-Id: I81f5dd59ad87298dd9dda87084538ee460eabba8
* | resolved conflicts for merge of 368fdba4 to masterBrad Fitzpatrick2010-10-211-9/+9
|\ \ | |/ | | | | Change-Id: I42b7b433c86a71a5da5db67109f056a280077c9d
| * Reduce logging.Joe Onorato2010-10-191-9/+9
| | | | | | | | | | | | | | | | | | | | Remember, the system and main logs are - Shared resources - Primarily for recording problems - To be used only for large grained events during normal operation Bug: 3104855 Change-Id: I136fbd101917dcbc8ebc3f96f276426b48bde7b7
* | am cd6fe63f: am b4116c09: Fix the incorrect environment variable name for ↵Chung-yih Wang2010-10-191-1/+2
|\ \ | |/ | | | | | | | | | | | | | | the thread pool size. Merge commit 'cd6fe63fdc2e99da11b19a233afd81e2448d0db2' * commit 'cd6fe63fdc2e99da11b19a233afd81e2448d0db2': Fix the incorrect environment variable name for the thread pool size.
| * Fix the incorrect environment variable name for the thread pool size.Chung-yih Wang2010-10-191-1/+2
| | | | | | | | | | bug: http://b/3099715 Change-Id: I531048414f22c8edcd9c4f815c12a0bdd6347640
* | am 085996c4: am 45bd8303: Merge "Uncomment SIP/VOIP feature check in ↵John Huang2010-10-191-6/+0
|\ \ | |/ | | | | | | | | | | | | | | SipManager." into gingerbread Merge commit '085996c411b4d3878dfd97c59bfc4a17da08959b' * commit '085996c411b4d3878dfd97c59bfc4a17da08959b': Uncomment SIP/VOIP feature check in SipManager.
| * Merge "Uncomment SIP/VOIP feature check in SipManager." into gingerbreadJohn Huang2010-10-181-6/+0
| |\
| | * Uncomment SIP/VOIP feature check in SipManager.Hung-ying Tyan2010-10-181-6/+0
| | | | | | | | | | | | | | | | | | http://b/issue?id=2971947 Change-Id: I3afa8eb03c4e347b382213dd388354365f766b2f
* | | am 3e9bcb98: am 382717f3: Merge "Set the thread pool size of NIST sip stack ↵John Huang2010-10-191-0/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | to one." into gingerbread Merge commit '3e9bcb98c4190b18d113e79ead071a86cd7ca480' * commit '3e9bcb98c4190b18d113e79ead071a86cd7ca480': Set the thread pool size of NIST sip stack to one.
| * | Set the thread pool size of NIST sip stack to one.Chung-yih Wang2010-10-181-0/+6
| |/ | | | | | | | | | | | | | | Set the thread pool size to one to fix the out-of-order packets seen in sip service when the device is waken up from sleep. bug:http://b/3099715 Change-Id: Ia169e3fde77488068c369e3345ecf6a6d8ddf792
* | am ebad42d6: am 3fbfee2f: Merge "SipService: add wake lock for incoming ↵Hung-ying Tyan2010-10-163-46/+92
|\ \ | |/ | | | | | | | | | | | | | | INVITE packets." into gingerbread Merge commit 'ebad42d6d35dc0dc07fe89650268453dbdff8a79' * commit 'ebad42d6d35dc0dc07fe89650268453dbdff8a79': SipService: add wake lock for incoming INVITE packets.
| * SipService: add wake lock for incoming INVITE packets.Hung-ying Tyan2010-10-153-46/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | + Keep the wake lock for 500ms. (Some measurements on N1 indicate 160~180ms needed to bring up InCallScreen but since INVITE doesn't come in frequently we can be more generous just to be safe.) + Move MyWakeupLock out of SipService so SipSessionGroup can use it without awkward inter-dependency with SipService. + Add acquire(int timeout) to be used to create the "timed" wake lock. http://b/issue?id=3081828 Change-Id: Iffd1d78d1a5cae9f795252ada75310917095204d
* | am 4f5eb955: am bd57eeaf: SipService: add wake lock for multiple components.Hung-ying Tyan2010-10-152-68/+132
|\ \ | |/ | | | | | | | | | | Merge commit '4f5eb9550ba2cc037c4aa81613574a38a956dd5c' * commit '4f5eb9550ba2cc037c4aa81613574a38a956dd5c': SipService: add wake lock for multiple components.
| * SipService: add wake lock for multiple components.Hung-ying Tyan2010-10-142-68/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Add MyWakeLock to maintain a global wake lock for multiple components. + Use a Set to store components that want to hold the lock. + When the first component enters the set, we grab the global wake lock. + When the set becomes empty, we release the global lock. + In places like no account being opened to receive calls, we reset the wake lock just to be safe from possible leakage. + Make MyExecutor aware of the wake lock. It will grab the wake lock on behalf of the task so that tasks don't need to worry about the lock. + Connectivity receiver is modified to be executed in MyExecutor. + WakeupTimer handler is already protected by AlarmManager's wake lock but all the timeout handlers that register themselves to the WakeupTimer are to be executed in MyExecutor to be protected by the wake lock. + Remove unnecessary code in the Keepalive and registration processes. Since both processes are executed in MyExecutor submitted by the WakeupTimer (as they are timeout handlers registered to the WakeupTimer), they don't need to add themselves to MyExecutor explicitly in their run() callbacks. + Make the keepalive process wait for at most 3 seconds instead of forever for server response. It could cause the wake lock to be held longer than necessary and is a potential cause for ANR. http://b/issue?id=3081828 Related bug: http://b/issue?id=3087153 Change-Id: Idee0ddb837e67daa0d5092c012bb242bd7c18431
* | am f3a935f6: am 3bb10442: Merge "Make SipService listen to WIFI state change ↵Hung-ying Tyan2010-10-151-27/+23
|\ \ | |/ | | | | | | | | | | | | | | events." into gingerbread Merge commit 'f3a935f6aa421110c7b6f36f922223c195f751bc' * commit 'f3a935f6aa421110c7b6f36f922223c195f751bc': Make SipService listen to WIFI state change events.
| * Make SipService listen to WIFI state change events.Hung-ying Tyan2010-10-131-27/+23
| | | | | | | | | | | | | | | | | | | | | | + Grab a WIFI lock if any account is opened to receive calls and WIFI is enabled + Release the WIFI lock if no account is opened to receive calls or WIFI is disabled + Remove screen on/off event receiver http://b/issue?id=3077454 Change-Id: Ifdf60a850bcf4106c75ec1e7563b26d8b33d7e92
* | am 8a362186: am f1b1eec9: Merge "SipService: mScreenOn is flipped to wrong ↵Hung-ying Tyan2010-10-141-2/+2
|\ \ | |/ | | | | | | | | | | | | | | value." into gingerbread Merge commit '8a3621866d8a04b0a229eb5765ea9799e68fd90c' * commit '8a3621866d8a04b0a229eb5765ea9799e68fd90c': SipService: mScreenOn is flipped to wrong value.
| * Merge "SipService: mScreenOn is flipped to wrong value." into gingerbreadHung-ying Tyan2010-10-121-2/+2
| |\
| | * SipService: mScreenOn is flipped to wrong value.Hung-ying Tyan2010-10-131-2/+2
| | | | | | | | | | | | | | | | | | http://b/issue?id=3077454 Change-Id: I23b6f70730074689b939e449c2c202ce8ffb586f
* | | am 06e55977: am 907f6f1d: Merge "Fix SipSessionGroup from throwing ↵Hung-ying Tyan2010-10-141-1/+7
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | ConcurrentModificationException" into gingerbread Merge commit '06e559779edd93a83100824b36c9bf67a27db178' * commit '06e559779edd93a83100824b36c9bf67a27db178': Fix SipSessionGroup from throwing ConcurrentModificationException
| * | Fix SipSessionGroup from throwing ConcurrentModificationExceptionHung-ying Tyan2010-10-121-1/+7
| |/ | | | | | | | | | | http://b/issue?id=3087256 Change-Id: I67df64105db7c1295649f1f3ce77f99025ce3d44
* | am c74d3917: am ece7e11b: Merge "SipService: fix a missing switch-case ↵Hung-ying Tyan2010-10-131-0/+1
|\ \ | |/ | | | | | | | | | | | | | | break." into gingerbread Merge commit 'c74d39173e1071dbffe713e008b95784ac4312bc' * commit 'c74d39173e1071dbffe713e008b95784ac4312bc': SipService: fix a missing switch-case break.
| * SipService: fix a missing switch-case break.Hung-ying Tyan2010-10-121-0/+1
| | | | | | | | Change-Id: I638eecd8000293d4cb37b3595c02ca33df4924eb
* | am df08c2f0: am 692cac9f: SipHelper: add debug log for challenge responses.Hung-ying Tyan2010-10-111-0/+2
|\ \ | |/ | | | | | | | | | | Merge commit 'df08c2f03e7cf7be7002d34efe8e4e8d24e406de' * commit 'df08c2f03e7cf7be7002d34efe8e4e8d24e406de': SipHelper: add debug log for challenge responses.
| * SipHelper: add debug log for challenge responses.Hung-ying Tyan2010-10-111-0/+2
| | | | | | | | Change-Id: If0143a0f076ef30b1b8998e477df933923bfa7b1
* | am 833db408: am dc2e5208: Merge "Do not release the wifi lock if the screen ↵Chung-yih Wang2010-10-111-1/+21
|\ \ | |/ | | | | | | | | | | | | | | is off." into gingerbread Merge commit '833db40866ebf27be33aa387d08a2cb0b9a4246d' * commit '833db40866ebf27be33aa387d08a2cb0b9a4246d': Do not release the wifi lock if the screen is off.
| * Do not release the wifi lock if the screen is off.Chung-yih Wang2010-10-091-1/+21
| | | | | | | | | | | | | | We need to be able to receive calls if the device is able to reassociate with any AP later on. Change-Id: Ib7aafb98386bf250ed9b5ec0a5b519594efa1649
* | am 77880ae4: am 44b7ef54: Merge "SipService: add permission check for using ↵Chung-yih Wang2010-10-101-4/+21
|\ \ | |/ | | | | | | | | | | | | | | API" into gingerbread Merge commit '77880ae4187d92506848249585687fc9d0c0dd25' * commit '77880ae4187d92506848249585687fc9d0c0dd25': SipService: add permission check for using API
| * SipService: add permission check for using APIHung-ying Tyan2010-10-081-4/+21
| | | | | | | | Change-Id: Ifd85ba07f1b913011cb3e80e5027c67bfe3db280
* | am ea445758: am 08faac3c: Unhide SIP API.Hung-ying Tyan2010-10-107-144/+208
|\ \ | |/ | | | | | | | | | | Merge commit 'ea445758efba6b728d5e597402e9d9538f3ef451' * commit 'ea445758efba6b728d5e597402e9d9538f3ef451': Unhide SIP API.
| * Unhide SIP API.Hung-ying Tyan2010-10-087-144/+208
| | | | | | | | Change-Id: I09468e3149a242a3b1e085ad220eb74f84ac6c68
* | am 4b7ff734: am 4483232f: Suppress harder for echo without affecting the ↵Chung-yih Wang2010-10-101-1/+2
|\ \ | |/ | | | | | | | | | | | | | | volume of real voice. Merge commit '4b7ff734611666a68471c97fabb6f516efab25cd' * commit '4b7ff734611666a68471c97fabb6f516efab25cd': Suppress harder for echo without affecting the volume of real voice.
| * Suppress harder for echo without affecting the volume of real voice.Chung-yih Wang2010-10-081-1/+2
| | | | | | | | Change-Id: Ia3ce98eedd487a9e879ff0a4907b8c15b5707429
* | am 841d6ff9: am 62ec9834: Merge "Make SipService broadcast SIP_SERVICE_UP ↵Hung-ying Tyan2010-10-082-0/+8
|\ \ | |/ | | | | | | | | | | | | | | when it\'s up." into gingerbread Merge commit '841d6ff9e05daccbc60daa1618a27e9db3a4fb32' * commit '841d6ff9e05daccbc60daa1618a27e9db3a4fb32': Make SipService broadcast SIP_SERVICE_UP when it's up.
| * Make SipService broadcast SIP_SERVICE_UP when it's up.Hung-ying Tyan2010-10-072-0/+8
| | | | | | | | | | | | http://b/issue?id=3062010 Change-Id: I13419fa3a8fdfba1977260f703e4dcaa42a6606c
* | am 909a974f: am 16c29bd7: Merge "SIP: Fix busy authentication loop." into ↵Hung-ying Tyan2010-10-082-35/+30
|\ \ | |/ | | | | | | | | | | | | | | gingerbread Merge commit '909a974f8e5df4b6fc2cf8de6c64633406095c6e' * commit '909a974f8e5df4b6fc2cf8de6c64633406095c6e': SIP: Fix busy authentication loop.
| * Merge "SIP: Fix busy authentication loop." into gingerbreadHung-ying Tyan2010-10-062-35/+30
| |\
| | * SIP: Fix busy authentication loop.Hung-ying Tyan2010-10-072-35/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a retry count and give up after two attempts. Also stop auto registration when server is unreachable. And rename onError() to restartLater() for better readability. http://b/issue?id=3066573 Change-Id: Icfa65c58546a1e2bf8e59e29584a3926c53c479b
* | | resolved conflicts for merge of 4790a2e2 to masterChung-yih Wang2010-10-092-1/+2
|\ \ \ | |/ / | | | | | | Change-Id: I659ccd9a51e24f217f715178a98eaf6592c258d7
| * | Misc fixes for sim-eng build.Chung-yih Wang2010-10-062-1/+2
| |/ | | | | | | Change-Id: I0c5dac1097abc924e66dab92d7d03d5051b4fd29
* | am a785a59c: am 718e0033: Merge "SIP: add SERVER_UNREACHABLE error code." ↵Hung-ying Tyan2010-10-062-2/+7
|\ \ | |/ | | | | | | | | | | | | | | into gingerbread Merge commit 'a785a59c831256f274627f8f8eb77f9d54508916' * commit 'a785a59c831256f274627f8f8eb77f9d54508916': SIP: add SERVER_UNREACHABLE error code.
| * Merge "SIP: add SERVER_UNREACHABLE error code." into gingerbreadHung-ying Tyan2010-10-042-2/+7
| |\
| | * SIP: add SERVER_UNREACHABLE error code.Hung-ying Tyan2010-10-052-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let SipSession return it when UnknownHostException is caught. Add DisconnectCause.SERVER_UNREACHABLE in Connection and have SipPhone report it when receiving SERVER_UNREACHABLE from SipSession. http://b/issue?id=3061691 Change-Id: I944328ba3ee30c0a9386e89b5c4696d4d9bde000
* | | am 3cb2d3be: am 1862af57: Merge "SipService: supply PendingIntent when open ↵Hung-ying Tyan2010-10-063-64/+74
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | a profile." into gingerbread Merge commit '3cb2d3be6cb501c77c7a5765d954363125857cca' * commit '3cb2d3be6cb501c77c7a5765d954363125857cca': SipService: supply PendingIntent when open a profile.
| * | SipService: supply PendingIntent when open a profile.Hung-ying Tyan2010-10-053-64/+74
| |/ | | | | | | | | | | | | | | | | | | | | 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
* | Fix simulator build, part 1/nMarco Nelissen2010-10-062-1/+2
| | | | | | | | Change-Id: If0a42ab262ee6aa6381ce95bd49baf232adb01c5
* | am fbd5a59d: am 4fc04f16: Merge "RTP: Add a baseline echo suppressor." into ↵Chia-chi Yeh2010-10-044-2/+228
|\ \ | |/ | | | | | | | | | | | | | | gingerbread Merge commit 'fbd5a59da9a455bc1c54a80bd5b3afeb426a8e3d' * commit 'fbd5a59da9a455bc1c54a80bd5b3afeb426a8e3d': RTP: Add a baseline echo suppressor.
| * Merge "RTP: Add a baseline echo suppressor." into gingerbreadChia-chi Yeh2010-10-044-2/+228
| |\
| | * RTP: Add a baseline echo suppressor.Chia-chi Yeh2010-10-054-2/+228
| | | | | | | | | | | | Change-Id: I832f1f572f141fd928afe671b12d0b59f2a8e0b1