[asterisk-users] Availstatus returns 20 ?

jonas kellens jonas.kellens at telenet.be
Thu Mar 4 08:19:32 CST 2010


Hello list.

ChanIsAvail returns 20 for ${AVAILSTATUS}. What does this '20' mean ??

...
exten => 1,n,ChanIsAvail(SIP/sin10)
exten => 1,n,NoOp(chanisavail == ${AVAILSTATUS})
...

[Mar  4 15:10:16]     -- Executing [1 at sin:7]
ChanIsAvail("IAX2/testlocal-14088", "SIP/sin10") in new stack
[Mar  4 15:10:16]     -- Executing [1 at sin:8]
NoOp("IAX2/testlocal-14088", "chanisavail == 20") in new stack


What does it mean when ChanIsAvail returns '20' ???

This is what inside /usr/src/asterisk-1.4.25.1/main/devicestate.c :

/*! \brief Device state strings for printing */
static const char *devstatestring[] = {
        /* 0 AST_DEVICE_UNKNOWN */      "Unknown",      /*!< Valid, but
unknown state */
        /* 1 AST_DEVICE_NOT_INUSE */    "Not in use",   /*!< Not used */
        /* 2 AST_DEVICE IN USE */       "In use",       /*!< In use */
        /* 3 AST_DEVICE_BUSY */         "Busy",         /*!< Busy */
        /* 4 AST_DEVICE_INVALID */      "Invalid",      /*!< Invalid -
not known to Asterisk */
        /* 5 AST_DEVICE_UNAVAILABLE */  "Unavailable",  /*!< Unavailable
(not registered) */
        /* 6 AST_DEVICE_RINGING */      "Ringing",      /*!< Ring, ring,
ring */
        /* 7 AST_DEVICE_RINGINUSE */    "Ring+Inuse",   /*!< Ring and in
use */
        /* 8 AST_DEVICE_ONHOLD */       "On Hold"       /*!< On Hold */
};


Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100304/0a9922df/attachment.htm 


More information about the asterisk-users mailing list