arnacon-webrtc-service 0.1.49 → 0.1.50
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/package.json
CHANGED
|
@@ -84,7 +84,9 @@ function createIvrAudioPlayback({
|
|
|
84
84
|
const initialSeq = Number(seed?.header?.sequenceNumber ?? Math.floor(Math.random() * 65535));
|
|
85
85
|
const initialTs = Number(seed?.header?.timestamp ?? Math.floor(Math.random() * 0xffffffff));
|
|
86
86
|
const initialSsrc = Number(seed?.header?.ssrc ?? Math.floor(Math.random() * 0xffffffff));
|
|
87
|
-
|
|
87
|
+
// Injected IVR audio is encoded as PCMA (A-law), so force PT=8.
|
|
88
|
+
// Do not inherit inbound caller PT (often Opus/111), which causes silent playback.
|
|
89
|
+
const initialPt = RTP_PT_PCMA;
|
|
88
90
|
|
|
89
91
|
const created = {
|
|
90
92
|
timer: null,
|