Hello, I think this is the right list for this question!<br>
<br>
I want to add some more amaflags to what is defined, so I thought I would just modify this function:<br>
/*! Converts AMA flag to printable string */<br>
char *ast_cdr_flags2str(int flag)<br>
{<br>
switch(flag) {<br>
case AST_CDR_OMIT:<br>
return "OMIT";<br>
case AST_CDR_BILLING:<br>
return "BILLING";<br>
case AST_CDR_DOCUMENTATION:<br>
return "DOCUMENTATION";<br>
case AST_CDR_NEWFLAG:<br>
return "NEWFLAG";<br>
}<br>
return "Unknown";<br>
}<br>
<br>
and<br>
<br>
int ast_cdr_amaflags2int(const char *flag)<br>
{<br>
if (!strcasecmp(flag, "default"))<br>
return 0;<br>
if (!strcasecmp(flag, "omit"))<br>
return AST_CDR_OMIT;<br>
if (!strcasecmp(flag, "billing"))<br>
return AST_CDR_BILLING;<br>
if (!strcasecmp(flag, "documentation"))<br>
return AST_CDR_DOCUMENTATION;<br>
if (!strcasecmp(flag, "newflag"))<br>
return AST_CDR_NEWFLAG;<br>
return -1;<br>
}<br>
<br>
so i added the "newflag" part, which seemed to right to me (im not a
c++ guru by any means), and now i get this when I try to make *, <br>
<br>
cdr.c: In function `ast_cdr_flags2str':<br>
cdr.c:694: error: `AST_CDR_NEWFLAG' undeclared (first use in this function)<br>
cdr.c:694: error: (Each undeclared identifier is reported only once<br>
cdr.c:694: error: for each function it appears in.)<br>
cdr.c: In function `ast_cdr_amaflags2int':<br>
cdr.c:799: error: `AST_CDR_NEWFLAG' undeclared (first use in this function)<br>
gmake: *** [cdr.o] Error 1<br>
<br>
any ideals?!!? I have grep'ed and search for anymore references of where this would go, im clueless!<br>
<br>
Any help would be great!<br>
<br>
Thanks<br>
Ron<br>
<br>