@tmsoft/webphone 5.0.1 → 5.0.4

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
@@ -50,7 +50,7 @@ import { WebPhone } from '@tmsoft/webphone'
50
50
  | `maskNumber` | `boolean` | No | `false` | Masks the displayed call number after its first 3 digits (for example, `315*******`) |
51
51
  | `earlyMedia` | `boolean` | No | `false` | Enables audio from provisional SIP responses with SDP for outbound, non-forking calls |
52
52
  | `onAnswer` | `(video: boolean) => void \| Promise<void>` | No | — | Custom handler for answer action (incoming call) |
53
- | `onHangup` | `() => void \| Promise<void>` | No | — | Custom handler for hangup action |
53
+ | `onHangup` | `() => void \| Promise<void>` | No | — | Called when hangup is requested; SIP hangup is always sent by the component |
54
54
  | `onReject` | `() => void \| Promise<void>` | No | — | Custom handler for reject action (incoming call) |
55
55
 
56
56
  > \* Either `host` or `wsUrl` must be provided.
@@ -75,7 +75,7 @@ interface WebPhoneContact {
75
75
 
76
76
  ### Action handlers
77
77
 
78
- If `onAnswer`, `onHangup` or `onReject` are provided, the component will call those props instead of executing the internal SIP action for that button.
78
+ If `onAnswer` or `onReject` are provided, the component calls those props instead of executing the corresponding internal SIP action. `onHangup` is called in addition to the internal SIP hangup, which the component always initiates.
79
79
 
80
80
  ## Events
81
81