mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 20:08:17 +00:00
Add steven's SIP update
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -677,6 +677,13 @@ int ast_manager_unregister( char *action ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int manager_state_cb(char *context, char *exten, int state, void *data)
|
||||
{
|
||||
/* Notify managers of change */
|
||||
manager_event(EVENT_FLAG_CALL, "ExtensionStatus", "Exten: %s\r\nContext: %s\r\nStatus: %d\r\n", exten, context, state);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ast_manager_register( char *action, int auth,
|
||||
int (*func)(struct mansession *s, struct message *m), char *synopsis)
|
||||
{
|
||||
@@ -731,6 +738,7 @@ int init_manager(void)
|
||||
|
||||
ast_cli_register(&show_mancmds_cli);
|
||||
ast_cli_register(&show_manconn_cli);
|
||||
ast_extension_state_add(NULL, NULL, manager_state_cb, NULL);
|
||||
registered = 1;
|
||||
}
|
||||
portno = DEFAULT_MANAGER_PORT;
|
||||
|
||||
Reference in New Issue
Block a user