[Freeswitch-svn] [commit] r10098 - freeswitch/trunk/src
Freeswitch SVN
brian at freeswitch.org
Tue Oct 21 15:18:40 EDT 2008
Author: brian
Date: Tue Oct 21 15:18:40 2008
New Revision: 10098
Modified:
freeswitch/trunk/src/switch_channel.c
Log:
use the define for this
Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c (original)
+++ freeswitch/trunk/src/switch_channel.c Tue Oct 21 15:18:40 2008
@@ -1501,7 +1501,7 @@
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_NOTICE, "Pre-Answer %s!\n", channel->name);
switch_channel_set_flag(channel, CF_EARLY_MEDIA);
- switch_channel_set_variable(channel, "endpoint_disposition", "EARLY MEDIA");
+ switch_channel_set_variable(channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "EARLY MEDIA");
if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_PROGRESS_MEDIA) == SWITCH_STATUS_SUCCESS) {
switch_channel_event_set_data(channel, event);
switch_event_fire(&event);
@@ -1649,7 +1649,7 @@
}
}
- switch_channel_set_variable(channel, "endpoint_disposition", "ANSWER");
+ switch_channel_set_variable(channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "ANSWER");
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_NOTICE, "Channel [%s] has been answered\n", channel->name);
if ((var = switch_channel_get_variable(channel, SWITCH_CHANNEL_EXECUTE_ON_ANSWER_VARIABLE)) && !switch_strlen_zero(var)) {
char *arg = NULL;
More information about the Freeswitch-svn
mailing list