On 11/7/16 4:49 AM, Adnan Aziz wrote:
Hello Everyone,
According to the rfc3261, the userinfo in the sip-uri is optional.
If there is no userinfo part then there should not be any "@" sign as well
in the sip-uri.
I have couple of questions
1) If I am receiving a sip request without userinfo part in the sip-usri,
starting with "@" then is it a malformed packet?
Yes. Here is some of the syntax:
SIP-URI = "sip:" [ userinfo ] hostport
uri-parameters [ headers ]
userinfo = ( user / telephone-subscriber ) [ ":" password ] "@"
user = 1*( unreserved / escaped / user-unreserved )
Note 'user = 1*(...)'..."@"
So you aren't allowed to have the "@" without something preceding it.
2) What should be the standard behavior of SIP server while responding to
such packets?
Undefined. IMO:
- an server outside the domain of the URI should
simply pass this along. (Exception: intermediaries that only handle
phone numbers.)
- a server authoritative for the domain of the URI can do as it wishes.
It could treat this as if the "@" wasn't there, or it could treat it
as an unknown user. Or it could reject as malformed.
Thanks,
Paul
BTW, such queries don't really belong on this list. Better to send them
to Sip-implementors@lists.cs.columbia.edu.
_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/sip-implementors