I think my original patch was a bit over-engineered. The one below is simpler.
Iain
--- res_parking.c.orig Sun Aug 24 16:57:10 2003 +++ res_parking.c Sat Sep 27 10:43:17 2003 @@ -25,6 +25,7 @@ #include <asterisk/musiconhold.h> #include <asterisk/config.h> #include <asterisk/cli.h> +#include <asterisk/indications.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> @@ -214,6 +215,7 @@ struct ast_channel *transferer; struct ast_channel *transferee; char *transferer_real_context; + int ms;
/* Answer if need be */
if (ast_answer(chan))
@@ -274,6 +276,13 @@
transferer = chan;
transferee = peer;
}
+//IAS
+ ms = 250; /* ms */
+ ms = ast_waitfordigit(transferer, ms);
+ if( ms != '#')
+ ast_playtones_start(transferee,0,"!941+1477/50,!0/50",0);
+ else {
+
/* Use the non-macro context to transfer the call */
if(strlen(transferer->macrocontext))
@@ -381,6 +390,7 @@
if (option_verbose > 1)
ast_verbose(VERBOSE_PREFIX_2 "Hungup during autoservice stop on '%s'\n", transferee->name);
}
+ }
} else {
if (f && (f->frametype == AST_FRAME_DTMF)) {
if (who == peer)
--On Monday, October 20, 2003 8:52 am -0700 John Todd <[EMAIL PROTECTED]> wrote:
At 3:42 PM +0200 10/20/03, Louis-David Mitterrand wrote:Hi,
This morning I found myself stumped when a remote interactive system asked me to enter some identification followed by the # key, and my local Asterisk interrupted with "Transfer?".
Is there a way to escape the pound key, short of disabling transfers?
Cheers,
-- "Make it idiot proof, and somebody will make a better idiot."
There is a patch for this available, I seem to recall. Look through the archives, and search for "##" - someone made it so that the "transfer" feature would only work after hitting # twice. A very cursory search of the bugtracker didn't find that patch - can someone search more diligently, and then submit it if they find the original code?
JT
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users