simple fix for bug #3638
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6169 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
176a2ae83e
commit
ef7ebdb3e8
1 changed files with 6 additions and 5 deletions
|
@ -6221,12 +6221,13 @@ static int check_user_full(struct sip_pvt *p, struct sip_request *req, int sipme
|
|||
} else
|
||||
of += 4;
|
||||
/* Get just the username part */
|
||||
if ((c = strchr(of, '@')))
|
||||
if ((c = strchr(of, '@'))) {
|
||||
*c = '\0';
|
||||
if ((c = strchr(of, ':')))
|
||||
*c = '\0';
|
||||
ast_copy_string(p->cid_num, of, sizeof(p->cid_num));
|
||||
ast_shrink_phone_number(p->cid_num);
|
||||
if ((c = strchr(of, ':')))
|
||||
*c = '\0';
|
||||
ast_copy_string(p->cid_num, of, sizeof(p->cid_num));
|
||||
ast_shrink_phone_number(p->cid_num);
|
||||
}
|
||||
if (*calleridname)
|
||||
ast_copy_string(p->cid_name, calleridname, sizeof(p->cid_name));
|
||||
if (ast_strlen_zero(of))
|
||||
|
|
Reference in a new issue