mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
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
This commit is contained in:
@@ -422,7 +422,7 @@ int ast_park_call(struct ast_channel *chan, struct ast_channel *peer, int timeou
|
|||||||
notify_metermaids(pu->parkingexten, parking_con);
|
notify_metermaids(pu->parkingexten, parking_con);
|
||||||
}
|
}
|
||||||
/* Tell the peer channel the number of the parking space */
|
/* 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);
|
ast_say_digits(peer, pu->parkingnum, "", peer->language);
|
||||||
if (pu->notquiteyet) {
|
if (pu->notquiteyet) {
|
||||||
/* Wake up parking thread if we're really done */
|
/* Wake up parking thread if we're really done */
|
||||||
|
Reference in New Issue
Block a user