On Sat, 2007-08-18 at 22:11 -0700, Douglas Warren Garstang wrote:
> It looks like when you use odbc for CDR storage, rather than getting a
> Dispositon string like ANSWERED, CONGESTION etc, you'll get an integer
> (1,2,4,8). Does anyone know where I can find what strings (ANSWERED etc)
> these integers map to?
> 
> Doug.
> 

Sure, see include/asterisk/cdr.h:

#define AST_CDR_NULL                0
#define AST_CDR_FAILED                          (1 << 0)
#define AST_CDR_BUSY                            (1 << 1)
#define AST_CDR_NOANSWER                        (1 << 2)
#define AST_CDR_ANSWERED                        (1 << 3)

So, FAILED = 1
    BUSY = 2
    NOANSWER = 4
    ANSWERED = 8

0 means that no disposition was set.

murf


-- 
Steve Murphy
Software Developer
Digium

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to