From: Joshua Colp Date: Sun, 20 Aug 2006 04:25:28 +0000 (+0000) Subject: Properly check to see if parkingnum is a number (issue #7762 reported by robf) X-Git-Tag: 1.4.0-beta1~358 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d5152177f34ae6aa22e224eacdd0424dae824dfe;p=thirdparty%2Fasterisk.git Properly check to see if parkingnum is a number (issue #7762 reported by robf) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40599 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_features.c b/res/res_features.c index d584ee814c..af714f559f 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -422,7 +422,7 @@ int ast_park_call(struct ast_channel *chan, struct ast_channel *peer, int timeou notify_metermaids(pu->parkingexten, parking_con); } /* Tell the peer channel the number of the parking space */ - if (peer && !pu->parkingnum == -1) /* Only say number if it's a number */ + if (peer && pu->parkingnum != -1) /* Only say number if it's a number */ ast_say_digits(peer, pu->parkingnum, "", peer->language); if (pu->notquiteyet) { /* Wake up parking thread if we're really done */