@tmsoft/webphone 3.0.18 → 3.0.19
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/dist/lib/types.d.ts +11 -0
- package/dist/webphone.component.js +22 -22
- package/dist/webphone.es.js +267 -257
- package/dist/webphone.umd.js +20 -20
- package/package.json +1 -1
package/dist/lib/types.d.ts
CHANGED
|
@@ -5,11 +5,22 @@ export interface WebPhoneContact {
|
|
|
5
5
|
}
|
|
6
6
|
export type WebPhoneCallDirection = 'incoming' | 'outgoing';
|
|
7
7
|
export type WebPhoneCallState = 'dialing' | 'ringing' | 'connected' | 'ended' | 'failed';
|
|
8
|
+
/**
|
|
9
|
+
* Cola por la que entró la llamada. Viaja en el propio INVITE, en los headers
|
|
10
|
+
* `X-Nebula-Queue` / `X-Nebula-Queue-Id` que agrega el pre-dial handler de
|
|
11
|
+
* Asterisk. Solo viene en llamadas entrantes que pasaron por una cola: una
|
|
12
|
+
* llamada directa a la extensión llega sin estos headers.
|
|
13
|
+
*/
|
|
14
|
+
export interface WebPhoneQueueInfo {
|
|
15
|
+
id?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
}
|
|
8
18
|
export interface WebPhoneCallContext {
|
|
9
19
|
channelId: number;
|
|
10
20
|
sipCallId: string;
|
|
11
21
|
direction: WebPhoneCallDirection;
|
|
12
22
|
remoteNumber: string;
|
|
23
|
+
queue?: WebPhoneQueueInfo;
|
|
13
24
|
}
|
|
14
25
|
export interface WebPhoneCallStateEvent extends WebPhoneCallContext {
|
|
15
26
|
state: WebPhoneCallState;
|