mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 06:48:25 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user