From: Damien Wedhorn Date: Tue, 24 Aug 2010 20:42:30 +0000 (+0000) Subject: Ignore redial hard button when no previous number. X-Git-Tag: 11.0.0-beta1~2419 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=179ba271d0e341ba17adda286e6e6a2996fd1ed5;p=thirdparty%2Fasterisk.git Ignore redial hard button when no previous number. (closes issue #17887) Reported by: salecha Patches: skinny.redial.diff uploaded by wedhorn (license 30) Tested by: wedhorn, salecha git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@283495 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index 00cc60aafe..dc71d5012f 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -5014,16 +5014,7 @@ static int handle_stimulus_message(struct skinny_req *req, struct skinnysession ast_verb(1, "Received Stimulus: Redial(%d/%d)\n", instance, callreference); if (ast_strlen_zero(l->lastnumberdialed)) { - ast_log(LOG_WARNING, "Attempted redial, but no previously dialed number found.\n"); - l->hookstate = SKINNY_ONHOOK; - transmit_speaker_mode(d, SKINNY_SPEAKEROFF); - transmit_closereceivechannel(d, sub); - transmit_stopmediatransmission(d, sub); - transmit_speaker_mode(d, SKINNY_SPEAKEROFF); - transmit_clearpromptmessage(d, l->instance, sub->callid); - transmit_callstate(d, l->instance, sub->callid, SKINNY_ONHOOK); - transmit_selectsoftkeys(d, 0, 0, KEYDEF_ONHOOK); - transmit_activatecallplane(d, l); + ast_log(LOG_WARNING, "Attempted redial, but no previously dialed number found. Ignoring button.\n"); break; }