[asterisk-dev] Creating a MoH source
Paulo Garcia
paulo.astdev at gmail.com
Thu Oct 11 16:18:44 CDT 2007
Hi,
Thanks for your answer.
Thinking in a local system, is it possible to send the samples directly to
Asterisk, without a server and setting a custom application in
musiconhold.conf, without changing Asterisk code?
Any idea?
Thanks again!
Paulo
On 10/9/07, John Todd <jtodd at loligo.com> wrote:
>
> At 5:38 PM -0300 2007/10/9, Paulo Garcia wrote:
> >Hi,
> >
> >I'd like to use my channel driver as a music on hold for Asterisk.
> >My hardware has a line-in interface, as a standard sound card but
> >due to my SDK limitations, I can access this line-in audio only
> >using my channel driver instead of a external application. (The
> >channel driver has other duties like PSTN interface, etc).
> >
> >My first thought was reading the line-in samples from inside my
> >channel driver and write it to a pipe or something. Then, I could
> >try to configure the musiconhold.conf to run an external script that
> >read from this pipe. I think it can works but I'm not convinced that
> >it is a good solution.
> >
> >Any advice on this?
> >
> >Thanks!
> >
> >--
> >--------------
> >Paulo Garcia
> >Pika Technologies Inc
>
> Paulo -
> Perhaps an interesting concept would be to write a channel driver
> that turned audio directly into an MP3 stream that could be uploaded
> to a broadcasting server (or served locally). Then you could just
> use the streaming methods to play off of localhost, or you could use
> it to transmit up to a larger broadcasting system to distribute to
> other consumers of the media. It may be possible to do this with an
> EAGI and sox and named pipes, but that's complex and easily lost to
> the shifting sands of Google method searches. It would be handy to
> have all of that distilled in a channel driver that took the correct
> arguments and went on it's way, and then possibly embedded into
> Asterisk permanently.
>
> JT
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
--
--------------
Paulo Garcia
Pika Technologies Inc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20071011/e855cce7/attachment.htm
More information about the asterisk-dev
mailing list