[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeswitch-dev
Subject:    Re: [Freeswitch-dev] How to read RTP package/data?
From:       Steven Ayre <steveayre () gmail ! com>
Date:       2011-02-09 10:51:27
Message-ID: AANLkTimpemK1aeB5yNnLuHTTcXE_sj+zqaSfHaiEUkuk () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


The buffer will contain audio in L16 format.

-Steve


On 9 February 2011 10:50, Steven Ayre <steveayre@gmail.com> wrote:

> You want a media bug. It registers a callback to your module where FS will
> decode the data and pass it to your module. You can then process it, and
> even modify it if you wish.
> 
> API Documentation is on http://docs.freeswitch.org/ at Modules -> Core
> Library -> Media Bugs
> 
> -Steve
> 
> 
> 
> On 9 February 2011 10:45, Frankie Yiu <yky1628@yahoo.com> wrote:
> 
> > Hi there,
> > 
> > I am new to FreeSwitch, and I have a question to ask.
> > 
> > If I want to read the RTP package (data from a person picking up a phone
> > and speak or an answer machine) in C++ or C#, what function should I call to
> > get it?  Currently I can make a call to a phone and play an audio.
> > 
> > Thanks in advance.
> > 
> > Frankie
> > 
> > ------------------------------
> > Food fight?<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NT \
> > EwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367>Enjoy \
> > some healthy debate in the Yahoo! Answers Food & Drink \
> > Q&A.<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396545367>
> >  
> > _______________________________________________
> > FreeSWITCH-dev mailing list
> > FreeSWITCH-dev@lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> > http://www.freeswitch.org
> > 
> > 
> 


[Attachment #5 (text/html)]

The buffer will contain audio in L16 format.<br><br>-Steve<br><br><br><div \
class="gmail_quote">On 9 February 2011 10:50, Steven Ayre <span dir="ltr">&lt;<a \
href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px \
solid rgb(204, 204, 204); padding-left: 1ex;">You want a media bug. It registers a \
callback to your module where FS will decode the data and pass it to your module. You \
can then process it, and even modify it if you wish.<br>

<br>API Documentation is on <a href="http://docs.freeswitch.org/" \
target="_blank">http://docs.freeswitch.org/</a> at Modules -&gt; Core Library -&gt; \
Media Bugs<br> <br>-Steve<br><br><br><br><div \
class="gmail_quote"><div><div></div><div class="h5">On 9 February 2011 10:45, Frankie \
Yiu <span dir="ltr">&lt;<a href="mailto:yky1628@yahoo.com" \
target="_blank">yky1628@yahoo.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; \
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div \
class="h5"> <div><div style="font-family: times new roman,new york,times,serif; \
font-size: 12pt; color: rgb(0, 0, 0);"><div> <div>Hi there,</div>
<div> </div>
<div>I am new to FreeSwitch, and I have a question to ask.</div>
<div> </div>
<div>If I want to read the RTP package (data from a person picking up a phone and \
speak or an answer machine) in C++ or C#, what function should I call to get it?  \
Currently I can make a call to a phone and play an audio.<br>


<br>Thanks in advance.<br> </div>Frankie </div></div><br><div>

<hr size="1"><a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5 \
NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&amp;sid=396545367" \
target="_blank">Food fight?</a> Enjoy some healthy debate<br>


in the <a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NT \
EwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&amp;sid=396545367" \
target="_blank">Yahoo! Answers Food &amp; Drink Q&amp;A.</a></div>


</div><br></div></div>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" \
target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br> <a \
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" \
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br> \
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" \
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br> <a \
href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> \
<br></blockquote></div><br> </blockquote></div><br>



_______________________________________________
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic