提交 61f3d679 authored 作者: Anthony Minessale's avatar Anthony Minessale

don't let caller profiles init with blank caller id

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9064 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 df5afbca
...@@ -56,6 +56,14 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_new(switch_memor ...@@ -56,6 +56,14 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_new(switch_memor
context = "default"; context = "default";
} }
if (switch_strlen_zero(caller_id_name)) {
caller_id_name = "FreeSWITCH";
}
if (switch_strlen_zero(caller_id_number)) {
caller_id_number = "0000000000";
}
profile_dup_clean(username, profile->username, pool); profile_dup_clean(username, profile->username, pool);
profile_dup_clean(dialplan, profile->dialplan, pool); profile_dup_clean(dialplan, profile->dialplan, pool);
profile_dup_clean(caller_id_name, profile->caller_id_name, pool); profile_dup_clean(caller_id_name, profile->caller_id_name, pool);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论