This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import twilio from "twilio"; | |
const accountSid = "ACCOUNT_SID"; | |
const authToken = "AUTH_TOKEN"; | |
async function wait(second) { | |
return new Promise((resolve) => { | |
setTimeout(resolve, second * 1000); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import twilio from "twilio"; | |
async function wait(second) { | |
return new Promise((resolve) => { | |
setTimeout(resolve, second * 1000); | |
}); | |
} | |
async function makeCall(event) { | |
const accountSid = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# start SIP and PSTN call | |
const accountSid = ""; | |
const authToken = ""; | |
const client = require("twilio")(accountSid, authToken); | |
client.calls | |
.create({ | |
url: "WEB_HOOK_URI", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e0f4089f1bf453811c68e614a86704d40713bbbf Mon Sep 17 00:00:00 2001 | |
From: Sanchayan Maity <[email protected]> | |
Date: Thu, 19 Oct 2023 13:13:32 +0530 | |
Subject: [PATCH] webrtcbin: Fix transceiver matching with FEC decoder for PCMU | |
When using PCMU, the payload type can be 0. When `rtpbin` requests | |
FEC decoder and passes a payload type of 0, the check on payload | |
type in `try_match_transceiver_with_fec_decoder` resulted in the | |
FEC decoder not being set on the transceiver. This then resulted | |
in code setting pass through on the `rtpulpfecdec` being bypassed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 00dd5d443ff11f29489ea8a580803818ad440005 Mon Sep 17 00:00:00 2001 | |
From: Arun Raghavan <[email protected]> | |
Date: Mon, 9 Jan 2023 21:17:27 -0500 | |
Subject: [PATCH 2/3] webrtcbin: Fix default value when SDP direction is unspecified | |
According to RFC 4566 (section 6), if sendrecv/sendonly/recvonly are not | |
specified, the default is sendrecv, except for broadcast and H332 conference | |
types. | |
--- | |
.../gst-plugins-bad/ext/webrtc/webrtcsdp.c | 26 ++++++++++++++----- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 4b0e4fb2f02a29193779c6aa2482329311b813c3 Mon Sep 17 00:00:00 2001 | |
From: Arun Raghavan <[email protected]> | |
Date: Mon, 9 Jan 2023 21:16:48 -0500 | |
Subject: [PATCH 1/3] webrtcbin: Accept SDP without a=mid lines | |
This should be fine for non-bundle media. | |
--- | |
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c | 4 +--- | |
subprojects/gst-plugins-bad/ext/webrtc/webrtcsdp.c | 7 +++---- | |
2 files changed, 4 insertions(+), 7 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c | |
index 6a8f722..4ca44ab 100644 | |
--- a/ext/webrtc/gstwebrtcbin.c | |
+++ b/ext/webrtc/gstwebrtcbin.c | |
@@ -4415,8 +4415,6 @@ _create_answer_task (GstWebRTCBin * webrtc, const GstStructure * options, | |
} | |
mid = gst_sdp_media_get_attribute_val (media, "mid"); | |
- /* XXX: not strictly required but a lot of functionality requires a mid */ | |
- g_assert (mid); |