From: Olle Johansson Date: Tue, 13 Mar 2007 09:12:16 +0000 (+0000) Subject: Issue #9251 - Clear From URI from user attributes (tgrman) X-Git-Tag: 1.4.2~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83bb6718fc49c97bb8c47ca5c62c0c25815990e8;p=thirdparty%2Fasterisk.git Issue #9251 - Clear From URI from user attributes (tgrman) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@58843 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1d5c4c7a66..12e353147f 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -9007,6 +9007,10 @@ static enum check_auth_result check_user_full(struct sip_pvt *p, struct sip_requ if ((c = strchr(of, ':'))) *c = '\0'; tmp = ast_strdupa(of); + /* We need to be able to handle auth-headers looking like + + */ + tmp = strsep(&tmp, ";"); if (ast_is_shrinkable_phonenumber(tmp)) ast_shrink_phone_number(tmp); ast_string_field_set(p, cid_num, tmp);