diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-04 17:17:08 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-04 17:17:08 +0000 |
commit | 5457a10f0a865263e24741392f8ee305446e2360 (patch) | |
tree | 03a93fe379c5aed2a761cd2192033e9d3c5d9c01 | |
parent | e7545ef939e62239ef60fdaf170ff8f54daee33a (diff) |
Fix SIP friends + MySQL (head only)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3910 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | channels/chan_sip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index cb077a033..3b65a3d7f 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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; } } |