[Freeswitch-users] Capturing the Current Call Audio

ik idokan at gmail.com
Sat Sep 12 18:25:55 MSD 2015


It does has the RTP (and RTCP).
You can export one or more calls to the same file.

On Sat, Sep 12, 2015 at 12:27 AM, Leonardo Lima Ribeiro <
llribeiro90 at gmail.com> wrote:

> And from the cap file I can get the audio right?
> I’m taking a look in some scripts that can extract the audio from pcap
> files, but I think it’s need to be embedded on the pcap file when it’s
> saving right?
>
> I tried the sngrep and it generated a 128k pcap file, and I did about 3
> calls, does it really have the audio?
>
> (I’m about to test pcapsipdump but the installation is failing in OS X, I
> think I will move to a CentOS machine)
>
> Thank you all guys!
>
> Em 11/09/2015, à(s) 2:47 PM, ik <idokan at gmail.com> escreveu:
>
> I'm using sngrep, it saves a specific dialog to a pcap file, or several
> dialogs, based on what you select.
>
> On Fri, Sep 11, 2015 at 4:58 PM, Aqs Younas <aqsyounas at gmail.com> wrote:
>
>> pcapsipdump captures all calls on particular instance into separate
>> files. You can't make it to capture a specific file.
>>
>> On 11 September 2015 at 16:43, Leonardo Ribeiro <llribeiro90 at gmail.com>
>> wrote:
>>
>>> 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
>>>>>
>>>>
>>> _________________________________________________________________________
>>> 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
>>
>
> _________________________________________________________________________
> 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/20150912/be677edd/attachment.html 


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