Skip to content
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

REGISTER without FromUser will not be recognized as SIP paket #39

Open
thaeger71 opened this issue May 4, 2016 · 2 comments
Open

REGISTER without FromUser will not be recognized as SIP paket #39

thaeger71 opened this issue May 4, 2016 · 2 comments

Comments

@thaeger71
Copy link

thaeger71 commented May 4, 2016

Hi,

I know, a REGISTER without FromUser doesn't make much sense, but to track down SIP issues it would be nice if such packet either be recognized as SIP paket, buit it doesn't.

Try to parse attached pcap which contains one register without FromUser.

Wireshark shows this paket too, without any problem ;-)

test.pcap.zip

@thaeger71
Copy link
Author

I just saw that also the ToUser is not present in this REGISTER, maybe this is the reason that this packet will not be recognized as SIP packet ....

@jonbo372
Copy link
Collaborator

it is because any SIP URI is not allowed to have an empty user portion if there is a '@' sign present. Hence, this is an error: sip:@hello.com
but this is allowed: sip:hello.com

So it is not so much about REGISTER but rather that it fails to parse the SIP URI. I guess I could introduce a validate method instead that checks it and the framing is a little more relaxed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants