Douglas Warren Garstang
2007-Aug-19 05:11 UTC
[asterisk-users] CDR Disposition Value with ODBC
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.
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3227 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070821/df561f1c/attachment.bin