Skip to content

About

examples showing how to integrate FreJun into your platform

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

FreJun Integration Workflow Examples

Docs JavaScript Vite

Runnable examples showing how to add FreJun calling to your own platform.

Examples

Example What it shows Docs
voip-dialer-widget Embed the Dialer Widget in an iframe and handle every postMessage event Dialer Widget
voip-web-sdk Browser softphone: register, dial, accept, mute, hold, end Softphone Web SDK
voip-call-api Trigger a VoIP call on a logged-in softphone via REST Call-to-VoIP API
network-calling Two-legged phone call via the Create Call API Network Calling

SDKs used

Package Used in Purpose
@frejun/oauth (source) All examples Popup-based OAuth sign-in and automatic token refresh
@frejun/softphone-web-sdk voip-web-sdk SIP-based softphone that runs in the browser

Run any example

  1. Go into the example folder and install dependencies:

    cd <example>
    npm install
  2. Create a .env file with your FreJun OAuth app credentials:

    VITE_CLIENT_ID="<your-client-id>"
    VITE_CLIENT_SECRET="<your-client-secret>"
    

    voip-dialer-widget also reads an optional VITE_DIALER_ORIGIN (defaults to https://dialer.frejun.com).

  3. Start the dev server:

    npm run dev    # http://localhost:5173

Each example's own README covers the events, API fields and error cases it demonstrates.

About

examples showing how to integrate FreJun into your platform

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages