]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When comebacktoorigin=no, Asterisk no longer tries to dial extension <Originating...
authorJonathan Rose <jrose@digium.com>
Tue, 29 Mar 2011 13:17:01 +0000 (13:17 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 29 Mar 2011 13:17:01 +0000 (13:17 +0000)
(closes issue #18650)
Reported by: davidw
Patches:
      patch.diff uploaded by jrose (license 1225)

https://reviewboard.asterisk.org/r/1150/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@311844 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/features.c

index 64dbf466336a730ee05b8da9ef664e87467bfb1b..dc6fe8eaf5e06fef4c3e2d93ede14266f8cb1b55 100644 (file)
@@ -3542,10 +3542,10 @@ int manage_parkinglot(struct ast_parkinglot *curlot, const struct pollfd *pfds,
                                        if (comebacktoorigin) {
                                                set_c_e_p(chan, pu->parkinglot->parking_con_dial, peername_flat, 1);
                                        } else {
-                                               ast_log(LOG_WARNING, "now going to parkedcallstimeout,s,1 | ps is %d\n",pu->parkingnum);
+                                               ast_verb(2, "comebacktoorigin is disabled - now going to parkedcallstimeout,s,1 | ps is %d\n",pu->parkingnum);
                                                snprintf(parkingslot, sizeof(parkingslot), "%d", pu->parkingnum);
                                                pbx_builtin_setvar_helper(chan, "PARKINGSLOT", parkingslot);
-                                               set_c_e_p(chan, "parkedcallstimeout", peername_flat, 1);
+                                               set_c_e_p(chan, "parkedcallstimeout", "s", 1);
                                        }
                                }
                        } else {