diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 4047d1c3e1..2bc6f1e35e 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -10096,7 +10096,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data) ast_log(LOG_WARNING, "Extension '%s@%s' can never match. Jumping to 'i' extension. port:%d\n", bc->dialed.number, ch->context, bc->port); - pbx_builtin_setvar_helper(ch->ast, "INVALID_EXTEN", bc->dad); + pbx_builtin_setvar_helper(ch->ast, "INVALID_EXTEN", bc->dialed.number); ast_channel_exten_set(ch->ast, "i"); ch->state = MISDN_DIALING; start_pbx(ch, bc, ch->ast); @@ -10354,7 +10354,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data) ast_log(LOG_WARNING, "Extension '%s@%s' can never match. Jumping to 'i' extension. port:%d\n", bc->dialed.number, ch->context, bc->port); - pbx_builtin_setvar_helper(ch->ast, "INVALID_EXTEN", bc->dad); + pbx_builtin_setvar_helper(ch->ast, "INVALID_EXTEN", bc->dialed.number); ast_channel_exten_set(ch->ast, "i"); misdn_lib_send_event(bc, EVENT_SETUP_ACKNOWLEDGE); ch->state = MISDN_DIALING; diff --git a/doc/appdocsxml.dtd b/doc/appdocsxml.dtd index c379843d3f..561e3d38cd 100644 --- a/doc/appdocsxml.dtd +++ b/doc/appdocsxml.dtd @@ -48,6 +48,7 @@ + diff --git a/main/logger.c b/main/logger.c index b4069605d1..3caea6cc53 100644 --- a/main/logger.c +++ b/main/logger.c @@ -1306,16 +1306,14 @@ void ast_callid_strnprint(char *buffer, size_t buffer_size, struct ast_callid *c struct ast_callid *ast_create_callid(void) { struct ast_callid *call; - int using; - if (!(call = ao2_alloc(sizeof(struct ast_callid), NULL))) { + call = ao2_alloc_options(sizeof(struct ast_callid), NULL, AO2_ALLOC_OPT_LOCK_NOLOCK); + if (!call) { ast_log(LOG_ERROR, "Could not allocate callid struct.\n"); return NULL; } - using = ast_atomic_fetchadd_int(&next_unique_callid, +1); - - call->call_identifier = using; + call->call_identifier = ast_atomic_fetchadd_int(&next_unique_callid, +1); ast_debug(3, "CALL_ID [C-%08x] created by thread.\n", call->call_identifier); return call; } diff --git a/res/res_jabber.c b/res/res_jabber.c index fe05274ef3..e8e79051e4 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -101,8 +101,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") asterisk, configured in jabber.conf. - JABBER_STATUS - JABBER_RECEIVE + JABBER_STATUS + JABBER_RECEIVE @@ -130,8 +130,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") the asterisk XMPP account configured in jabber.conf. - JABBER_STATUS - JabberSend + JABBER_STATUS + JabberSend @@ -160,8 +160,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") the associated XMPP account configured in jabber.conf. - JABBER_RECEIVE - JabberSend + JABBER_RECEIVE + JabberSend @@ -269,7 +269,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") - + Sends a message to a Jabber Client. diff --git a/res/res_xmpp.c b/res/res_xmpp.c index c924080981..3e84e41932 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -90,8 +90,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") asterisk, configured in xmpp.conf. - JABBER_STATUS - JABBER_RECEIVE + JABBER_STATUS + JABBER_RECEIVE @@ -119,8 +119,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") the asterisk XMPP account configured in xmpp.conf. - JABBER_STATUS - JabberSend + JABBER_STATUS + JabberSend @@ -149,8 +149,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") the associated XMPP account configured in xmpp.conf. - JABBER_RECEIVE - JabberSend + JABBER_RECEIVE + JabberSend