aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-23 20:39:23 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-23 20:39:23 +0000
commit14fd693f9bbbfa6f114707977d45b33ef3c11473 (patch)
tree8241401fcd3e7b43515449f645d8c82ecbfde3af /doc
parent953e577f7b7b6b99e910b2fd103e310af5c77461 (diff)
Add a lasting legacy from 1082... a Macro to do a pre acknowledgement message with option to reject. Thanks to patbaker82 for this. (issue #1082 reported by damin)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40955 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'doc')
-rw-r--r--doc/queues-with-callback-members.txt22
1 files changed, 21 insertions, 1 deletions
diff --git a/doc/queues-with-callback-members.txt b/doc/queues-with-callback-members.txt
index 3594753a7..6e0d89cd5 100644
--- a/doc/queues-with-callback-members.txt
+++ b/doc/queues-with-callback-members.txt
@@ -495,7 +495,27 @@ The ${GROUP_COUNT()} variable on a subsequent call should return
"1" for that group. If GROUP_COUNT returns 1, then the busy()
is returned without actually trying to dial the agent.
-
+================ Pre Acknowledgement Message
+
+If you would like to have a pre acknowledge message with option to reject the message
+you can use the following dialplan Macro as a base with the 'M' dial argument.
+
+[macro-screen]
+exten=>s,1,Wait(.25)
+exten=>s,2,Read(ACCEPT|screen-callee-options|1)
+exten=>s,3,Gotoif($[${ACCEPT} = 1] ?50)
+exten=>s,4,Gotoif($[${ACCEPT} = 2] ?30)
+exten=>s,5,Gotoif($[${ACCEPT} = 3] ?40)
+exten=>s,6,Gotoif($[${ACCEPT} = 4] ?30:30)
+exten=>s,30,Set(MACRO_RESULT=CONTINUE)
+exten=>s,40,Read(TEXTEN|custom/screen-exten|)
+exten=>s,41,Gotoif($[${LEN(${TEXTEN})} = 3]?42:45)
+exten=>s,42,Set(MACRO_RESULT=GOTO:from-internal^${TEXTEN}^1)
+exten=>s,45,Gotoif($[${TEXTEN} = 0] ?46:4)
+exten=>s,46,Set(MACRO_RESULT=CONTINUE)
+exten=>s,50,Playback(after-the-tone)
+exten=>s,51,Playback(connected)
+exten=>s,52,Playback(beep)
================ Caveats