[Freeswitch-users] Capturing the Current Call Audio

Leonardo Ribeiro llribeiro90 at gmail.com
Fri Sep 11 15:43:13 MSD 2015


Sorry all, it was my phone auto corrector. Again:

Thanks Avi,

I had read about and I'm going to try that. My IVR is a script on lua, do
you know how can I call the  pcapsipdump for the current call from there?

I was thinking about another solution... What if I execute a record
mycall.wav 300 and try to stream this file while is being record? It would
work? The main problem is that the script calls the execute record as a
synchronous way, but I would need to do some actions while it's recording
like play sounds, curl posts etc.

Thank you!
Em 11/09/2015 08:38, "Leonardo Ribeiro" <llribeiro90 at gmail.com> escreveu:

> Thanks Avi,
>
> I've readed about and I'm going to try that. My IVR is a script on lua, do
> you know how can I call the  pcapsipdump for the current call from there?
>
> I was thinking Abou another solution, and what if I execute a record
> mycall.wav 300 and try to stream this file while is being record? It would
> work? The main problem is that the script calls the execute record as a
> synchronous way, but I would need to do some actions while it's recording
> like play sounds, curl posta etc.
>
> Thanks you!
> Em 10/09/2015 23:08, "Avi Marcus" <avi at avimarcus.net> escreveu:
>
>> I use pcapsipdump to capture all call SIP + RTP, grouped by call in PCAP
>> format.
>>
>> -Avi
>>
>> On Fri, Sep 11, 2015 at 4:36 AM, Leonardo Lima Ribeiro <
>> llribeiro90 at gmail.com> wrote:
>>
>>> Hi!
>>>
>>> I’m tying to capture the current call audio but I have no idea on how to
>>> do that.
>>>
>>> My main achievement is to get the current call audio and them stream
>>> this audio bytes to an API via HTTP Post.
>>>
>>> I was doing some tries with mod_shout and mod_vlc, and I was successful
>>> in the streaming part - I tested some wavs and mp3 files.
>>>
>>> But the mainly part is that I need the current call audio, and it has no
>>> file in the system to stream right?
>>>
>>> I was thinking if there’s a command that I can get the audio bytes from
>>> the current call but I really don’t know, I could not find any option like
>>> that.
>>>
>>> Could you please help me?
>>>
>>> Thank you,
>>> Leonardo Ribeiro
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150911/f181fd2c/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list