@tbisoftware/phone 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # @tbi/phone
2
+
3
+ A reusable SIP phone component for React applications built with Tailwind CSS and JsSIP.
4
+
5
+ ## Installation
6
+
7
+ npm install @tbi/phone
8
+
9
+ ## Usage
10
+
11
+ ```tsx
12
+ import { Phone } from "@tbi/phone";
13
+
14
+ const config = {
15
+ websocketUrl: "wss://your-sip-server.com:8989",
16
+ sipUri: "sip:user@domain.com",
17
+ password: "your-password",
18
+ registrarServer: "sip:domain.com",
19
+ displayName: "User Name",
20
+ authorizationUser: "auth-user",
21
+ };
22
+
23
+ function App() {
24
+ return <Phone config={config} />;
25
+ }
26
+ ```
27
+
28
+ ## Props
29
+
30
+ - config: PhoneConfig (required)
31
+ - className: string
32
+ - onCallStart: (number: string) => void
33
+ - onCallEnd: (number, duration, status) => void
34
+ - labels: Custom labels for i18n
35
+
36
+ ## License
37
+
38
+ MIT