• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Native.switch_event类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中FreeSWITCH.Native.switch_event的典型用法代码示例。如果您正苦于以下问题:C# switch_event类的具体用法?C# switch_event怎么用?C# switch_event使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



switch_event类属于FreeSWITCH.Native命名空间,在下文中一共展示了switch_event类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: actual_event_handler

        private void actual_event_handler(switch_event evt)
        {
            if (evt.event_id == switch_event_types_t.SWITCH_EVENT_MODULE_LOAD)
                return;

            if (evt.event_id == switch_event_types_t.SWITCH_EVENT_CUSTOM && evt.subclass_name == "sofia::gateway_state")
                blockConsole.Text = "Sofia Gateway State: " + freeswitch.switch_event_get_header(evt, "State") + "\r\n" + blockConsole.Text;
            else
                blockConsole.Text = "Event " + evt.event_id + "\r\n" + blockConsole.Text;
        }
开发者ID:mitchcapper,项目名称:FSMisc,代码行数:10,代码来源:MainWindow.xaml.cs


示例2: switch_xml_locate_language

 public static switch_status_t switch_xml_locate_language(SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml node, switch_event arg2, SWIGTYPE_p_p_switch_xml language, SWIGTYPE_p_p_switch_xml phrases, SWIGTYPE_p_p_switch_xml macros, string str_language) {
   switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_language(SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(node), switch_event.getCPtr(arg2), SWIGTYPE_p_p_switch_xml.getCPtr(language), SWIGTYPE_p_p_switch_xml.getCPtr(phrases), SWIGTYPE_p_p_switch_xml.getCPtr(macros), str_language);
   return ret;
 }
开发者ID:jasonbourneh0810,项目名称:FreeSWITCH,代码行数:4,代码来源:swig.2010.cs


