diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 77ef8810d1..5f53949bfc 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5259,7 +5259,8 @@ static int get_rpid_num(char *input,char *output, int maxlen) end = strchr(output,'@'); if (end) *end = '\0'; - + else + output[0] = '\0'; if(strstr(input,"privacy=full") || strstr(input,"privacy=uri")) return AST_PRES_PROHIB_USER_NUMBER_NOT_SCREENED;