@finarum/sip-phone-dial
v1.1.2
Published
A modern, high-quality SIP phone dialer component for Vue 3 applications. Built with JsSIP, Vuex, and Vite.
Downloads
323
Readme
@finarum/sip-phone-dial
A modern, high-quality SIP phone dialer component for Vue 3 applications. Built with JsSIP, Vuex, and Vite.
Features
- Vue 3 & TypeScript: Native support for modern Vue applications.
- Glassmorphism Design: Premium, modern UI with smooth animations.
- JsSIP Integration: Robust SIP handling for reliable VoIP calls.
- Component-Based: Exported as reusable components (
Phone,DialPad, etc.). - I18n Support: Ready for internationalization.
Installation
npm install @finarum/sip-phone-dialPeer Dependencies
Ensure you have the following packages installed in your project:
npm install vue vuex jssip vue-i18nSetup
1. Vuex Store Requirements
The component relies on a specific Vuex module structure. You should register the SIP module in your Vuex store.
import { createStore } from 'vuex';
// Note: You may need to export the store logic from the package if it's not internal only
// In the current version, the store logic is bundled.2. Styles
Import the CSS in your main entry file:
import '@finarum/sip-phone-dial/dist/style.css';Usage
Using the Phone Component
The Phone.vue component provides a complete SIP client UI.
<script setup>
import { Phone } from '@finarum/sip-phone-dial';
</script>
<template>
<Phone
domain="your-sip-domain.com"
ws_servers="wss://your-sip-wss-server.com"
user="1001"
password="your-password"
displayName="John Doe"
/>
</template>API Reference
Phone Props
| Prop | Type | Required | Default | Description |
| :--- | :--- | :--- | :--- | :--- |
| domain | String | Yes | - | Your SIP domain. |
| ws_servers | String | Yes | - | WebSocket server URL (e.g., wss://...). |
| user | String | Yes | - | SIP user extension. |
| password | String | Yes | - | SIP password. |
| displayName | String | No | "User" | Caller ID name. |
Development
If you want to contribute or modify the package:
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run buildLicense
MIT
