BelledonneCommunications / linphone-android

Linphone.org mirror for linphone-android (https://gitlab.linphone.org/BC/public/linphone-android)
https://linphone.org
GNU General Public License v3.0
1.11k stars 680 forks source link

Existing SIP account setup failing to login #1331

Closed matthewepler closed 3 years ago

matthewepler commented 3 years ago

Describe the bug When attempting to add an existing SIP account, pressing the "Login" button produces no results. No error, no update to UI, no feedback. Just stays on the form page and does nothing.

I assume this is an error to do with my input values, which I have included below.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Assistant',
  2. Click on 'Use SIP Account'
  3. Fill out the form
  4. Tap "Login"

Expected behavior Either: a) Login attempt is made and feedback on the result is show or b) Error is shown with details on how to fix it

Please complete the following information

Additional context Form input: Username: betafish~40dismail.de Password: (three words separated by spaces, also tried without spaces) Domain: jmp.bwapp.bwsip.io

matthewepler commented 3 years ago

After some troubleshooting, the issue seems to be the ~ character in the userID.

Viish commented 3 years ago

Glad you found the issue by yourself. By the way the next version of the app (cf feature/kotlin_rewrite) branch has better error handling for such scenario.

matthewepler commented 3 years ago

Thank you. FYI, the service jmp.chat seems to create usernames that will always have a ~ symbol in them. It would be great if we could use Linphone with these usernames. Is there a reason this character cannot be used? Can you allow it as part of a string?

rOOb85 commented 3 years ago

I had the same exact issue with the same provider(jmp.chat).

I found a workaround: Setup a sip account like normal but if the username contains ~ don't add it to the username(ie john~smith becomes johnsmith). Hit login and linphone moves on to the next screen. Open the sidedrawer and click the account name at the very top. This brings up the account settings screen. Change the username to the correct username that includes ~ I also had to change Transport to TCP.

Linphone then correctly connects and works as expected. Hope this helps!