@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 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