<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><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; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>&nbsp;</DIV>
<DIV>I would like to&nbsp;dial a phone number, and read the&nbsp;RTP package back when connected&nbsp;so that we can analyze the data; (to determine when we should play&nbsp;an audio&nbsp;at the right time--human or answer machine.)</DIV>
<DIV>&nbsp;</DIV>
<DIV>We found a code&nbsp;for IVR test&nbsp;(http://docs.freeswitch.org/switch__ivr_8c-source.html) Function name: switch_ivr_sound_test</DIV>
<DIV>&nbsp;</DIV>
<DIV>We would like to do&nbsp;the same but with C# code,&nbsp;but we encountered a problem when calling the&nbsp;function "freeswitch.switch_core_session_read_frame(&nbsp;&nbsp;)&nbsp;" </DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt; in <A href="http://swig.cs/" target=_blank>swig.cs</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>switch_core_session_read_frame(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_frame frame, uint flags, int stream_id)&nbsp;&nbsp; &gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>where the second parameter--frame is a pointer to pointer of switch_frame type&nbsp;and in C# code,&nbsp;it&nbsp;is&nbsp;having a difficulty passing&nbsp;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>&nbsp;</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>&nbsp;</DIV>Frank
<DIV></DIV></DIV><BR></DIV></DIV></div><br>

      </body></html>