示例3: switch_xml_open_cfg

 public static switch_xml switch_xml_open_cfg(string file_path, SWIGTYPE_p_p_switch_xml node, switch_event arg2)
 {
     IntPtr cPtr = freeswitchPINVOKE.switch_xml_open_cfg(file_path, SWIGTYPE_p_p_switch_xml.getCPtr(node), switch_event.getCPtr(arg2));
     switch_xml ret = (cPtr == IntPtr.Zero) ? null : new switch_xml(cPtr, false);
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:6,代码来源:swig.2010.cs


示例4: switch_xml_locate_user

 public static switch_status_t switch_xml_locate_user(string key, string user_name, string domain_name, string ip, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml domain, SWIGTYPE_p_p_switch_xml user, SWIGTYPE_p_p_switch_xml ingroup, switch_event arg8)
 {
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_user(key, user_name, domain_name, ip, SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(domain), SWIGTYPE_p_p_switch_xml.getCPtr(user), SWIGTYPE_p_p_switch_xml.getCPtr(ingroup), switch_event.getCPtr(arg8));
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs


示例5: switch_xml_locate_domain

 public static switch_status_t switch_xml_locate_domain(string domain_name, switch_event arg1, SWIGTYPE_p_p_switch_xml root, SWIGTYPE_p_p_switch_xml domain)
 {
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_xml_locate_domain(domain_name, switch_event.getCPtr(arg1), SWIGTYPE_p_p_switch_xml.getCPtr(root), SWIGTYPE_p_p_switch_xml.getCPtr(domain));
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs


示例6: switch_ivr_phrase_macro_event

 public static switch_status_t switch_ivr_phrase_macro_event(SWIGTYPE_p_switch_core_session session, string macro_name, string data, switch_event arg3, string lang, switch_input_args_t args)
 {
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_ivr_phrase_macro_event(SWIGTYPE_p_switch_core_session.getCPtr(session), macro_name, data, switch_event.getCPtr(arg3), lang, switch_input_args_t.getCPtr(args));
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs


示例7: 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


示例8: switch_event_set_priority

 public static switch_status_t switch_event_set_priority(switch_event arg0, switch_priority_t priority)
 {
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_set_priority(switch_event.getCPtr(arg0), (int)priority);
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs


示例9: switch_event_build_param_string

 public static string switch_event_build_param_string(switch_event arg0, string prefix, SWIGTYPE_p_switch_hash vars_map)
 {
     string ret = freeswitchPINVOKE.switch_event_build_param_string(switch_event.getCPtr(arg0), prefix, SWIGTYPE_p_switch_hash.getCPtr(vars_map));
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs


示例10: switch_event_add_header_string

 public static switch_status_t switch_event_add_header_string(switch_event arg0, switch_stack_t stack, string header_name, string data)
 {
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_add_header_string(switch_event.getCPtr(arg0), (int)stack, header_name, data);
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs


示例11: switch_core_session_outgoing_channel

 public static switch_call_cause_t switch_core_session_outgoing_channel(SWIGTYPE_p_switch_core_session session, switch_event var_event, string endpoint_name, switch_caller_profile caller_profile, SWIGTYPE_p_p_switch_core_session new_session, SWIGTYPE_p_p_apr_pool_t pool, uint flags, SWIGTYPE_p_switch_call_cause_t cancel_cause)
 {
     switch_call_cause_t ret = (switch_call_cause_t)freeswitchPINVOKE.switch_core_session_outgoing_channel(SWIGTYPE_p_switch_core_session.getCPtr(session), switch_event.getCPtr(var_event), endpoint_name, switch_caller_profile.getCPtr(caller_profile), SWIGTYPE_p_p_switch_core_session.getCPtr(new_session), SWIGTYPE_p_p_apr_pool_t.getCPtr(pool), flags, SWIGTYPE_p_switch_call_cause_t.getCPtr(cancel_cause));
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs


示例12: getCPtr

 internal static HandleRef getCPtr(switch_event obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:4,代码来源:swig.2010.cs


示例13: switch_channel_process_export

 public static void switch_channel_process_export(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_switch_channel peer_channel, switch_event var_event, string export_varname)
 {
     freeswitchPINVOKE.switch_channel_process_export(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_switch_channel.getCPtr(peer_channel), switch_event.getCPtr(var_event), export_varname);
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:4,代码来源:swig.2010.cs


示例14: switch_channel_event_set_extended_data

 public static void switch_channel_event_set_extended_data(SWIGTYPE_p_switch_channel channel, switch_event arg1)
 {
     freeswitchPINVOKE.switch_channel_event_set_extended_data(SWIGTYPE_p_switch_channel.getCPtr(channel), switch_event.getCPtr(arg1));
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:4,代码来源:swig.2010.cs


示例15: switch_caller_profile_event_set_data

 public static void switch_caller_profile_event_set_data(switch_caller_profile caller_profile, string prefix, switch_event arg2)
 {
     freeswitchPINVOKE.switch_caller_profile_event_set_data(switch_caller_profile.getCPtr(caller_profile), prefix, switch_event.getCPtr(arg2));
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:4,代码来源:swig.2010.cs


示例16: switch_event_serialize

 public static switch_status_t switch_event_serialize(switch_event arg0, ref string str, switch_bool_t encode)
 {
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_serialize(switch_event.getCPtr(arg0), ref str, (int)encode);
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs


示例17: switch_event_serialize_json

 public static switch_status_t switch_event_serialize_json(switch_event arg0, ref string str)
 {
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_serialize_json(switch_event.getCPtr(arg0), ref str);
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs


示例18: switch_event_del_header_val

 public static switch_status_t switch_event_del_header_val(switch_event arg0, string header_name, string val)
 {
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_del_header_val(switch_event.getCPtr(arg0), header_name, val);
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs


示例19: switch_event_set_subclass_name

 public static switch_status_t switch_event_set_subclass_name(switch_event arg0, string subclass_name)
 {
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_set_subclass_name(switch_event.getCPtr(arg0), subclass_name);
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs


示例20: switch_event_dup

 public static switch_status_t switch_event_dup(SWIGTYPE_p_p_switch_event arg0, switch_event todup)
 {
     switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_event_dup(SWIGTYPE_p_p_switch_event.getCPtr(arg0), switch_event.getCPtr(todup));
     return ret;
 }
开发者ID:newfront,项目名称:FreeSWITCH,代码行数:5,代码来源:swig.2010.cs



注:本文中的FreeSWITCH.Native.switch_event类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Native.switch_file_handle类代码示例发布时间:2022-05-26
下一篇:
C# Native.switch_endpoint_interface类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap