Handle device state changes properly when formatting characters are present (bug #5450, new patch)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-10-17 15:41:55 +00:00
parent 7a59bc42c8
commit 7e890dd49c
3 changed files with 32 additions and 11 deletions

View File

@@ -79,6 +79,16 @@ int ast_device_state(const char *device);
int ast_device_state_changed(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2)));
/*! Tells Asterisk the State for Device is changed */
/*!
* \param device devicename like a dialstrin
* Asterisk polls the new extensionstates and calls the registered
* callbacks for the changed extensions
* Returns 0 on success, -1 on failure
*/
int ast_device_state_changed_literal(const char *device);
/*! Registers a device state change callback */
/*!
* \param data to pass to callback