summaryrefslogtreecommitdiff
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2009-08-04 16:36:03 +0000
committerRichard Mudgett <rmudgett@digium.com>2009-08-04 16:36:03 +0000
commite5b19910edfdafbe48c84096acd025d8b81a0334 (patch)
treee361e536725dc65f6c5c3eec128966e6e7039cbc /channels/chan_dahdi.c
parentb0f0110b1683d16ccb47a1680ac8f8b0c7b0625d (diff)
Removed some dead code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r--channels/chan_dahdi.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 1fbd124c3..fd08b14a4 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -662,7 +662,6 @@ struct dahdi_subchannel {
unsigned int needringing:1;
unsigned int needbusy:1;
unsigned int needcongestion:1;
- unsigned int needcallerid:1;
unsigned int needanswer:1;
unsigned int needflash:1;
unsigned int needhold:1;
@@ -1055,10 +1054,6 @@ static struct dahdi_pvt {
int cid_ton;
/*! \brief Caller ID name from an incoming call. */
char cid_name[AST_MAX_EXTENSION];
- /*! \brief Last Caller ID number from an incoming call. */
- char lastcid_num[AST_MAX_EXTENSION];
- /*! \brief Last Caller ID name from an incoming call. */
- char lastcid_name[AST_MAX_EXTENSION];
char *origcid_num; /*!< malloced original callerid */
char *origcid_name; /*!< malloced original callerid */
/*! \brief Call waiting number. */
@@ -4971,7 +4966,6 @@ static int dahdi_hangup(struct ast_channel *ast)
p->subs[idx].needbusy = 0;
p->subs[idx].needcongestion = 0;
p->subs[idx].linear = 0;
- p->subs[idx].needcallerid = 0;
p->polarity = POLARITY_IDLE;
dahdi_setlinear(p->subs[idx].dfd, 0);
if (idx == SUB_REAL) {
@@ -7408,14 +7402,6 @@ static struct ast_frame *dahdi_read(struct ast_channel *ast)
return &p->subs[idx].f;
}
- if (p->subs[idx].needcallerid) {
- ast_set_callerid(ast, S_OR(p->lastcid_num, NULL),
- S_OR(p->lastcid_name, NULL),
- S_OR(p->lastcid_num, NULL)
- );
- p->subs[idx].needcallerid = 0;
- }
-
if (p->subs[idx].needanswer) {
/* Send answer frame if requested */
p->subs[idx].needanswer = 0;
@@ -8621,12 +8607,7 @@ static void *analog_ss_thread(void *data)
memset(exten, 0, sizeof(exten));
timeout = firstdigittimeout;
} else if (p->callreturn && !strcmp(exten, "*69")) {
- res = 0;
- if (!ast_strlen_zero(p->lastcid_num)) {
- res = ast_say_digit_str(chan, p->lastcid_num, "", chan->language);
- }
- if (!res)
- res = tone_zone_play_tone(p->subs[idx].dfd, DAHDI_TONE_DIALRECALL);
+ res = tone_zone_play_tone(p->subs[idx].dfd, DAHDI_TONE_DIALRECALL);
break;
} else if (!strcmp(exten, "*78")) {
dahdi_dnd(p, 1);
@@ -8662,14 +8643,6 @@ static void *analog_ss_thread(void *data)
ast_masq_park_call(ast_bridged_channel(p->subs[SUB_THREEWAY].owner), chan, 0, NULL);
ast_verb(3, "Parking call to '%s'\n", chan->name);
break;
- } else if (!ast_strlen_zero(p->lastcid_num) && !strcmp(exten, "*60")) {
- ast_verb(3, "Blacklisting number %s\n", p->lastcid_num);
- res = ast_db_put("blacklist", p->lastcid_num, "1");
- if (!res) {
- res = tone_zone_play_tone(p->subs[idx].dfd, DAHDI_TONE_DIALRECALL);
- memset(exten, 0, sizeof(exten));
- len = 0;
- }
} else if (p->hidecallerid && !strcmp(exten, "*82")) {
ast_verb(3, "Enabling Caller*ID on %s\n", chan->name);
/* Enable Caller*ID if enabled */