dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
9
share rss forum feed

gweidenh

join:2002-05-18
Houston, TX
kudos:3
reply to Takamurasan

Re: Capturing incoming audio

Just brainstorming here. I wonder if you could accomplish this task with Wireshark.

I know you can playback the audio from a captured RTP stream using wireshark. I wonder if you can filter the capture to only show incoming packets and then playback the audio?


Takamurasan

@electronicbox.net
I actually read about something like this also,

but I would like to process the stream live, like to pass the stream on to a java method or something, if that makes sense.

SCADAGeo

join:2012-11-08
N California
kudos:2
said by Takamurasan :

I would like to process the stream live, like to pass the stream on to a java method or something, if that makes sense.

Have you considered using the Enhanced Asterisk Gateway Interface (EAGI) where file descriptor 3 is an audio pipe?


Takamurasan

@electronicbox.net
Nope, I never touched the AGI before,


Takamurasan

@electronicbox.net
reply to SCADAGeo
Do you have any suggestion for a PDF or a website where I can look more deeply into this? I started looking, I think it might just be what I'm looking for.

SCADAGeo

join:2012-11-08
N California
kudos:2
said by Takamurasan :

Do you have any suggestion for a PDF or a website where I can look more deeply into this? I started looking, I think it might just be what I'm looking for.

A quick overview (from the shell/terminal): [edited for grammar]
asterisk -rx "core show application EAGI"
 

Overview of AGI - EAGI is a variant:
http://ofps.oreilly.com/titles/9780596517342/AGI.html
 

Sample perl script:
http://www.voip-info.org/wiki/view/Perl+EAGI
 

Another option to get the audio stream:
http://jackaudio.org/
 

Have fun! :)


Takamurasan

@electronicbox.net
Thanks ^_^