Always determine the username for authentication from the From: field#143
Open
kousu wants to merge 1 commit intoEyepea:masterfrom
Open
Always determine the username for authentication from the From: field#143kousu wants to merge 1 commit intoEyepea:masterfrom
kousu wants to merge 1 commit intoEyepea:masterfrom
Conversation
Fixes a later crash:
File aiosip/aiosip/auth.py, line 24, in md5digest
return md5(':'.join(args).encode()).hexdigest()
TypeError: sequence item 0: expected str instance, NoneType found
Author
|
I don't understand the motivation behind what I got rid of. Hopefully you can take a look and tell me if this will screw something else up. Especially, why would you want to use a different username depending on the case, or why it ignores the one explicitly passed by the user? Am I misusing aiosip somehow? If I put my app back closer to how I found the initial example ( aiosip/examples/back_to_back/client.py Lines 61 to 71 in 553b7b2 by re-adding the username@ part: then it logs in without complaint. But logging in "to" yourself doesn't make sense to me, and it's not what Linphone does either; so I didn't pass a user part for that field, so DetailsA captured REGISTER packet from Linhpone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Working off
masterhere (I installed withgit clone https://github.com/Eyepea/aiosip/; cd aiosip ;pip install -e .) I can't log in to my SIP server with aiosip, as it stands. Here is my sample program:Details
sip.pyIt dies deep in with a TypeError:
With the patch, I can log in (though I still can't make a call, but that's because the server I tested with only takes calls to itself and rejected me):
I'm trying this on
because that's what Ubuntu has for me, but I suspect this is a general problem (though I haven't tested other distros yet).