@wizai/agent-sip-sdk 0.1.18 → 0.2.0
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 +15 -0
- package/lib/agent-sip-sdk-cjs.js +2 -3
- package/lib/agent-sip-sdk-es.js +2 -3
- package/lib/agent-sip-sdk-umd.js +2 -3
- package/lib/types/api/index.d.ts +14 -0
- package/lib/types/index.d.ts +4 -6
- package/lib/types/sip/index.d.ts +9 -0
- package/lib/types/sip/types.d.ts +3 -1
- package/lib/types/tracker/configCache.d.ts +5 -0
- package/lib/types/tracker/index.d.ts +25 -0
- package/lib/types/tracker/queue.d.ts +18 -0
- package/lib/types/tracker/scrub.d.ts +7 -0
- package/lib/types/tracker/types.d.ts +41 -0
- package/lib/types/types.d.ts +1 -0
- package/lib/types/version.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -198,6 +198,19 @@ ASK.attchSessionEvent('success', fn);
|
|
|
198
198
|
ASK.removeSessionEvent('success', fn);
|
|
199
199
|
```
|
|
200
200
|
|
|
201
|
+
#### 自动接听事件
|
|
202
|
+
|
|
203
|
+
```typescript
|
|
204
|
+
const fn = ({code, data}) => {
|
|
205
|
+
// data 通话详情信息
|
|
206
|
+
console.log('自动接听啦');
|
|
207
|
+
}
|
|
208
|
+
// 自动接听事件监听
|
|
209
|
+
ASK.attachAutoAnswerEvent(fn);
|
|
210
|
+
|
|
211
|
+
// 移除事件监听
|
|
212
|
+
ASK.removeAutoAnswerEvent(fn);
|
|
213
|
+
```
|
|
201
214
|
|
|
202
215
|
## API 参考
|
|
203
216
|
|
|
@@ -224,6 +237,8 @@ ASK.removeSessionEvent('success', fn);
|
|
|
224
237
|
- `removeNewMessageEvent(listener)`: 移除新消息事件监听器。
|
|
225
238
|
- `attchSessionEvent(type, listener)`: 添加会话事件监听器。
|
|
226
239
|
- `removeSessionEvent(type, listener)`: 移除会话事件监听器。
|
|
240
|
+
- `attachAutoAnswerEvent(listener)`: 添加自动接听事件监听器。
|
|
241
|
+
- `removeAutoAnswerEvent(listener)`: 移除自动接听事件监听器。
|
|
227
242
|
|
|
228
243
|
## 注意事项
|
|
229
244
|
|