@tmsoft/webphone 3.0.24 → 3.0.25

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 CHANGED
@@ -48,6 +48,7 @@ import { WebPhone } from '@tmsoft/webphone'
48
48
  | `initialKeypadVisible` | `boolean` | No | `true` | Initial keypad visibility |
49
49
  | `enablePictureInPicture` | `boolean` | No | `true` | Enables Document Picture-in-Picture |
50
50
  | `maskNumber` | `boolean` | No | `false` | Masks the displayed call number after its first 3 digits (for example, `315*******`) |
51
+ | `earlyMedia` | `boolean` | No | `false` | Enables audio from provisional SIP responses with SDP for outbound, non-forking calls |
51
52
  | `onAnswer` | `(video: boolean) => void \| Promise<void>` | No | — | Custom handler for answer action (incoming call) |
52
53
  | `onHangup` | `() => void \| Promise<void>` | No | — | Custom handler for hangup action |
53
54
  | `onReject` | `() => void \| Promise<void>` | No | — | Custom handler for reject action (incoming call) |
@@ -42,6 +42,8 @@ export interface WebPhoneProps {
42
42
  initialKeypadVisible?: boolean;
43
43
  enablePictureInPicture?: boolean;
44
44
  maskNumber?: boolean;
45
+ /** Enable SIP early media for outbound, non-forking INVITEs. */
46
+ earlyMedia?: boolean;
45
47
  onAnswer?: (video: boolean) => void | Promise<void>;
46
48
  onHangup?: () => void | Promise<void>;
47
49
  onReject?: () => void | Promise<void>;
@@ -20,6 +20,7 @@ type __VLS_Props = {
20
20
  initialKeypadVisible?: boolean;
21
21
  enablePictureInPicture?: boolean;
22
22
  maskNumber?: boolean;
23
+ earlyMedia?: boolean;
23
24
  onAnswer?: (video: boolean) => void | Promise<void>;
24
25
  onHangup?: () => void | Promise<void>;
25
26
  onReject?: () => void | Promise<void>;
@@ -42,6 +43,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
42
43
  number: string;
43
44
  type?: "tool" | "extension" | "contact" | "voicemail";
44
45
  }[];
46
+ earlyMedia: boolean;
45
47
  mode: "webcall" | "call" | "video";
46
48
  maskNumber: boolean;
47
49
  position: WebPhonePosition;