[Freeswitch-users] C# problem for calling "freeswitch.switch_core_session_read_frame()"
godson.g at gmail.com
Thu Feb 10 12:33:07 MSK 2011
You can use media bug API to read and analyze audio (I think RTP details are
abstracted away by media bug).
On Tue, Feb 8, 2011 at 9:25 AM, Frankie Yiu <yky1628 at yahoo.com> wrote:
> Hi there,
> I would like to dial a phone number, and read the RTP package back when
> connected so that we can analyze the data; (to determine when we should
> play an audio at the right time--human or answer machine.)
> We found a code for IVR test (
> http://docs.freeswitch.org/switch__ivr_8c-source.html) Function name:
> We would like to do the same but with C# code, but we encountered a problem
> when calling the function "freeswitch.switch_core_session_read_frame( ) "
> < in swig.cs
> switch_core_session_read_frame(SWIGTYPE_p_switch_core_session session,
> SWIGTYPE_p_p_switch_frame frame, uint flags, int stream_id) >
> where the second parameter--frame is a pointer to pointer of switch_frame
> type and in C# code, it is having a difficulty passing an object to the C++
> side and keep the pointer place holder before going deeper into the C code
> 1) So is there any way I can call this function in C#?
> 2) Is there another function or routine that you can suggest me to for
> reading RTP package?
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
Thanks & Regards,
FreeSWITCH Asterisk Consultant <http://godson.in/>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users