[Freeswitch-dev] C# problem for calling "freeswitch.switch_core_session_read_frame()"
Owen Williams
williams.owen at gmail.com
Wed Feb 9 15:22:26 MSK 2011
Have you looked at http://wiki.freeswitch.org/wiki/Mod_avmd
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.
If this doesn't fit your use case the mod_avmd source code may give you
somewhere to start.
Regards,
Owen
On 8 February 2011 03:46, 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:
> switch_ivr_sound_test
>
> 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
> (switch_core_io.c)
>
> 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?
>
> Thanks,
>
>
> Frank
>
>
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20110209/d727567d/attachment-0001.html
More information about the FreeSWITCH-dev
mailing list