How to make a heartbeat register with authentication

Skip to first unread message


Sep 8, 2021, 11:41:34 PM9/8/21
to JsSIP

The current heartbeat mechanism is to send the registration without authorization information and the server replies with 401, then after sending the registration with authorization information, the server returns 200.

Now I want to send a heartbeat register information with authorization directly.

What is the solution?

José Luis Millán

Sep 16, 2021, 8:04:38 AM9/16/21
This is how SIP authorization works.

You can otherwise use JWT authorization, which must be supported by the SIP server, and JsSIP will add the corresponding Authorization header to every outgoing SIP request:

You received this message because you are subscribed to the Google Groups "JsSIP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

José Luis Millán
Reply all
Reply to author
0 new messages