diff options
author | Mark Spencer <markster@digium.com> | 2004-10-02 00:58:31 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-10-02 00:58:31 +0000 |
commit | 04fc29c8b2e7db9b66a138f47412770867819f7f (patch) | |
tree | 25a4ee6dff29d18acfdfbbc42485333db7aa5311 /apps/app_alarmreceiver.c | |
parent | 9b926b1d644c49c0e8bbe7cbc02aeb60ccc3c8ef (diff) |
Huge callerid rework (might break H.323, others)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3874 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_alarmreceiver.c')
-rwxr-xr-x | apps/app_alarmreceiver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_alarmreceiver.c b/apps/app_alarmreceiver.c index 28d28b4c4..2c95be44c 100755 --- a/apps/app_alarmreceiver.c +++ b/apps/app_alarmreceiver.c @@ -318,8 +318,8 @@ static int write_metadata( FILE *logfile, char *signalling_type, struct ast_chan char timestamp[80]; /* Extract the caller ID location */ - - strncpy(workstring, chan->callerid, sizeof(workstring) - 1); + if (chan->cid.cid_num) + strncpy(workstring, chan->cid.cid_num, sizeof(workstring) - 1); workstring[sizeof(workstring) - 1] = '\0'; ast_callerid_parse(workstring, &cn, &cl); |