@koi-design/callkit 1.0.24-beta.5 → 1.0.24-beta.6
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/index.d.ts +1 -1
- package/dist/index.global.js +8 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -393,7 +393,7 @@ declare class Connect {
|
|
|
393
393
|
setMute(mute: boolean): Promise<void>;
|
|
394
394
|
mute(): Promise<void>;
|
|
395
395
|
unmute(): Promise<void>;
|
|
396
|
-
refer(referTo: string,
|
|
396
|
+
refer(referTo: string, extra?: any): Promise<void>;
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
declare class User {
|
package/dist/index.global.js
CHANGED
|
@@ -18739,10 +18739,16 @@ var WebCall = (() => {
|
|
|
18739
18739
|
}
|
|
18740
18740
|
await this.setMute(false);
|
|
18741
18741
|
}
|
|
18742
|
-
async refer(referTo,
|
|
18742
|
+
async refer(referTo, extra) {
|
|
18743
18743
|
this.callKit.logger.debug("connect refer");
|
|
18744
18744
|
const target = UserAgent.makeURI(referTo);
|
|
18745
|
-
|
|
18745
|
+
if (target && extra?.sipHeaderMap) {
|
|
18746
|
+
const { sipHeaderMap } = extra;
|
|
18747
|
+
Object.entries(sipHeaderMap).forEach(([name, value]) => {
|
|
18748
|
+
target.setParam(name, value);
|
|
18749
|
+
});
|
|
18750
|
+
}
|
|
18751
|
+
this.currentSession.refer(target, extra?.options);
|
|
18746
18752
|
}
|
|
18747
18753
|
};
|
|
18748
18754
|
|