Answer the question
In order to leave comments, you need to log in
Are the username fields (Authorization section) required in SIP 2.0 to match the data in the from/contact fields?
The question concerns the Beeline SIP provider.
The provider wants the user-ID and auth-ID to be specified during registration.
They differ in that auth-ID = [email protected]
Translated into technical language. We send the package (after receiving 401 Unauthorized), unnecessary parts are cut out, dog characters are escaped (otherwise the toaster removes them):
REGISTER sip:sip.beeline.ru SIP/2.0
...
To: <sip:user-ID%40sip.beeline.ru>
From: <sip:user-ID%40sip.beeline.ru>;tag=TAG
...
Contact: <sip:user-ID%40IP>
...
Authorization: Digest username="user-ID",realm="sip.beeline.ru",nonce="nonce",uri="sip:sip.beeline.ru",response="responce",algorithm=MD5,cnonce="cnonce",nc=nc,qop=auth
...
REGISTER sip:sip.beeline.ru SIP/2.0
...
To: <sip:user-ID%40sip.beeline.ru>
From: <sip:user-ID%40sip.beeline.ru>;tag=TAG
...
Contact: <sip:user-ID%40IP>
...
Authorization: Digest username="user-ID%40sip.beeline.ru",realm="sip.beeline.ru",nonce="nonce",uri="sip:sip.beeline.ru",response="responce",algorithm=MD5,cnonce="cnonce",nc=nc,qop=auth
...
Answer the question
In order to leave comments, you need to log in
It may match, but it doesn't have to. It’s just that the provider requires it, there’s nothing strange or new here, in 99% of hardware these are separate fields with the ability to enter different values. username/user-ID can be used to substitute From/Contact/DisplayName, auth is only used for Authorization.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question