summaryrefslogtreecommitdiffstats
path: root/voip/java
Commit message (Collapse)AuthorAgeFilesLines
* Make SimpleSessionDescription locale safeJohan Redestig2012-08-291-1/+2
| | | | | | | Explicitly use Locale.US in SimpleSessionDescription to avoid unexpected results in some locales. Change-Id: Idb4a36a9e332d302e1b9b940355917c0f738e076
* docs: fix several linksScott Main2012-06-221-1/+1
| | | | Change-Id: I89d9fd64dc22c90680bb05415cc966c255165af9
* Merge "SIP: push the logic of finding local address down to SipSessionGroup."Chia-chi Yeh2012-04-042-89/+60
|\
| * SIP: push the logic of finding local address down to SipSessionGroup.Chia-chi Yeh2012-04-042-89/+60
| | | | | | | | | | | | | | | | This allows different accounts binding on different IP addresses, such as one on IPv4 and another on IPv6. Bug: 4169057 Change-Id: I0bb36669394c281330091673fa338adea8f782cd
* | RTP: refactor a little bit and fix few minor bugs.Chia-chi Yeh2012-03-303-21/+24
|/ | | | Change-Id: I063644507f26996ded462972afcb550a4528dac8
* RTP: add a null-check in AudioStream.setDtmfType().Chia-chi Yeh2012-03-271-1/+1
| | | | Change-Id: I52cbdea48affae3747942940451f4fd5ca47030f
* SipService: grab Wi-Fi lock only when necessary.Chia-chi Yeh2011-12-281-46/+41
| | | | Change-Id: Ie432049156e70b6748426b959b653f21bfc504a1
* docs: Add developer guide cross-references, Project ACRE, round 4Joe Fernandez2011-12-224-3/+30
| | | | Change-Id: I1b43414aaec8ea217b39a0d780c80a25409d0991
* SIP: turn off verbose logs.Chia-chi Yeh2011-11-184-40/+47
| | | | | Bug: 5616713 Change-Id: Iaf2e6878731d10d7f4f2a7cd8af71f4517780642
* SipService: handle connectivity changes correctly.Chia-chi Yeh2011-09-301-274/+89
| | | | | | | | | | This patch assumes that for the same network type, there MUST be a DISCONNECTED between two CONNECTEDs. Also removes the Wi-Fi scanning since the framework already handles this when a WifiLock is held. Bug: 4283795 Change-Id: I08481e70c651cffcbb516c8cc6584c919078fa4f
* SIP: fix keep-alive measurement and increase the timeout.Chia-chi Yeh2011-09-132-32/+34
| | | | | Bug: 5226511 Change-Id: I1283790581496b1ff4e583a8d9379cdc39f78c20
* SIP: avoid extreme small values in Min-Expires headers.Chia-chi Yeh2011-09-061-1/+4
| | | | | | | | If the expiry time cannot be found in Contact header or Expires header, use the default value of 3600 seconds, which is specified in RFC 3261. Change-Id: I2607a398b96743614b01713cfd9b28f40386fac1
* SIP: add the check for expiry time in Contact header.Chia-chi Yeh2011-08-301-10/+16
| | | | | | | | | | | There can be three expiry times in the same message header. We choose the smaller value in Expires header and Contact header, and then we obey the value defined in Min-Expires header. If none of them is set, the default value is used. Bug: 5178284 Change-Id: Ie9d4a48c93863e82e5197bb4a0db3f4fec56857c
* Handle SIP authentication response for BYE.Hung-ying Tyan2011-08-152-1/+32
| | | | | Bug: 5159669 Change-Id: I029684334500d4d0db176783084c9b7d1db87e40
* am 0793586b: am f8c1f129: am e1d27154: am f87743e7: Merge "Prevent ↵Conley Owens2011-08-021-1/+9
|\ | | | | | | | | | | | | NullPointerException cases while using SipService." * commit '0793586bf8f4dce71d0b4d7ff2f212129b3f76fe': Prevent NullPointerException cases while using SipService.
| * am f8c1f129: am e1d27154: am f87743e7: Merge "Prevent NullPointerException ↵Conley Owens2011-08-021-1/+9
| |\ | | | | | | | | | | | | | | | | | | cases while using SipService." * commit 'f8c1f1298ac3ede518c8d29eeb6719746c6afaf0': Prevent NullPointerException cases while using SipService.
| | * Prevent NullPointerException cases while using SipService.Masahiko Endo2011-08-011-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Add REFER handling.repo sync2011-07-133-30/+133
| | | | | | | | | | | | | | | | | | | | | Handle REFER requests including REFER with Replaces header. bug:4958680 Change-Id: I96df95097b78bed67ab8abd309a1e57a45c6bc2f
* | | Merge "Keep last known keepalive interval to avoid duplicate effort."Hung-ying Tyan2011-07-041-11/+40
|\ \ \
| * | | Keep last known keepalive interval to avoid duplicate effort.Hung-ying Tyan2011-07-011-11/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation always starts with default minimum interval when the measurement process starts. By keeping last known good interval, we can save the time in re-measurement. Change-Id: I8f1720acafaa7e101855fe0c66d5c7b0e578e0d7
* | | | Merge "Do not hold wifi lock when SIP is also available over mobile network."Hung-ying Tyan2011-07-031-21/+30
|\ \ \ \ | |/ / /
| * | | Do not hold wifi lock when SIP is also available over mobile network.Hung-ying Tyan2011-07-011-21/+30
| | | | | | | | | | | | | | | | | | | | Bug: 3111564 Change-Id: Ifc76e5c378d620e40ce4adf6ffa20807e9750fdb
* | | | Merge "Do not keep alive for re-established call."Hung-ying Tyan2011-07-031-2/+2
|\ \ \ \ | |/ / / |/| | |
| * | | Do not keep alive for re-established call.Hung-ying Tyan2011-07-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Only need to keep alive for caller in a newly established call. Change-Id: I36f9d9499c806c8701e3b78555de399b00593be8
* | | | Synchronize SipWakeupTimer.onReceive()Hung-ying Tyan2011-06-301-3/+3
|/ / / | | | | | | | | | | | | | | | | | | to fix the race of two threads that change mPendingIntent; one assigns a new one and the other nullifies it. Change-Id: I5e01f83ea1ac437811d2073839adef9bd0a30ec9
* | | Make NAT port timeout measurement more flexible.Hung-ying Tyan2011-06-301-39/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In two ways: (1) When there's a session timeout, restart the measurement at a later time instead of just stalling. (2) When there's a port change, do not re-measure the interval if the current interval works well in the past. We keep success count and decrement it by half when there's a port change. When the count is below a threshold, we restart the measurement process. Change-Id: I7256464435a5e2d2a239bfccaa004e9ceb1d9ce5
* | | Record external IP and port from SIP responsesHung-ying Tyan2011-06-282-10/+57
| | | | | | | | | | | | | | | | | | | | | and use them to create the contact header when sending OK response for INVITE. Bug: 3461707 Change-Id: I5b254618f4920cf10a1460631bcd336778f344ec
* | | Support INVITE w/o SDP.repo sync2011-06-282-1/+10
| | | | | | | | | | | | | | | | | | bug:3326873 Change-Id: Ie29d2c61b237fee2d8637f4ba3d293a22469cced
* | | Start keepalive process for the caller of a SIP callHung-ying Tyan2011-06-271-3/+27
| | | | | | | | | | | | | | | | | | | | | | | | so that the callee can send signals (on-hold or bye) back to the caller. Without the keepalive, the NAT port for the caller will be timed out during the call. And the signals will be dropped by the NAT device. Change-Id: I21848d73469045b2ed9e7281556ab184c594c362
* | | Support Invite w/ Replaces request.repo sync2011-06-277-15/+180
| | | | | | | | | | | | | | | bug:3326870 Change-Id: Idbfbe7e3cc6ba83874d42bfb7d149866f454e70a
* | | Restart NAT port timeout measurement when keepalive fails and other fixesHung-ying Tyan2011-06-242-13/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Misc keepalive fixes including: + Restart NAT port timeout measurement when keepalive fails. The max interval is set to the current keepalive interval. + When exception occurs during sending a keepalive, restarts registration. + When exception occurs during measurement, retry for a limited times before giving up. Change-Id: I7aa787a5ec7c4c9b4334aa1017371d9049b3520c
* | | Execute all the due wakeup events in SipWakeupTimer.Hung-ying Tyan2011-06-231-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Events are sorted by periods. So events of larger periods may have trigger time (i.e., when the event should be processed) earlier than the ones of smaller periods. So need to scan the whole queue looking for due events. The scan takes O(n) time but we expect the queue size to be small. Change-Id: I08bd3bd9d4bb8decb78f3c91c943396463ca023a
* | | Keep the keepalive process going after NAT port is changed.Hung-ying Tyan2011-06-231-0/+6
| | | | | | | | | | | | | | | | | | | | | This is a regression from the CL that makes the keep-alive process a reusable component. Change-Id: I1d580588e9e303c532bf620056fc0fe88a2fdcda
* | | Move the keepalive process to SipSessionImpl and make it reusable.Hung-ying Tyan2011-06-233-277/+446
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reuse the new component in the original keepalive process and the NAT port mapping timeout measurement process. This is the foundation for fixing the following bug. Bug: 3464181 Change-Id: If7e951c000503fa64843942ad062c4d853e20c8d
* | | Merge "Move WakeupTimer out of SipService."Hung-ying Tyan2011-06-152-311/+351
|\ \ \
| * | | Move WakeupTimer out of SipService.Hung-ying Tyan2011-06-142-311/+351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to prepare to move keepalive process to SipSessionGroup before fixing the following bug. Bug: 3464181 Change-Id: I57d8f6effad76706b5a76e1269c53d558db88ae4
* | | | Fix the issue of onNetwork in UI thread.repo sync2011-06-131-6/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | bug:458435 This will temporarily start a thread for answering calls, we are going to add a handler thread to handle this soon. Change-Id: I9079038d671e1b1631c6e663fc2c3de297d97428
* | | Add KeepAlive Interval Measurement.Chung-yih Wang2011-06-092-2/+126
|/ / | | | | | | Change-Id: Id5ea2fcfa0bcd45198e773a5842d39eacc8ae400
* | am a7a9c4cb: am 46524f83: Merge "docs: add package description for RTP" into ↵Scott Main2011-05-051-0/+28
|\ \ | | | | | | | | | | | | | | | | | | honeycomb-mr1 * commit 'a7a9c4cbbc2315a59ad27b43c83c66e272dcc2f2': docs: add package description for RTP
| * | docs: add package description for RTPScott Main2011-05-051-0/+28
| | | | | | | | | | | | Change-Id: I02c181a48101be288fb4aabf497f573f00038f90
* | | am 6f67e7bf: am 2e383bc6: Merge "Making it possible to call SIP calls with ↵Brad Fitzpatrick2011-03-291-2/+6
|\ \ \ | |/ / |/| / | |/ | | | | | | special allowed chars." * commit '6f67e7bf831147257e078dd72a22f2e43e009122': Making it possible to call SIP calls with special allowed chars.
| * Making it possible to call SIP calls with special allowed chars.Magnus Strandberg2011-03-221-2/+6
| | | | | | | | | | | | | | | | | | Since String.replaceFirst uses regex and since SIP user names are allowed to include regex charaters such as '+', the code must fist convert the string to a literal pattern String before using replaceFirst method. Change-Id: I25eac852bd620724ca1c5b2befc023af9dae3c1a
| * Merge changes Ib70e0cf2,I0691cd70 into gingerbreadHung-ying Tyan2011-01-241-8/+27
| |\ | | | | | | | | | | | | | | | * changes: SipService: registers broadcast receivers on demand. SipService: release wake lock for cancelled tasks.
| | * SipService: registers broadcast receivers on demand.Hung-ying Tyan2011-01-071-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous implementation registers receivers when SipService starts up. If the user doesn't use SIP at all, SipService will still process connecivity and wifi state change events, which involves holding wake lock and thus consumes power unnecessarily. With this CL, SipService is completely idle if the user doesn't use SIP at all. It registers receivers only when at least one account is opened. Bug: 3326998 Change-Id: Ib70e0cf2c808e0ebab4c3c43dcab5532d24e5eeb
| | * SipService: release wake lock for cancelled tasks.Hung-ying Tyan2011-01-061-1/+5
| | | | | | | | | | | | | | | Bug: 3327004 Change-Id: I0691cd70edf61f815ecb0613aca85babd89f6cc4
| * | Add auth. username in SipProfile.Chung-yih Wang2011-01-072-1/+29
| |/ | | | | | | | | bug:3326867 Change-Id: I2a62c75fb3f5e9c6ec2e00b29396e93b0c183d9b
* | NEW_API: Unhide RTP APIs.Chia-chi Yeh2011-03-084-4/+0
| | | | | | | | | | | | | | | | | | This change unhides RTP related classes including AudioCodec, AudioGroup, AudioStream, and RtpStream. This allows developers to control audio streams directly and also makes conference calls possible with the combination of the public SIP APIs. Change-Id: Idfd4edf65a1cbf3245ec2786fbc03b06438b0fb3
* | RTP: update javadocs.Chia-chi Yeh2011-03-032-44/+46
| | | | | | | | Change-Id: If600df0eb1e6135aed9f3b2eacfb6bc9ed5d78ff
* | Activate the wifi high perf. for sip calls.Chung-yih Wang2011-02-251-2/+0
| | | | | | | | | | | | bug:3487791 Change-Id: I7d8d146f8542cd7df387547c7ce3d5ded27f8e97
* | Add rport argument for a reinvite request.Chung-yih Wang2011-02-211-0/+7
| | | | | | | | | | bug:3461707 Change-Id: I69a4f84dde3929c754c838fd12e624b774f44826