提交 ec9b3e8e authored 作者: Michael Jerris's avatar Michael Jerris

initialize caller profile ton and npi elements so we know the difference between…

initialize caller profile ton and npi elements so we know the difference between undefined and unknown

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16836 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 d75f7d75
...@@ -39,6 +39,8 @@ ...@@ -39,6 +39,8 @@
SWITCH_BEGIN_EXTERN_C SWITCH_BEGIN_EXTERN_C
#define SWITCH_ENT_ORIGINATE_DELIM ":_:" #define SWITCH_ENT_ORIGINATE_DELIM ":_:"
#define SWITCH_BLANK_STRING "" #define SWITCH_BLANK_STRING ""
#define SWITCH_TON_UNDEF 255
#define SWITCH_NUMPLAN_UNDEF 255
#ifdef WIN32 #ifdef WIN32
#define SWITCH_SEQ_FWHITE FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY #define SWITCH_SEQ_FWHITE FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY
#define SWITCH_SEQ_FRED FOREGROUND_RED | FOREGROUND_INTENSITY #define SWITCH_SEQ_FRED FOREGROUND_RED | FOREGROUND_INTENSITY
......
...@@ -69,13 +69,21 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_new(switch_memor ...@@ -69,13 +69,21 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_new(switch_memor
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);
profile_dup_clean(caller_id_number, profile->caller_id_number, pool); profile_dup_clean(caller_id_number, profile->caller_id_number, pool);
profile->caller_ton = SWITCH_TON_UNDEF;
profile->caller_numplan = SWITCH_NUMPLAN_UNDEF;
profile_dup_clean(network_addr, profile->network_addr, pool); profile_dup_clean(network_addr, profile->network_addr, pool);
profile_dup_clean(ani, profile->ani, pool); profile_dup_clean(ani, profile->ani, pool);
profile->ani_ton = SWITCH_TON_UNDEF;
profile->ani_numplan = SWITCH_NUMPLAN_UNDEF;
profile_dup_clean(aniii, profile->aniii, pool); profile_dup_clean(aniii, profile->aniii, pool);
profile_dup_clean(rdnis, profile->rdnis, pool); profile_dup_clean(rdnis, profile->rdnis, pool);
profile->rdnis_ton = SWITCH_TON_UNDEF;
profile->rdnis_numplan = SWITCH_NUMPLAN_UNDEF;
profile_dup_clean(source, profile->source, pool); profile_dup_clean(source, profile->source, pool);
profile_dup_clean(context, profile->context, pool); profile_dup_clean(context, profile->context, pool);
profile_dup_clean(destination_number, profile->destination_number, pool); profile_dup_clean(destination_number, profile->destination_number, pool);
profile->destination_number_ton = SWITCH_TON_UNDEF;
profile->destination_number_numplan = SWITCH_NUMPLAN_UNDEF;
profile->uuid = SWITCH_BLANK_STRING; profile->uuid = SWITCH_BLANK_STRING;
profile->chan_name = SWITCH_BLANK_STRING; profile->chan_name = SWITCH_BLANK_STRING;
profile->callee_id_name = SWITCH_BLANK_STRING; profile->callee_id_name = SWITCH_BLANK_STRING;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论