[svn-commits] file: branch 1.6.2 r229969 - in /branches/1.6.2: ./ apps/ configs/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Nov 13 11:21:53 CST 2009


Author: file
Date: Fri Nov 13 11:21:49 2009
New Revision: 229969

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=229969
Log:
Merged revisions 229966 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r229966 | file | 2009-11-13 11:20:26 -0600 (Fri, 13 Nov 2009) | 13 lines
  
  Merged revisions 229965 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r229965 | file | 2009-11-13 11:19:59 -0600 (Fri, 13 Nov 2009) | 6 lines
    
    Document a limitation in the AVAILSTATUS variable from ChanIsAvail and provide
    a workaround for it that does not change existing behavior.
    
    (closes issue #14426)
    Reported by: macli
  ........
................

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/apps/app_chanisavail.c
    branches/1.6.2/configs/extensions.conf.sample

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/apps/app_chanisavail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/apps/app_chanisavail.c?view=diff&rev=229969&r1=229968&r2=229969
==============================================================================
--- branches/1.6.2/apps/app_chanisavail.c (original)
+++ branches/1.6.2/apps/app_chanisavail.c Fri Nov 13 11:21:49 2009
@@ -85,7 +85,9 @@
 					<para>The canonical channel name that was used to create the channel</para>
 				</variable>
 				<variable name="AVAILSTATUS">
-					<para>The status code for the available channel</para>
+					<para>The status code for the available channel. This is used for both
+					device state and cause code. It is recommended that you use AVAILORIGCHAN
+					instead to see if a device is available or not.</para>
 				</variable>
 			</variablelist>
 		</description>

Modified: branches/1.6.2/configs/extensions.conf.sample
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/configs/extensions.conf.sample?view=diff&rev=229969&r1=229968&r2=229969
==============================================================================
--- branches/1.6.2/configs/extensions.conf.sample (original)
+++ branches/1.6.2/configs/extensions.conf.sample Fri Nov 13 11:21:49 2009
@@ -493,7 +493,7 @@
 ;   ${ARG1} - Device to page
 
 exten => s,1,ChanIsAvail(${ARG1},s)			; s is for ANY call
-exten => s,n,GoToIf([${AVAILSTATUS} = "1"]?autoanswer:fail)
+exten => s,n,GoToIf([${AVAILORIGCHAN} = ""]?fail:autoanswer)
 exten => s,n(autoanswer),Set(_ALERT_INFO="RA")			; This is for the PolyComs
 exten => s,n,SIPAddHeader(Call-Info: Answer-After=0)	; This is for the Grandstream, Snoms, and Others
 exten => s,n,NoOp()					; Add others here and Post on the Wiki!!!!




More information about the svn-commits mailing list