[asterisk-dev] func_devstate - compile error - version issue?
Ted at usgrp.net
Tue Jun 15 20:11:03 CDT 2010
> It sounds like you've got some frankenversion of Asterisk in use. In
> 1.4, there is no function called ast_devstate_val(). Likely, you
> backported this at some point and had it return an int since it is
> common in 1.4 for device states to be passed around as ints. Your
> suggestion of changing the declaration to an int should safely resolve
> the situation.
> Also, for the record, avoid terms like "the latest devstate.c" on this
> mailing list. Since we deal with several branches of Asterisk, it is
> much more useful to state a specific branch and SVN revision or a
> specific release of Asterisk if that is what you are using.
> Mark Michelson
Sorry - first time caller/long time listener (aka: Noob)...
For future reference - and to those who may have interest - this is
asterisk version 220.127.116.11 (irrelevant) and func_devstate.c r35 from
dated June 2, 2010.
int ast_devstate_val(const char * val) is declared in devstate.h and
defined in the func_devstate.c module itself. After Mark's reply,
I believe that this is just something that was overlooked in this
revision of Russell's backport. Thanks Mark!
More information about the asterisk-dev