Softphone, webphone and VoIP server Forum

HomeHomeDiscussionsDiscussionsMizuDroid Andro...MizuDroid Andro...Register with no auth header results to AuthorizedRegister with no auth header results to Authorized
Previous
 
Next
New Post
4/18/2020 7:38 PM
 

Hi,

I have a fail2ban services and mizudroid results to false ip bans due to the following problem:

it initially sends a packet without authorization information:

REGISTER sip:host.domain.info SIP/2.0
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:1502;rport;branch=xxxxxxx
From: <sip:user@host.domain.info>;tag=xxxxx
To: <sip:user@host.domain.info>
Call-ID: 2032e7327272433972569808k63271rmwp
CSeq: 13373 REGISTER
Max-Forwards: 70
Expires: 60
Contact: <sip:user@xxx.xxx.xxx.xxx:1502>
User-Agent: MizuDroid/3.1.0
X-DeviceID: bd6de37a7ea96522
Supported: replaces
Allow: ACK,PRACK,BYE,CANCEL,INVITE,UPDATE,MESSAGE,INFO,OPTIONS,SUBSCRIBE,NOTIFY,REFER
Allow-Events: presence,refer,telephone-event,keep-alive,dialog
Accept: application/sdp,application/dtmf-relay,text/plain
Content-Length: 0

And it receives an SIP/2.0 401 Unauthorized

With a new register that a  Authorization: Digest username="user",realm="host.domain.info",..... is included, everything is OK

How can I force mizuDroid to send the Authorization header from the first register?

Thank you in advace

 

 

 
New Post
6/10/2020 11:37 AM
 
This is against the SIP protocol.

After the SIP protocol, the client must always send the first request with no authorization.
Then once your server responds with 401 or 407 Unauthorized with nonce, the client will send the request again now with authorization.
 
Previous
 
Next
HomeHomeDiscussionsDiscussionsMizuDroid Andro...MizuDroid Andro...Register with no auth header results to AuthorizedRegister with no auth header results to Authorized


You need to register / login to be able to post in the forum