4. API Session Management

Опубликовано: 21 Июнь 2026
на канале: PortaDialer
52
0

Timecodes:
00:00 How to establish a new session to the BSS connector. WebTrit BSS adapter supports 2 main approaches.
00:07 In case you want to allow people to sign up directly from the application.
The API of VoIP system should allow each end user to login and create an individual API session. So the BSS adapter sends a VoIP system login and password and the third party system creates a new session with access token and other parameters. These parameters return to the BSS connector, stored in the WebTrit backend.
01:32 But not all systems support that approach. For establishing API individual sessions in case If your system has only one administrator user account and individual users or extension PBX don’t have access to individual API. In this case the BSS adapter uses the master username and password and gets one master API token which it uses for all requests for all users. The BSS adapter maintains the sessions on its side. It generates session objects, makes users tokens, and stores information locally.
03:12 The session management class provides such methods: validate session; issue of refresh token/session etc; close session.
04:50 The OTP handler class provides two functions: one to issue a one time password and one to validate a code that user has entered.

Useful links:
*More info: https://webtrit.com/
*Signup for free WebTrit account: https://bit.ly/signup-webtrit

If you have any more questions or are interested in learning more - contact us at: https://webtrit.com/#contact

Subscribe to our WebTrit YouTube channel to see new videos about our products and serviсes:    / @portadialer  

Visit us at:
LinkedIn -   / webtrit  
Facebook -   / webtrit  
Reddit -   / webtritofficial  
GitHub - https://github.com/WebTrit
iOS Reference App - https://bit.ly/WebTritDemoIphone
Android Reference App: https://bit.ly/WebTritDemoAndroid