mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user