本文整理汇总了C#中FreeSWITCH.Native.switch_state_handler_table类的典型用法代码示例。如果您正苦于以下问题:C# switch_state_handler_table类的具体用法?C# switch_state_handler_table怎么用?C# switch_state_handler_table使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
switch_state_handler_table类属于FreeSWITCH.Native命名空间,在下文中一共展示了switch_state_handler_table类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: originate
protected int originate(CoreSession a_leg_session, string dest, int timeout, switch_state_handler_table handlers)
{
int ret = freeswitchPINVOKE.CoreSession_originate(swigCPtr, CoreSession.getCPtr(a_leg_session), dest, timeout, switch_state_handler_table.getCPtr(handlers));
return ret;
}
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs
示例2: getCPtr
internal static HandleRef getCPtr(switch_state_handler_table obj)
{
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:4,代码来源:swig.2010.cs
示例3: switch_ivr_originate
public static switch_status_t switch_ivr_originate(SWIGTYPE_p_switch_core_session session, SWIGTYPE_p_p_switch_core_session bleg, SWIGTYPE_p_switch_call_cause_t cause, string bridgeto, uint timelimit_sec, switch_state_handler_table table, string cid_name_override, string cid_num_override, switch_caller_profile caller_profile_override, switch_event ovars, uint flags, SWIGTYPE_p_switch_call_cause_t cancel_cause)
{
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_originate(SWIGTYPE_p_switch_core_session.getCPtr(session), SWIGTYPE_p_p_switch_core_session.getCPtr(bleg), SWIGTYPE_p_switch_call_cause_t.getCPtr(cause), bridgeto, timelimit_sec, switch_state_handler_table.getCPtr(table), cid_name_override, cid_num_override, switch_caller_profile.getCPtr(caller_profile_override), switch_event.getCPtr(ovars), flags, SWIGTYPE_p_switch_call_cause_t.getCPtr(cancel_cause));
return ret;
}
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs
示例4: switch_core_remove_state_handler
public static void switch_core_remove_state_handler(switch_state_handler_table state_handler)
{
freeswitchPINVOKE.switch_core_remove_state_handler(switch_state_handler_table.getCPtr(state_handler));
}
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:4,代码来源:swig.2010.cs
示例5: switch_core_add_state_handler
public static int switch_core_add_state_handler(switch_state_handler_table state_handler)
{
int ret = freeswitchPINVOKE.switch_core_add_state_handler(switch_state_handler_table.getCPtr(state_handler));
return ret;
}
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs
示例6: switch_channel_clear_state_handler
public static void switch_channel_clear_state_handler(SWIGTYPE_p_switch_channel channel, switch_state_handler_table state_handler)
{
freeswitchPINVOKE.switch_channel_clear_state_handler(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_state_handler_table.getCPtr(state_handler));
}
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:4,代码来源:swig.2010.cs
示例7: switch_channel_add_state_handler
public static int switch_channel_add_state_handler(SWIGTYPE_p_switch_channel channel, switch_state_handler_table state_handler)
{
int ret = freeswitchPINVOKE.switch_channel_add_state_handler(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_state_handler_table.getCPtr(state_handler));
return ret;
}
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs
示例8: originate_ondestroy_method
GCHandle originate_keepalive_handle; // Make sure the B Leg is not collected and disposed until we run ondestroy
switch_status_t originate_ondestroy_method(IntPtr channelPtr) {
// CS_DESTROY lets the bleg be collected
// and frees originate_table memory
// Note that this (bleg ManagedSession) is invalid
// to touch right now - the unmanaged memory has already been free'd
if (this.originate_keepalive_handle.IsAllocated) {
this.originate_keepalive_handle.Free(); // GC can now collect this bleg
}
if (this.originate_table != null) {
this.originate_table.Dispose();
this.originate_table = null;
}
return switch_status_t.SWITCH_STATUS_SUCCESS;
}
开发者ID:jasonbourneh0810,项目名称:FreeSWITCH,代码行数:16,代码来源:ManagedSession.cs
注:本文中的FreeSWITCH.Native.switch_state_handler_table类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论