<div>You can use media bug API to read and analyze audio (I think RTP details are abstracted away by media bug). </div>
<div><br> </div>
<div class="gmail_quote">On Tue, Feb 8, 2011 at 9:25 AM, Frankie Yiu <span dir="ltr"><<a href="mailto:yky1628@yahoo.com">yky1628@yahoo.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<div></div>
<div>
<div></div>
<div></div>Hi there,</div>
<div style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<div style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<div style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<div style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<div style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<div style="FONT-FAMILY: times new roman, new york, times, serif; COLOR: #000000; FONT-SIZE: 12pt">
<div> </div>
<div>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.)</div>
<div> </div>
<div>We found a code for IVR test (<a href="http://docs.freeswitch.org/switch__ivr_8c-source.html" target="_blank">http://docs.freeswitch.org/switch__ivr_8c-source.html</a>) Function name: switch_ivr_sound_test</div>
<div> </div>
<div>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( ) " </div>
<div> </div>
<div>< in <a href="http://swig.cs/" rel="nofollow" target="_blank">swig.cs</a></div>
<div> </div>
<div>switch_core_session_read_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_frame frame, uint flags, int stream_id) ></div>
<div> </div>
<div>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 (switch_core_io.c)</div>
<div> </div>
<div>1) So is there any way I can call this function in C#?</div>
<div>2) Is there another function or routine that you can suggest me to for reading RTP package?</div>
<div><br>Thanks,</div>
<div><br> </div>Frank
<div></div></div><br></div></div></div><br></div></div></div><br></div><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Thanks & Regards,<br>Godson Gera<br><a href="http://godson.in/">FreeSWITCH Asterisk Consultant</a><br>