
Freeswitch开发
文章平均质量分 50
okhelper
专注freeswitch软交换开发,三汇,东进设备及网关
展开
-
Freeswitch 网关事件
gateway down事件 "Core-UUID": "a4421c0a-87e6-11ec-a921-cdfe91464b48", "Event-Calling-File": "sofia_reg.c", "Event-Calling-Function": "sofia_reg_fire_custom_gateway_state_event", "Event-Calling-Line-Number": "150", "Event-Date-GMT": "...原创 2022-02-07 17:16:56 · 706 阅读 · 0 评论 -
Freeswitch分机ping,分机保活
internal.xml配置文件设置参数nat-options-ping为true默认是注释的。那么ping的时间间隔是多少,从哪里设置呢配置文件中,默认没有这个选项,freeswitch默认的时间间隔是30秒如果要改这个参数怎么办?在internal.xml中,添加一下参数:<param name="ping-mean-interval" value="间隔秒数"/>...原创 2021-07-09 16:31:51 · 1194 阅读 · 2 评论 -
channel状态
typedef enum { CS_NEW, CS_INIT, CS_ROUTING, CS_SOFT_EXECUTE, CS_EXECUTE, CS_EXCHANGE_MEDIA, CS_PARK, CS_CONSUME_MEDIA, CS_HIBERN...原创 2020-01-14 17:22:18 · 522 阅读 · 0 评论 -
freeswitch 编译
安装依赖包yum -y install unixODBC-devel mysql-connector-odbc pcre-devel speex-devel libedit-devel openssl-develpostgresql-devel使用vim工具,打开module.conf注释mod_enum模块取消 mod_ilbc mod_rtmp 注释(可以以略...原创 2014-12-11 17:58:33 · 1197 阅读 · 0 评论 -
unimrcp配置文件模板-3
usr/local/freeswitch/conf/autoload_configs/unimrcp.conf.xml<configuration name="unimrcp.conf" description="UniMRCP Client"> <settings> <!-- UniMRCP profile to use for TTS --...原创 2019-11-02 23:11:09 · 733 阅读 · 0 评论 -
unimrcp配置文件模板-2
/usr/local/freeswitch/conf/mrcp_profiles/unimrcpserver-mrcp-v2.xml<include> <profile name="unimrcpserver-mrcp-v2" version="2"> <param name="client-ip" value="192.168.1.36"/>...原创 2019-11-02 23:09:24 · 546 阅读 · 0 评论 -
hangup_after_bridge
hangup_after_bridge bleg挂断后是否挂断aleg。transfer_after_bridge bleg挂断后,aleg transfer目的的。park_after_bridge bleg挂断后,aleg是否park,esl开发接口非常有用。exec_after_bridge_app bleg挂断后后,aleg执行一个APP。api_after_bridge bleg挂断后后...原创 2018-06-08 17:32:09 · 2398 阅读 · 1 评论 -
Freeswitch开启SOA模式
实际环境拓扑图:一般情况下,freeswitch默认使用的是soa模式,有些情况下,是非SOA模式!非SOA模式,会导致什么问题呢?会导致SDP地址错误,造成语音单通!通过拓扑图可以看出,Freeswitch是双网卡服务器,实际环境中,内网IP话机拨打电话时,双向语音正常,双方都可以听到对方讲话。但是在电话呼入的情况下(手机拨打电话进来),bridge或者transfer到内网IP话机上后,手机听...原创 2018-02-25 16:07:22 · 2086 阅读 · 0 评论 -
xml_curl请求dialplan数据参数
variable_sip_contact_host=192.168.2.120Caller-Source=mod_sofiavariable_sip_req_host=192.168.2.33Caller-Orig-Caller-ID-Number=1001Answer-State=ringingvariable_sip_contact_uri=1001@192.168.2.1原创 2018-01-25 10:11:12 · 1427 阅读 · 1 评论 -
Dialplan的xml结构体switch_caller_extension_t
struct switch_caller_extension { /*! The name of the extension */ char *extension_name; /*! The number of the extension */ char *extension_number; /*! Pointer t原创 2018-01-16 19:05:11 · 326 阅读 · 0 评论 -
修改sofia源代码,屏蔽本地网关配置,加载MySQL中的网关配置
啥也不说了,直接上图看效果原创 2018-01-15 00:19:57 · 425 阅读 · 0 评论 -
Can't open lib '/usr/lib64/libmyodbc5.so' : file not found
Can't open lib '/usr/lib64/libmyodbc5.so' : file not found原创 2017-06-27 08:15:06 · 11887 阅读 · 0 评论 -
switch_caller_profile中的times变量结构
struct switch_channel_timetable *times;SWITCH_BEGIN_EXTERN_C struct switch_channel_timetable { switch_time_t profile_created; switch_time_t created; switch_tim原创 2017-07-30 00:31:16 · 473 阅读 · 0 评论 -
freeswitch在通道中添加odbc_dsn
freeswitch原始通道,在mod_sofia中被创建在mod_sofia模块下,sofia.c中找到sofia_glue_attach_private函数的调用,该函数在sofia_glue.c中定义,在该函数的最下面可以找到设置通道名称的代码:if (channame) { sofia_glue_set_name(tech_pvt, channame); }我在该原创 2017-06-27 23:28:41 · 1371 阅读 · 0 评论 -
freeswitch获取SIP客户端IP地址
1)从SIP消息中获取SIP客户端的IP地址和端口信息 一般从mod_sofia模块中使用: char network_ip[80]; int port = 0; sofia_glue_get_addr(de->data->e_msg, network_ip, sizeof(network_ip), &port);原创 2016-12-19 14:58:51 · 3638 阅读 · 0 评论 -
freeswitch函数之switch_separate_string字符串分割
switch_separate_stringswitch_separate_string_string(char *buf, char *delim, _Post_count_(return) char **array, unsigned int arraylen);完成split的功能使用示例:char *params = "param_1=p1,para原创 2017-01-07 15:47:01 · 1713 阅读 · 0 评论