Posted: Mon Jan 12, 2004 4:42 am Post subject: [Asterisk-doc] docs extensions.xml,1.2,1.3
Comments:
Update of /cvsroot/asterisk/docs
In directory sc8-pr-cvs1:/tmp/cvs-serv21690
Modified Files:
extensions.xml
Log Message:
Added some changes that had been suggested since last time the list saw this
file. Also added the Absolute Timeout special extension mentioned on the user
list fairly recently.
Index: extensions.xml
===================================================================
RCS file: /cvsroot/asterisk/docs/extensions.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** extensions.xml 11 Jan 2004 08:43:28 -0000 1.2
--- extensions.xml 12 Jan 2004 04:42:27 -0000 1.3
***************
*** 68,72 ****
</programlisting>
<para>
! From this example you should be able to notice that contexts can be
used to reduce retyping sections as in the worker_extensions being
included in all the example contexts.
--- 68,72 ----
</programlisting>
<para>
! From this example you should notice that contexts can be
used to reduce retyping sections as in the worker_extensions being
included in all the example contexts.
***************
*** 108,111 ****
--- 108,112 ----
<member>'t' - timeout</member>
<member>'h' - hangup</member>
+ <member>'T' - Absolute Timeout</member>
</simplelist>
<para>
***************
*** 116,120 ****
<para>
Hangup is where calls will go to when hangup is detected, or where
! you can send calls that you want to hangup on.
</para>
<para>
--- 117,124 ----
<para>
Hangup is where calls will go to when hangup is detected, or where
! you can send calls that you want to hangup on. There are
! currently some problems to be aware of. Specifically the
! variables about the call are lost as the information is
! destroyed with the channel.
</para>
<para>
***************
*** 130,133 ****
--- 134,145 ----
back to the extension that contains the menu prompts.
</para>
+ Absolute Timeout is a used when a call is being terminated for
+ exceeding a Absolute Timeout variable set. Be aware of the case
+ difference from the normal timeout. This can be used to warn
+ a user that they exceeded some allowable limit. Or it could be used
+ to request someone to try calling back later if they waited in a
+ queue too long. Essentially it should notify the caller that they
+ are being disconnected so as not to leave them with the impression
+ they had been cut off unintendedly.
<programlisting>
[My_home_incoming_context]
***************
*** 214,218 ****
<lineannotation>; This is where the user can't decide who to call, so we ring everyone</lineannotation>
! exten => t,1,Dial(${ALL)
</programlisting>
<para>
--- 226,230 ----
<lineannotation>; This is where the user can't decide who to call, so we ring everyone</lineannotation>
! exten => t,1,Dial(${ALL})
</programlisting>
<para>
***************
*** 230,233 ****
--- 242,268 ----
use with a GotoIf function for call flow.
</para>
+ <programlisting>
+ [incoming]
+ include => extensions
+
+ exten => s,1,Wait(1)
+ exten => s,2,SetVar(counter=0)
+ exten => s,3,Answer()
+ exten => s,4,DigitTimeout(15)
+ exten => s,5,ResponseTimeout(10)
+ exten => s,6,Background(hello)
+
+ exten => t,1,SetVar(counter=[${counter}+1])
+ exten => t,2,Gotoif([${counter}<3]?s,6:h,1)
+
+ exten => h,1,hangup()
+ </programlisting>
+ <para>
+ This example shows using the timeout to force the call to continue
+ moving. In this case, we add 1 to the counter variable and decide if we
+ exceeded an acceptable number of prompt repeats. If it exceeds this
+ limit, then we push the call to the hangup extension and let it clean
+ things up.
+ </para>
</sect1>
<sect1>
***************
*** 290,294 ****
<para>
You may be used to noticing that 9 is associated with dialing
! an outside line. This is due to the fact that in a local
calling area, the exchanges could over lap other sections of
your dialplan. Similarly you may have noticed that with in
--- 325,330 ----
<para>
You may be used to noticing that 9 is associated with dialing
! an outside line, at least in the USA. Others may be used to seeing
! other digits such as 0. This is due to the fact that in a local
calling area, the exchanges could over lap other sections of
your dialplan. Similarly you may have noticed that with in
Posted: Mon Jan 12, 2004 6:13 am Post subject: [Asterisk-doc] docs extensions.xml,1.2,1.3
Thanks critch!
Jared
On Sun, 2004-01-11 at 21:42, drunken_critch wrote:
Quote:
Comments:
Update of /cvsroot/asterisk/docs
In directory sc8-pr-cvs1:/tmp/cvs-serv21690
Modified Files:
extensions.xml
Log Message:
Added some changes that had been suggested since last time the list saw this
file. Also added the Absolute Timeout special extension mentioned on the user
list fairly recently.
Index: extensions.xml
===================================================================
RCS file: /cvsroot/asterisk/docs/extensions.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** extensions.xml 11 Jan 2004 08:43:28 -0000 1.2
--- extensions.xml 12 Jan 2004 04:42:27 -0000 1.3
***************
*** 68,72 ****
</programlisting>
<para>
! From this example you should be able to notice that contexts can be
used to reduce retyping sections as in the worker_extensions being
included in all the example contexts.
--- 68,72 ----
</programlisting>
<para>
! From this example you should notice that contexts can be
used to reduce retyping sections as in the worker_extensions being
included in all the example contexts.
***************
*** 108,111 ****
--- 108,112 ----
<member>'t' - timeout</member>
<member>'h' - hangup</member>
+ <member>'T' - Absolute Timeout</member>
</simplelist>
<para>
***************
*** 116,120 ****
<para>
Hangup is where calls will go to when hangup is detected, or where
! you can send calls that you want to hangup on.
</para>
<para>
--- 117,124 ----
<para>
Hangup is where calls will go to when hangup is detected, or where
! you can send calls that you want to hangup on. There are
! currently some problems to be aware of. Specifically the
! variables about the call are lost as the information is
! destroyed with the channel.
</para>
<para>
***************
*** 130,133 ****
--- 134,145 ----
back to the extension that contains the menu prompts.
</para>
+ Absolute Timeout is a used when a call is being terminated for
+ exceeding a Absolute Timeout variable set. Be aware of the case
+ difference from the normal timeout. This can be used to warn
+ a user that they exceeded some allowable limit. Or it could be used
+ to request someone to try calling back later if they waited in a
+ queue too long. Essentially it should notify the caller that they
+ are being disconnected so as not to leave them with the impression
+ they had been cut off unintendedly.
<programlisting>
[My_home_incoming_context]
***************
*** 214,218 ****
<lineannotation>; This is where the user can't decide who to call, so we ring everyone</lineannotation>
! exten => t,1,Dial(${ALL)
</programlisting>
<para>
--- 226,230 ----
<lineannotation>; This is where the user can't decide who to call, so we ring everyone</lineannotation>
! exten => t,1,Dial(${ALL})
</programlisting>
<para>
***************
*** 230,233 ****
--- 242,268 ----
use with a GotoIf function for call flow.
</para>
+ <programlisting>
+ [incoming]
+ include => extensions
+
+ exten => s,1,Wait(1)
+ exten => s,2,SetVar(counter=0)
+ exten => s,3,Answer()
+ exten => s,4,DigitTimeout(15)
+ exten => s,5,ResponseTimeout(10)
+ exten => s,6,Background(hello)
+
+ exten => t,1,SetVar(counter=[${counter}+1])
+ exten => t,2,Gotoif([${counter}<3]?s,6:h,1)
+
+ exten => h,1,hangup()
+ </programlisting>
+ <para>
+ This example shows using the timeout to force the call to continue
+ moving. In this case, we add 1 to the counter variable and decide if we
+ exceeded an acceptable number of prompt repeats. If it exceeds this
+ limit, then we push the call to the hangup extension and let it clean
+ things up.
+ </para>
</sect1>
<sect1>
***************
*** 290,294 ****
<para>
You may be used to noticing that 9 is associated with dialing
! an outside line. This is due to the fact that in a local
calling area, the exchanges could over lap other sections of
your dialplan. Similarly you may have noticed that with in
--- 325,330 ----
<para>
You may be used to noticing that 9 is associated with dialing
! an outside line, at least in the USA. Others may be used to seeing
! other digits such as 0. This is due to the fact that in a local
calling area, the exchanges could over lap other sections of
your dialplan. Similarly you may have noticed that with in
_______________________________________________
Asterisk-Doc mailing list
Asterisk-Doc@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-doc
Posted: Mon Jan 12, 2004 6:51 am Post subject: [Asterisk-doc] docs extensions.xml,1.2,1.3
On Mon, 2004-01-12 at 00:13, Jared Smith wrote:
Quote:
Thanks critch!
NP. I bought a laptop this weekend and have a copy of the book on it
now. In fact the last update was done from it. The idea being I can take
it with me and maybe finally get back to work on it. Now if I can only
get a wireless card to work, I'll be set for some drive by CVS check
ins.
Next step find a park somewhere within wireless range that I can clear
my head yet still have a decent shoutcast stream sent to me.
--
Steven Critchfield <critch@basesys.com>
Posted: Mon Jan 12, 2004 3:23 pm Post subject: [Asterisk-doc] docs extensions.xml,1.2,1.3
On Sun, 2004-01-11 at 23:51, Steven Critchfield wrote:
Quote:
NP. I bought a laptop this weekend and have a copy of the book on it
now. In fact the last update was done from it. The idea being I can take
it with me and maybe finally get back to work on it. Now if I can only
get a wireless card to work, I'll be set for some drive by CVS check
ins.
Next step find a park somewhere within wireless range that I can clear
my head yet still have a decent shoutcast stream sent to me.
OK... I'm jealous... and I thought I was cool working on the docs while
sitting in a recliner watching TV and dialed into a conference call with
some of the Asterisk developers...
Posted: Mon Jan 12, 2004 5:28 pm Post subject: [Asterisk-doc] docs extensions.xml,1.2,1.3
On Mon, 2004-01-12 at 09:23, Jared Smith wrote:
Quote:
On Sun, 2004-01-11 at 23:51, Steven Critchfield wrote:
> NP. I bought a laptop this weekend and have a copy of the book on it
> now. In fact the last update was done from it. The idea being I can take
> it with me and maybe finally get back to work on it. Now if I can only
> get a wireless card to work, I'll be set for some drive by CVS check
> ins.
>
> Next step find a park somewhere within wireless range that I can clear
> my head yet still have a decent shoutcast stream sent to me.
OK... I'm jealous... and I thought I was cool working on the docs while
sitting in a recliner watching TV and dialed into a conference call with
some of the Asterisk developers...
Well I have to admit the entirety of what I have written was done from
bed while watching TV occasionally IRCing with asterisk developers.
--
Steven Critchfield <critch@basesys.com>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum