summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2007-03-13 09:15:17 +0000
committerOlle Johansson <oej@edvina.net>2007-03-13 09:15:17 +0000
commit32f9227ca45e576f6bb7e820bd16980184c5765a (patch)
tree59278ceb95f5bc119435e67cfe6dd6d5f1769d05 /channels
parentd008232b279e4d27d8cdb753b77fe44769810e42 (diff)
Merged revisions 58843 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r58843 | oej | 2007-03-13 10:12:16 +0100 (Tue, 13 Mar 2007) | 2 lines Issue #9251 - Clear From URI from user attributes (tgrman) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 52030e7b3..8b1bcf4d2 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -9858,6 +9858,10 @@ static enum check_auth_result check_user_full(struct sip_pvt *p, struct sip_requ
}
{
char *tmp = ast_strdupa(of);
+ /* We need to be able to handle auth-headers looking like
+ <sip:8164444422;phone-context=+1@1.2.3.4:5060;user=phone;tag=SDadkoa01-gK0c3bdb43>
+ */
+ tmp = strsep(&tmp, ";");
if (ast_is_shrinkable_phonenumber(tmp))
ast_shrink_phone_number(tmp);
ast_string_field_set(p, cid_num, tmp);