]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add parked call extension AFTER the parking slot has been announced, otherwise two...
authorJoshua Colp <jcolp@digium.com>
Tue, 19 Jun 2007 12:57:55 +0000 (12:57 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 19 Jun 2007 12:57:55 +0000 (12:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69846 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_features.c

index 7211e5daa85ca8127e964ddf2f281908f383d302..30326d3a58a18709c2ffd092d04ab3058ba79f81 100644 (file)
@@ -383,12 +383,12 @@ int ast_park_call(struct ast_channel *chan, struct ast_channel *peer, int timeou
                        ast_log(LOG_ERROR, "Parking context '%s' does not exist and unable to create\n", parking_con);
                }
        }
+       if (peer) 
+               ast_say_digits(peer, pu->parkingnum, "", peer->language);
        if (con) {
                snprintf(exten, sizeof(exten), "%d", x);
                ast_add_extension2(con, 1, exten, 1, NULL, NULL, parkedcall, strdup(exten), FREE, registrar);
        }
-       if (peer) 
-               ast_say_digits(peer, pu->parkingnum, "", peer->language);
        if (pu->notquiteyet) {
                /* Wake up parking thread if we're really done */
                ast_moh_start(pu->chan, NULL);