0

Is it possible to originate several outgoing calls with Asterisk taking several media streams from some program's outputs (or from ALSA/etc playbacks or from FIFO-pipes)? Fully automated solution, no human intervention required.

Issue

I have software which generates several (separated) audio streams. It can stream into ALSA/OSS/PulseAudio devices or FIFO-pipes (named pipes).

I need to resend this audio to my STT/ASR service provider via SIP (the only interface supported by provider) continuously.

Current workaround

My current test case is to record short files and use them with simple call-files like this one:

Channel: SIP/asr.provider.com/12345
Application: Playback
Data: chunk-filename-here
MaxRetries: 2

All works fine, but I need to make this process continuous (dial on start and keep connection alive as long as possible). I guess I need to replace Application: Playback with other appropriate application in call-files or in my dial-plan context.

UPD

As follows from chan_oss and chan_oss docs, both of them are not suitable:

With 1.2.x versions of Asterisk, only one OSS channel can be created and only one call can be placed to/from the OSS channel at a given time.

viktorkho
  • 618
  • 6
  • 19

1 Answers1

0

Yes, see chan_alsa and chan_oss.

You also may require confbridge to split it.

arheops
  • 15,544
  • 1
  • 21
  • 27
  • A you sure it is possible to start __several (simultaneous) calls__ with ALSA/OSS and confbridge? Documentation for this chans says otherwise. – viktorkho Apr 25 '20 at 12:11
  • Send alsa to confbridge, send any number of callls from confbridge to destination. Or use JACK. – arheops Apr 25 '20 at 18:32
  • But `chan_alsa` allows to create just one call. And I don't see how `confbridge` allows to solve this limitation. – viktorkho Apr 26 '20 at 04:11
  • Cofnbridge do conference, i.e bridge as many calls to one sound space as you wish. – arheops Apr 26 '20 at 06:46