[Freeswitch-users] Processing Live Audio during a call between 2 extensions
steveayre at gmail.com
Sun Jan 16 12:26:53 MSK 2011
It was hinted on IRC that media bugs may be the way to go. It all depends on
what exactly you're trying to do.
Read FreeSWITCH -> Modules -> Core Library -> Media Bugs on
http://docs.freeswitch.org/ and see if they sound the way to go.
In particular this may be what you need:
switch_frame_t <http://docs.freeswitch.org/structswitch__frame.html> *)
) Obtain a replace frame from a media bug.
You'll write a module in C that when loaded registeres a callback with FS.
Any channel using the media bug will get the audio decoded, given to the
media bug. Your app will process the audio and replace it, then FS will
encode and send the replacement. Decoded audio will be a data buffer
containing L16 (WAV) samples.
On 14 January 2011 16:44, Michel Habib <michelhabib at gmail.com> wrote:
> Dear Freeswitch Developers, i am relatively new to freeswitch and i am
> seeking some advice.
> I am creating an External Application that does some [live] processing on
> the Audio of the freeswitch call before sending it to the second Call Leg,
> and vice versa.
> Can you please direct me to the best way to do that and how to
> access/capture the live audio channel in both legs while it is streaming,
> and how to resubmit it again to the other leg?
> I read the book about freeswitch, but still couldnt figure the best
> approach to do that, any hint is appreciated.
> Best Regards,
> Michel Habib.
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users