<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
</HEAD>
<BODY>
Hello list.<BR>
<BR>
ChanIsAvail returns 20 for ${AVAILSTATUS}. What does this '20' mean ??<BR>
<BR>
...<BR>
<FONT SIZE="2">exten => 1,n,ChanIsAvail(SIP/sin10)</FONT><BR>
<FONT SIZE="2">exten => 1,n,NoOp(chanisavail == ${AVAILSTATUS})</FONT><BR>
...<BR>
<BR>
<FONT SIZE="2">[Mar 4 15:10:16] -- Executing [1@sin:7] ChanIsAvail("IAX2/testlocal-14088", "SIP/sin10") in new stack</FONT><BR>
<FONT SIZE="2">[Mar 4 15:10:16] -- Executing [1@sin:8] NoOp("IAX2/testlocal-14088", "chanisavail == 20") in new stack</FONT><BR>
<BR>
<BR>
What does it mean when ChanIsAvail returns '20' ???<BR>
<BR>
This is what inside /usr/src/asterisk-1.4.25.1/main/devicestate.c :<BR>
<BR>
<FONT SIZE="2">/*! \brief Device state strings for printing */</FONT><BR>
<FONT SIZE="2">static const char *devstatestring[] = {</FONT><BR>
<FONT SIZE="2"> /* 0 AST_DEVICE_UNKNOWN */ "Unknown", /*!< Valid, but unknown state */</FONT><BR>
<FONT SIZE="2"> /* 1 AST_DEVICE_NOT_INUSE */ "Not in use", /*!< Not used */</FONT><BR>
<FONT SIZE="2"> /* 2 AST_DEVICE IN USE */ "In use", /*!< In use */</FONT><BR>
<FONT SIZE="2"> /* 3 AST_DEVICE_BUSY */ "Busy", /*!< Busy */</FONT><BR>
<FONT SIZE="2"> /* 4 AST_DEVICE_INVALID */ "Invalid", /*!< Invalid - not known to Asterisk */</FONT><BR>
<FONT SIZE="2"> /* 5 AST_DEVICE_UNAVAILABLE */ "Unavailable", /*!< Unavailable (not registered) */</FONT><BR>
<FONT SIZE="2"> /* 6 AST_DEVICE_RINGING */ "Ringing", /*!< Ring, ring, ring */</FONT><BR>
<FONT SIZE="2"> /* 7 AST_DEVICE_RINGINUSE */ "Ring+Inuse", /*!< Ring and in use */</FONT><BR>
<FONT SIZE="2"> /* 8 AST_DEVICE_ONHOLD */ "On Hold" /*!< On Hold */</FONT><BR>
<FONT SIZE="2">};</FONT><BR>
<BR>
<BR>
Jonas.
</BODY>
</HTML>