Fix SIP friends + MySQL (head only)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3910 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
76172327f8
commit
f927433a40
1 changed files with 3 additions and 1 deletions
|
@ -1062,7 +1062,9 @@ static struct sip_user *mysql_user(char *user)
|
|||
} else if (!strcasecmp(fields[x].name, "callingpres")) {
|
||||
u->callingpres = atoi(rowval[x]);
|
||||
} else if (!strcasecmp(fields[x].name, "callerid")) {
|
||||
strncpy(u->callerid, rowval[x], sizeof(u->callerid) - 1);
|
||||
ast_callerid_split(rowval[x],
|
||||
u->cid_name, sizeof(u->cid_name),
|
||||
u->cid_num, sizeof(u->cid_num));
|
||||
u->hascallerid=1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue