Playing audio playlist (multiple files sequentially) in a single SIP call #1500
Unanswered
RezaBagheri8
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
I suspect using the FFmpegFileSource is overkill in this case. Did you spot the AudioExtraSource class and the SendAudioFromStream method? It's pure C#, no FFmpeg binaries required. You will need to convert your audio files into an appropriate format but that's probably be easier than dealing with FFmpeg installs. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using SIP Sorcery in an ASP.NET Core application to establish SIP calls and stream audio using FFmpegFileSource and VoIPMediaSession.
Currently I have successfully implemented:
• SIP call establishment
• Streaming a single audio file into the call using FFmpegFileSource
This works correctly.
Now I have a use case for scheduled playback of an audio playlist (multiple audio files that should be played sequentially in the same call).
Before implementing any workaround, I wanted to ask:
Is there any built-in or officially supported way in SIP Sorcery to play multiple audio files sequentially (playlist) in a single call/session?
If not, what is the recommended approach for this scenario?
For example:
Replacing/swapping audio sources dynamically
Using FFmpeg playlist/concat internally
Recreating media sessions per file
Or delegating playback to a SIP media server
Also for context:
I am using Asterisk as the SIP server in my system.
My backend (ASP.NET Core) currently controls call setup using SIP Sorcery and streams audio.
I would appreciate any guidance on best practices or supported patterns for playlist playback.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions