Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
17755cbd
提交
17755cbd
authored
8月 09, 2012
作者:
Kapil Gupta
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
adding t38 option code
上级
83e0d9c3
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
339 行增加
和
141 行删除
+339
-141
media_gateway_cmd_handler.c
...d/endpoints/mod_media_gateway/media_gateway_cmd_handler.c
+4
-1
media_gateway_stack.h
src/mod/endpoints/mod_media_gateway/media_gateway_stack.h
+1
-0
media_gateway_utils.c
src/mod/endpoints/mod_media_gateway/media_gateway_utils.c
+332
-140
mod_media_gateway.h
src/mod/endpoints/mod_media_gateway/mod_media_gateway.h
+2
-0
没有找到文件。
src/mod/endpoints/mod_media_gateway/media_gateway_cmd_handler.c
浏览文件 @
17755cbd
...
...
@@ -727,6 +727,7 @@ switch_status_t handle_mg_add_cmd(megaco_profile_t* mg_profile, MgMgcoCommand *i
}
mg_print_t38_attributes
(
term
);
/* TODO - locally assigned SDP must be the part of termination...which we can use to fill responses*/
...
...
@@ -793,6 +794,7 @@ switch_status_t handle_mg_add_cmd(megaco_profile_t* mg_profile, MgMgcoCommand *i
mg_fill_mgco_termid
(
out_termId
,
(
char
*
)
term
->
name
,
strlen
((
char
*
)
term
->
name
),
&
rsp
.
u
.
mgCmdRsp
[
0
]
->
memCp
);
}
if
(
is_rtp
){
/* Whatever Media descriptor we have received, we can copy that and then
* whatever we want we can modify the fields */
/* Kapil - TODO - will see if there is any problem of coping the
...
...
@@ -822,7 +824,6 @@ switch_status_t handle_mg_add_cmd(megaco_profile_t* mg_profile, MgMgcoCommand *i
}
/* only for RTP */
if
(
is_rtp
){
if
(
SWITCH_STATUS_FALSE
==
mg_build_sdp
(
&
desc
->
u
.
media
,
inc_med_desc
,
mg_profile
,
term
,
&
rsp
.
u
.
mgCmdRsp
[
0
]
->
memCp
))
{
if
(
term
->
mg_error_code
&&
(
*
term
->
mg_error_code
==
MGT_MGCP_RSP_CODE_INCONSISTENT_LCL_OPT
)){
mg_util_set_err_string
(
&
errTxt
,
" Unsupported Codec "
);
...
...
@@ -1209,6 +1210,8 @@ switch_status_t handle_mg_modify_cmd(megaco_profile_t* mg_profile, MgMgcoCommand
term
->
u
.
rtp
.
term_id
);
}
mg_print_t38_attributes
(
term
);
/* SDP updated to termination */
megaco_activate_termination
(
term
);
...
...
src/mod/endpoints/mod_media_gateway/media_gateway_stack.h
浏览文件 @
17755cbd
...
...
@@ -218,6 +218,7 @@ switch_status_t mg_send_ins_service_change(megaco_profile_t* mg_profile, const c
switch_status_t
mg_send_notify
(
megaco_profile_t
*
mg_profile
,
const
char
*
term_name
,
MgMgcoObsEvt
*
oevt
);
switch_status_t
mg_send_dtmf_notify
(
megaco_profile_t
*
mg_profile
,
const
char
*
term_name
,
char
*
digits
,
int
num_of_collected_digits
);
switch_status_t
mg_send_ito_notify
(
megaco_profile_t
*
mg_profile
);
void
mg_print_t38_attributes
(
mg_termination_t
*
term
);
switch_status_t
mg_util_build_obs_evt_desc
(
MgMgcoObsEvt
*
obs_event
,
MgMgcoRequestId
*
request_id
,
MgMgcoObsEvtDesc
**
ptr_obs_desc
);
void
mg_print_time
();
switch_status_t
mg_activate_ito_timer
(
megaco_profile_t
*
profile
);
...
...
src/mod/endpoints/mod_media_gateway/media_gateway_utils.c
浏览文件 @
17755cbd
差异被折叠。
点击展开。
src/mod/endpoints/mod_media_gateway/mod_media_gateway.h
浏览文件 @
17755cbd
...
...
@@ -113,6 +113,7 @@ static inline const char *mg_media_type2str(mg_media_type_t type) {
case
MGM_INVALID
:
return
NULL
;
}
return
NULL
;
}
static
inline
mg_media_type_t
mg_media_type_parse
(
const
char
*
str
)
{
...
...
@@ -121,6 +122,7 @@ static inline mg_media_type_t mg_media_type_parse(const char *str) {
}
else
if
(
!
strcasecmp
(
str
,
"image"
))
{
return
MGM_IMAGE
;
}
return
MGM_INVALID
;
}
struct
mg_context_s
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论