[svn-commits] file: trunk r40955 - /trunk/doc/queues-with-callback-members.txt

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Aug 23 13:39:24 MST 2006


Author: file
Date: Wed Aug 23 15:39:23 2006
New Revision: 40955

URL: http://svn.digium.com/view/asterisk?rev=40955&view=rev
Log:
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)

Modified:
    trunk/doc/queues-with-callback-members.txt

Modified: trunk/doc/queues-with-callback-members.txt
URL: http://svn.digium.com/view/asterisk/trunk/doc/queues-with-callback-members.txt?rev=40955&r1=40954&r2=40955&view=diff
==============================================================================
--- trunk/doc/queues-with-callback-members.txt (original)
+++ trunk/doc/queues-with-callback-members.txt Wed Aug 23 15:39:23 2006
@@ -495,7 +495,27 @@
 "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 
 



More information about the svn-commits mailing list