From d92e62d4d4053c0a25da6b13d4cbe9df5448d971 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Tue, 23 Nov 2004 16:10:24 +0000 Subject: [PATCH] Fix for rpid (from airport, bug #2910) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4323 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;