New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unauthorized when use sip account #216
Comments
I have just started getting this after updating to the latest 3.3.2 code (compiled myself). Looking at my server logs, it seems like the server (FreePBX 13) received the REGISTER request, responds with 401 Unauthorized, but linphone-android is not sending an Authorization header in its next request. Looking at the debug logs in logcat, I see the following error:
Note that I have devices running older versions of linphone on this same network/server that register without issue. Server Logs (asterisk/FreePBX)
Linphone App Logs (logcat)
|
Looking into this a bit further, it seems like belle-sip doesn't like the algorithm ( I think the error I mentioned above comes from this line. That relies on a call to the I'm not sure if this is a bug with the |
I have confirmed that if I change 4 instances of I'm not sure what the process is for submitting patches to belle-sip, but maybe someone from Belledonne watching here can look into these changes? |
I'm having the same issue. Changing the code to what @dominic-p suggested fixed the issue for me. |
@dominic-p , after changing the instances, what you have to do? I still have the same issue, but I guess the library needs to be compile. Right? Thanks for your quick answer :-) |
@jsponz yes, you need to recompile. I just follow the instructions on the readme which boil down to:
|
Thanks! It works great! |
It looks like this has been fixed by this commit in belle-sip which was recently pulled in to linphone-android. So, this issue can probably be closed. |
Hi to all! Asterisk is sending WWW-Authenticate: Digest algorithm=md5 ... (lowercase) Until yesterday it was working without problem. So I think the issue is still the same. Maybe the old code come back? I'm using the official google play store version. Thanks EDIT: |
I can confirm the previous issue and it affects both iOS and android. System was working flawlessly till the linphone update. It's easy enough to downgrade android, but ios, not so much. |
from the rfc But there is a general concept in these thing to be conservative in what you send and liberal in what you accept. |
@rtreleaven interesting. Maybe you should file a bug with Asterisk? |
???? Asterisk didn't change, Linphone did.
…On Mon, Jun 25, 2018 at 4:13 PM, Dominic ***@***.***> wrote:
@rtreleaven <https://github.com/rtreleaven> interesting. Maybe you should file
a bug with Asterisk <https://issues.asterisk.org>?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#216 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Akc1j_giJGbonq1mBTe7jY5lH1T-AYYMks5uAW6agaJpZM4SJ_5K>
.
--
*Rapture*, the ultimate flash mob... Will you get the call?
|
Jehan Monnier wrote on the linphone users list "...Thanks for pointing us this issue. I stand corrected. |
I just tested the new 4.0.1 and now it works. |
i have same error so where i can find this file? i have clone this repo : |
In my case I forced the use of md5 in objc
worked well ! |
Hi, I got some trouble here. When I try to login with sip account to my server it's always fail. Then I print the message from listener and it says "Unauthorized". I have no idea what actually happens, cause when I try with apps from playstore, it's succeed.
Any advice?
Btw sorry if my english is bad.
The text was updated successfully, but these errors were encountered: