提交 2bd4fdad authored 作者: Michael Jerris's avatar Michael Jerris

don't strip the resource off the from in a chat msg

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4288 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 67125995
......@@ -1643,20 +1643,15 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
}
if (cid_msg) {
char *us, *them;
us = strdup(tech_pvt->us);
char *them;
them = strdup(tech_pvt->them);
if (us && them) {
if (them) {
char *p;
if ((p = strchr(us, '/'))) {
*p = '\0';
}
if ((p = strchr(them, '/'))) {
*p = '\0';
}
ldl_handle_send_msg(mdl_profile->handle, us, them, "", cid_msg);
ldl_handle_send_msg(mdl_profile->handle, tech_pvt->us, them, "", cid_msg);
}
switch_safe_free(us);
switch_safe_free(them);
}
switch_safe_free(f_cid_msg);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论