How to make a heartbeat register with authentication

41 views
Skip to first unread message

xymo

unread,
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

unread,
Sep 16, 2021, 8:04:38 AM9/16/21
to js...@googlegroups.com
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 jssip+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jssip/985c5876-19ec-49a7-9ad6-4e09ec919d00n%40googlegroups.com.


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