Merge branch 'master' of ssh://git.freeswitch.org/freeswitch
This commit is contained in:
commit
f53ce50a4c
|
@ -2208,6 +2208,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
|
|||
SIPTAG_CONTACT_STR(tech_pvt->reply_contact),
|
||||
SOATAG_REUSE_REJECTED(1),
|
||||
SOATAG_ORDERED_USER(1),
|
||||
SOATAG_RTP_SELECT(1),
|
||||
SOATAG_ADDRESS(tech_pvt->adv_sdp_audio_ip),
|
||||
SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str), SOATAG_AUDIO_AUX("cn telephone-event"),
|
||||
TAG_IF(call_info, SIPTAG_CALL_INFO_STR(call_info)),
|
||||
|
|
|
@ -1363,7 +1363,7 @@ static void *SWITCH_THREAD_FUNC api_exec(switch_thread_t *thread, void *obj)
|
|||
|
||||
if (acs->console_execute) {
|
||||
if ((status = switch_console_execute(acs->api_cmd, 0, &stream)) != SWITCH_STATUS_SUCCESS) {
|
||||
stream.write_function(&stream, "%s: Command not found!\n", acs->api_cmd);
|
||||
stream.write_function(&stream, "-ERR %s Command not found!\n", acs->api_cmd);
|
||||
}
|
||||
} else {
|
||||
status = switch_api_execute(acs->api_cmd, acs->arg, NULL, &stream);
|
||||
|
@ -1372,7 +1372,7 @@ static void *SWITCH_THREAD_FUNC api_exec(switch_thread_t *thread, void *obj)
|
|||
if (status == SWITCH_STATUS_SUCCESS) {
|
||||
reply = stream.data;
|
||||
} else {
|
||||
freply = switch_mprintf("%s: Command not found!\n", acs->api_cmd);
|
||||
freply = switch_mprintf("-ERR %s Command not found!\n", acs->api_cmd);
|
||||
reply = freply;
|
||||
}
|
||||
|
||||
|
|
|
@ -702,8 +702,11 @@ SWITCH_DECLARE(switch_status_t) switch_cache_db_persistant_execute_trans(switch_
|
|||
if (runtime.odbc_dbtype == DBTYPE_DEFAULT) {
|
||||
switch_cache_db_execute_sql_real(dbh, "BEGIN", &errmsg);
|
||||
} else {
|
||||
if (switch_odbc_SQLSetAutoCommitAttr(dbh->native_handle.odbc_dbh, 0) != SWITCH_ODBC_SUCCESS) {
|
||||
errmsg = strdup("Unable to Set AutoCommit Off.");;
|
||||
switch_odbc_status_t result;
|
||||
if ((result = switch_odbc_SQLSetAutoCommitAttr(dbh->native_handle.odbc_dbh, 0)) != SWITCH_ODBC_SUCCESS) {
|
||||
char tmp[100];
|
||||
switch_snprintf(tmp, sizeof(tmp), "%s-%i", "Unable to Set AutoCommit Off", result);
|
||||
errmsg = strdup(tmp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue