summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@digium.com>2008-05-14 16:52:30 +0000
committerJeff Peeler <jpeeler@digium.com>2008-05-14 16:52:30 +0000
commit4729632721a7600dae7cd5c3d570718542055ba1 (patch)
tree64c57e7d080fa3d3fa91b44e21d02d36d641bfc7 /main/pbx.c
parenteecea3268ebab5dad17a746da77e6cf4088541f5 (diff)
Fixed a few problems with multiparking: call not being parked in the correct parking spot, caller not being notified of parking spot position, and improperly hanging up the call during a transfer due to timing out (not providing the extension in which to transfer).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index b2c5e22b3..86b4c0454 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -1843,6 +1843,10 @@ struct ast_exten *pbx_find_extension(struct ast_channel *chan,
#ifdef NEED_DEBUG_HERE
ast_log(LOG_NOTICE,"Looking for cont/ext/prio/label/action = %s/%s/%d/%s/%d\n", context, exten, priority, label, (int)action);
#endif
+
+ if (ast_strlen_zero(exten))
+ return NULL;
+
/* Initialize status if appropriate */
if (q->stacklen == 0) {
q->status = STATUS_NO_CONTEXT;