Have you looked at <meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://wiki.freeswitch.org/wiki/Mod_avmd">http://wiki.freeswitch.org/wiki/Mod_avmd</a><div><br></div><div>Perhaps it could solve your problem. i.e. you could start playing your message (initially making the assumption that a human has answered) and if mod_avmd detects a beep then interrupt and replay your message.</div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">If this doesn't fit your use case the mod_avmd source code may give you somewhere to start. </div><div><br></div><div>Regards,</div>
<div><br></div><div>Owen<br><br><div class="gmail_quote">On 8 February 2011 03:46, Frankie Yiu <span dir="ltr"><<a href="mailto:yky1628@yahoo.com">yky1628@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><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> </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/" 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><br>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">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></div>