Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
9415cdca
提交
9415cdca
authored
11月 16, 2006
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@3385
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
594ccf8b
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
11 行增加
和
8 行删除
+11
-8
.update
libs/libdingaling/.update
+1
-1
libdingaling.c
libs/libdingaling/src/libdingaling.c
+5
-5
libdingaling.h
libs/libdingaling/src/libdingaling.h
+4
-1
mod_dingaling.c
src/mod/endpoints/mod_dingaling/mod_dingaling.c
+1
-1
没有找到文件。
libs/libdingaling/.update
浏览文件 @
9415cdca
Wed Nov 15 20:20:53
UTC 2006
Thu Nov 16 16:09:31
UTC 2006
libs/libdingaling/src/libdingaling.c
浏览文件 @
9415cdca
...
@@ -250,7 +250,7 @@ ldl_status ldl_session_destroy(ldl_session_t **session_p)
...
@@ -250,7 +250,7 @@ ldl_status ldl_session_destroy(ldl_session_t **session_p)
}
}
ldl_status
ldl_session_create
(
ldl_session_t
**
session_p
,
ldl_handle_t
*
handle
,
char
*
id
,
char
*
them
,
char
*
me
)
ldl_status
ldl_session_create
(
ldl_session_t
**
session_p
,
ldl_handle_t
*
handle
,
char
*
id
,
char
*
them
,
char
*
me
,
ldl_user_flag_t
flags
)
{
{
ldl_session_t
*
session
=
NULL
;
ldl_session_t
*
session
=
NULL
;
...
@@ -264,9 +264,9 @@ ldl_status ldl_session_create(ldl_session_t **session_p, ldl_handle_t *handle, c
...
@@ -264,9 +264,9 @@ ldl_status ldl_session_create(ldl_session_t **session_p, ldl_handle_t *handle, c
session
->
id
=
apr_pstrdup
(
session
->
pool
,
id
);
session
->
id
=
apr_pstrdup
(
session
->
pool
,
id
);
session
->
them
=
apr_pstrdup
(
session
->
pool
,
them
);
session
->
them
=
apr_pstrdup
(
session
->
pool
,
them
);
if
(
me
)
{
session
->
initiator
=
apr_pstrdup
(
session
->
pool
,
me
);
session
->
initiator
=
apr_pstrdup
(
session
->
pool
,
(
flags
&
LDL_FLAG_OUTBOUND
)
?
me
:
them
);
}
if
(
ldl_test_flag
(
handle
,
LDL_FLAG_COMPONENT
))
{
if
(
ldl_test_flag
(
handle
,
LDL_FLAG_COMPONENT
))
{
session
->
login
=
apr_pstrdup
(
session
->
pool
,
me
);
session
->
login
=
apr_pstrdup
(
session
->
pool
,
me
);
...
@@ -298,7 +298,7 @@ static ldl_status parse_session_code(ldl_handle_t *handle, char *id, char *from,
...
@@ -298,7 +298,7 @@ static ldl_status parse_session_code(ldl_handle_t *handle, char *id, char *from,
char
*
msg
=
NULL
;
char
*
msg
=
NULL
;
if
(
!
(
session
=
apr_hash_get
(
handle
->
sessions
,
id
,
APR_HASH_KEY_STRING
)))
{
if
(
!
(
session
=
apr_hash_get
(
handle
->
sessions
,
id
,
APR_HASH_KEY_STRING
)))
{
ldl_session_create
(
&
session
,
handle
,
id
,
from
,
to
);
ldl_session_create
(
&
session
,
handle
,
id
,
from
,
to
,
LDL_FLAG_NONE
);
if
(
!
session
)
{
if
(
!
session
)
{
return
LDL_STATUS_MEMERR
;
return
LDL_STATUS_MEMERR
;
}
}
...
...
libs/libdingaling/src/libdingaling.h
浏览文件 @
9415cdca
...
@@ -110,10 +110,12 @@ typedef enum {
...
@@ -110,10 +110,12 @@ typedef enum {
}
ldl_flag_t
;
}
ldl_flag_t
;
typedef
enum
{
typedef
enum
{
LDL_FLAG_NONE
=
0
,
LDL_FLAG_TLS
=
(
1
<<
10
),
LDL_FLAG_TLS
=
(
1
<<
10
),
LDL_FLAG_SASL_PLAIN
=
(
1
<<
11
),
LDL_FLAG_SASL_PLAIN
=
(
1
<<
11
),
LDL_FLAG_SASL_MD5
=
(
1
<<
12
),
LDL_FLAG_SASL_MD5
=
(
1
<<
12
),
LDL_FLAG_COMPONENT
=
(
1
<<
13
),
LDL_FLAG_COMPONENT
=
(
1
<<
13
),
LDL_FLAG_OUTBOUND
=
(
1
<<
14
)
}
ldl_user_flag_t
;
}
ldl_user_flag_t
;
typedef
enum
{
typedef
enum
{
...
@@ -253,9 +255,10 @@ void ldl_session_set_value(ldl_session_t *session, char *key, char *val);
...
@@ -253,9 +255,10 @@ void ldl_session_set_value(ldl_session_t *session, char *key, char *val);
\param id the id to use for the session
\param id the id to use for the session
\param them the id of the other end of the call
\param them the id of the other end of the call
\param me the id of our end of the call
\param me the id of our end of the call
\param flags user flags
\return SUCCESS OR FAILURE
\return SUCCESS OR FAILURE
*/
*/
ldl_status
ldl_session_create
(
ldl_session_t
**
session_p
,
ldl_handle_t
*
handle
,
char
*
id
,
char
*
them
,
char
*
me
);
ldl_status
ldl_session_create
(
ldl_session_t
**
session_p
,
ldl_handle_t
*
handle
,
char
*
id
,
char
*
them
,
char
*
me
,
ldl_user_flag_t
flags
);
/*!
/*!
\brief get the id of a session
\brief get the id of a session
...
...
src/mod/endpoints/mod_dingaling/mod_dingaling.c
浏览文件 @
9415cdca
...
@@ -1565,7 +1565,7 @@ static switch_status_t channel_outgoing_channel(switch_core_session_t *session,
...
@@ -1565,7 +1565,7 @@ static switch_status_t channel_outgoing_channel(switch_core_session_t *session,
switch_stun_random_string
(
sess_id
,
10
,
"0123456789"
);
switch_stun_random_string
(
sess_id
,
10
,
"0123456789"
);
tech_pvt
->
us
=
switch_core_session_strdup
(
session
,
user
);
tech_pvt
->
us
=
switch_core_session_strdup
(
session
,
user
);
tech_pvt
->
them
=
switch_core_session_strdup
(
session
,
full_id
);
tech_pvt
->
them
=
switch_core_session_strdup
(
session
,
full_id
);
ldl_session_create
(
&
dlsession
,
mdl_profile
->
handle
,
sess_id
,
full_id
,
user
);
ldl_session_create
(
&
dlsession
,
mdl_profile
->
handle
,
sess_id
,
full_id
,
user
,
LDL_FLAG_OUTBOUND
);
tech_pvt
->
profile
=
mdl_profile
;
tech_pvt
->
profile
=
mdl_profile
;
ldl_session_set_private
(
dlsession
,
*
new_session
);
ldl_session_set_private
(
dlsession
,
*
new_session
);
//ldl_session_set_value(dlsession, "dnis", dnis);
//ldl_session_set_value(dlsession, "dnis", dnis);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论