Skip to content

Commit 2985c6b

Browse files
committed
Fix sdp body issue
1 parent dd670ff commit 2985c6b

File tree

5 files changed

+148
-148
lines changed

5 files changed

+148
-148
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ringcentral-web-phone",
3-
"version": "2.2.5",
3+
"version": "2.2.6",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/ringcentral/ringcentral-web-phone.git"
@@ -40,7 +40,7 @@
4040
"uuid": "^11.1.0"
4141
},
4242
"devDependencies": {
43-
"@playwright/test": "^1.54.1",
43+
"@playwright/test": "^1.54.2",
4444
"@rollup/plugin-commonjs": "^28.0.6",
4545
"@rollup/plugin-node-resolve": "^16.0.1",
4646
"@types/blueimp-md5": "^2.18.2",
@@ -53,12 +53,12 @@
5353
"manate": "^2.0.0",
5454
"parcel": "^2.15.4",
5555
"process": "^0.11.10",
56-
"rollup": "^4.45.1",
56+
"rollup": "^4.46.2",
5757
"stream-browserify": "^3.0.0",
5858
"string_decoder": "^1.3.0",
5959
"timers-browserify": "^2.0.12",
6060
"tsx": "^4.20.3",
61-
"typescript": "^5.8.3",
61+
"typescript": "^5.9.2",
6262
"wait-for-async": "^0.7.13",
6363
"yarn-upgrade-all": "^0.7.5"
6464
},

src/call-session/inbound.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class InboundCallSession extends CallSession {
140140
headers: {
141141
"Content-Type": "application/sdp",
142142
},
143-
body: answer.sdp,
143+
body: this.rtcPeerConnection.localDescription!.sdp,
144144
});
145145
await this.webPhone.sipClient.reply(newMessage);
146146

src/call-session/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ class CallSession extends EventEmitter {
355355
headers: {
356356
"Content-Type": "application/sdp",
357357
},
358-
body: answer.sdp,
358+
body: this.rtcPeerConnection.localDescription!.sdp,
359359
});
360360
await this.webPhone.sipClient.reply(newMessage);
361361

src/call-session/outbound.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class OutboundCallSession extends CallSession {
7676
Via: `SIP/2.0/WSS ${fakeDomain};branch=${branch()}`,
7777
"Content-Type": "application/sdp",
7878
},
79-
this.rtcPeerConnection.localDescription!.sdp!,
79+
this.rtcPeerConnection.localDescription!.sdp,
8080
);
8181
if (callerId) {
8282
inviteMessage.headers["P-Asserted-Identity"] =

0 commit comments

Comments
 (0)