[asterisk-commits] qwell: trunk r70495 - in /trunk: ./ channels/chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 20 15:54:08 CDT 2007


Author: qwell
Date: Wed Jun 20 15:54:08 2007
New Revision: 70495

URL: http://svn.digium.com/view/asterisk?view=rev&rev=70495
Log:
Merged revisions 70494 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r70494 | qwell | 2007-06-20 15:53:16 -0500 (Wed, 20 Jun 2007) | 4 lines

Make sure we clear the previously dialed number if it did not exist.

Issue 9958.

........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_skinny.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=70495&r1=70494&r2=70495
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Wed Jun 20 15:54:08 2007
@@ -2463,6 +2463,7 @@
 			}
 		} else if (res == 0) {
 			ast_debug(1, "Not enough digits (%s) (and no ambiguous match)...\n", d->exten);
+			memset(d->exten, 0, sizeof(d->exten));
 			transmit_tone(s, SKINNY_REORDER);
 			if (sub->owner && sub->owner->_state != AST_STATE_UP) {
 				ast_indicate(c, -1);
@@ -2472,6 +2473,7 @@
 		} else if (!ast_canmatch_extension(c, c->context, d->exten, 1, c->cid.cid_num) &&
 			   ((d->exten[0] != '*') || (!ast_strlen_zero(d->exten) > 2))) {
 			ast_log(LOG_WARNING, "Can't match [%s] from '%s' in context %s\n", d->exten, c->cid.cid_num ? c->cid.cid_num : "<Unknown Caller>", c->context);
+			memset(d->exten, 0, sizeof(d->exten));
 			transmit_tone(s, SKINNY_REORDER);
 			/* hang out for 3 seconds to let congestion play */
 			ast_safe_sleep(c, 3000);
@@ -2486,6 +2488,7 @@
 	}
 	if (c)
 		ast_hangup(c);
+	memset(d->exten, 0, sizeof(d->exten));
 	return NULL;
 }
 




More information about the asterisk-commits mailing list