mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
simple fix for bug #3638
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6221,12 +6221,13 @@ static int check_user_full(struct sip_pvt *p, struct sip_request *req, int sipme
|
|||||||
} else
|
} else
|
||||||
of += 4;
|
of += 4;
|
||||||
/* Get just the username part */
|
/* Get just the username part */
|
||||||
if ((c = strchr(of, '@')))
|
if ((c = strchr(of, '@'))) {
|
||||||
*c = '\0';
|
*c = '\0';
|
||||||
if ((c = strchr(of, ':')))
|
if ((c = strchr(of, ':')))
|
||||||
*c = '\0';
|
*c = '\0';
|
||||||
ast_copy_string(p->cid_num, of, sizeof(p->cid_num));
|
ast_copy_string(p->cid_num, of, sizeof(p->cid_num));
|
||||||
ast_shrink_phone_number(p->cid_num);
|
ast_shrink_phone_number(p->cid_num);
|
||||||
|
}
|
||||||
if (*calleridname)
|
if (*calleridname)
|
||||||
ast_copy_string(p->cid_name, calleridname, sizeof(p->cid_name));
|
ast_copy_string(p->cid_name, calleridname, sizeof(p->cid_name));
|
||||||
if (ast_strlen_zero(of))
|
if (ast_strlen_zero(of))
|
||||||
|
Reference in New Issue
Block a user