mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
use more correct const char * for things that should not be modified. This should also fix the switch_cpp.cpp changes from MODAPP-44. More patches to follow up on this for a few more modules that will likely break with this commit.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6120 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -286,7 +286,7 @@ SWITCH_STANDARD_API(transfer_function)
|
||||
switch_channel_t *channel = switch_core_session_get_channel(tsession);
|
||||
arg++;
|
||||
if (!strcasecmp(arg, "bleg")) {
|
||||
char *uuid = switch_channel_get_variable(channel, SWITCH_BRIDGE_VARIABLE);
|
||||
const char *uuid = switch_channel_get_variable(channel, SWITCH_BRIDGE_VARIABLE);
|
||||
if (uuid && (other_session = switch_core_session_locate(uuid))) {
|
||||
switch_core_session_t *tmp = tsession;
|
||||
tsession = other_session;
|
||||
@@ -294,7 +294,7 @@ SWITCH_STANDARD_API(transfer_function)
|
||||
switch_core_session_rwunlock(tmp);
|
||||
}
|
||||
} else if (!strcasecmp(arg, "both")) {
|
||||
char *uuid = switch_channel_get_variable(channel, SWITCH_BRIDGE_VARIABLE);
|
||||
const char *uuid = switch_channel_get_variable(channel, SWITCH_BRIDGE_VARIABLE);
|
||||
switch_core_session_t *other_session;
|
||||
if (uuid && (other_session = switch_core_session_locate(uuid))) {
|
||||
switch_ivr_session_transfer(other_session, dest, dp, context);
|
||||
|
Reference in New Issue
Block a user