diff options
author | Chung-yih Wang <cywang@google.com> | 2010-11-03 13:11:53 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2010-12-07 10:36:19 +0800 |
commit | f053292d7a46c30abbe6f12ca04dbc03ec964d80 (patch) | |
tree | 103509a15cb400ce8a3593dfab235557c3276238 /telephony/java | |
parent | daef0a040de7a9825bdbcba7b2eae66195e3a95f (diff) | |
download | frameworks_base-f053292d7a46c30abbe6f12ca04dbc03ec964d80.zip frameworks_base-f053292d7a46c30abbe6f12ca04dbc03ec964d80.tar.gz frameworks_base-f053292d7a46c30abbe6f12ca04dbc03ec964d80.tar.bz2 |
Fix SIP bug of different transport/port used for requests.
bug: http://b/3156148
Change-Id: I4fa5b274d2e90ebde12d9e99822dc193a65bad32
Diffstat (limited to 'telephony/java')
-rwxr-xr-x | telephony/java/com/android/internal/telephony/sip/SipPhone.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/telephony/java/com/android/internal/telephony/sip/SipPhone.java b/telephony/java/com/android/internal/telephony/sip/SipPhone.java index 5cf2531..a92ac1c 100755 --- a/telephony/java/com/android/internal/telephony/sip/SipPhone.java +++ b/telephony/java/com/android/internal/telephony/sip/SipPhone.java @@ -383,7 +383,9 @@ public class SipPhone extends SipPhoneBase { Connection dial(String originalNumber) throws SipException { String calleeSipUri = originalNumber; if (!calleeSipUri.contains("@")) { - calleeSipUri += "@" + getSipDomain(mProfile); + calleeSipUri = mProfile.getUriString().replaceFirst( + mProfile.getUserName() + "@", + calleeSipUri + "@"); } try { SipProfile callee = |