summaryrefslogtreecommitdiff
path: root/channels/sig_analog.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2015-02-19 21:25:22 +0000
committerRichard Mudgett <rmudgett@digium.com>2015-02-19 21:25:22 +0000
commite0ff83c27276f51b20faf081ed85e47f3c424384 (patch)
treeacad513a95fa81b89a516d0379d6cbf58503e00e /channels/sig_analog.c
parent40547e7210d5ca2ba651bbcdb7af50eb330a5ed8 (diff)
chan_dahdi: Remove some dead code.
........ Merged revisions 431992 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@431993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sig_analog.c')
-rw-r--r--channels/sig_analog.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/channels/sig_analog.c b/channels/sig_analog.c
index 3740d4b2b..c24df6915 100644
--- a/channels/sig_analog.c
+++ b/channels/sig_analog.c
@@ -1703,7 +1703,6 @@ static void *__analog_ss_thread(void *data)
char dtmfbuf[300];
char namebuf[ANALOG_MAX_CID];
char numbuf[ANALOG_MAX_CID];
- struct callerid_state *cs = NULL;
char *name = NULL, *number = NULL;
int flags = 0;
struct ast_smdi_md_message *smdi_msg = NULL;
@@ -2391,7 +2390,6 @@ static void *__analog_ss_thread(void *data)
int timeout_ms;
int ms;
struct timeval start = ast_tvnow();
- cs = NULL;
ast_debug(1, "Receiving DTMF cid on channel %s\n", ast_channel_name(chan));
oldlinearity = analog_set_linear_mode(p, idx, 0);
@@ -2609,8 +2607,6 @@ static void *__analog_ss_thread(void *data)
} else {
ast_log(LOG_WARNING, "Unable to get caller ID space\n");
}
- } else {
- cs = NULL;
}
if (number) {
@@ -2618,10 +2614,6 @@ static void *__analog_ss_thread(void *data)
}
ast_set_callerid(chan, number, name, number);
- if (cs) {
- callerid_free(cs);
- }
-
analog_handle_notify_message(chan, p, flags, -1);
ast_channel_lock(chan);