0.3.0 • Published 1 year ago

@calv.io.n/click-to-call v0.3.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Click to call

Click to call is a button for your website that allows your customers to make a call over VoIP without leaving the website.

Key features:

  • Call a Voximplant user / SIP address / phone number
  • You can dial an extention number after the call establishes
  • You can mute/unmute your microphone during the call
  • You can choose the microphone and test it by recording your voice and playing it back
  • You can see the connection status and quality

Screenshots

Connection Established call Microphone check Changing the microphone

How to use

The setup consists of two parts: VoxEngine cloud setup and the widget's source code setup.

VoxEngine setup

Follow the instruction to set up the cloud part before you download the source code.

Application setup

  1. Download the widget repository
  2. Run yarn install or npm install in the widget directory
  3. Rename the .env.example file to .env
  4. In the .env file:
    • Fill your user credentials into the VUE_APP_USER and VUE_APP_PASSWORD properties
    • Add the number to call to the VUE_APP_NUMBER property
    • Fill the testmic string to the VUE_APP_TEST_NUMBER property
  5. Run yarn serve or npm run serve to run the development build
  6. Open the http://localhost:8080/ URL to test the application
  7. Once the application works correctly, you can assemble the application
  8. If you do not plan to upload the application to the webserver root folder, set up the publicPath property in the vue.config.js file. See the instruction
  9. To make a production build, run yarn build or npm run build
  10. The dist directory will contain the production build ready to upload to the server.

Folder descriptions

  • public — Project's static materials, such as favicon and the index.html template, where you can add any additional code, such as action counters
  • src — Click-to-call project code
    • assets — Assets: images and sounds
    • components — Application source code
    • router — Application routing files
    • views — Application pages: Home.vue is the default page, Button.vue is the button page to be placed on the website

Miscellaneous

  • The get parameters starting with x- are sent as headers to the VoxEngine scenario
  • You can see the widget example in new window at: http://localhost:8080/button