mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-06 07:29:30 +00:00
skypiax: indenting
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16824 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
05048ba11f
commit
a15fd5a9a0
@ -258,7 +258,6 @@ switch_status_t skypiax_tech_init(private_t * tech_pvt, switch_core_session_t *s
|
||||
ERRORA("skypiax_codec FAILED\n", SKYPIAX_P_LOG);
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (switch_core_timer_init(&tech_pvt->timer_read, "soft", 20, tech_pvt->read_codec.implementation->samples_per_packet, skypiax_module_pool) !=
|
||||
SWITCH_STATUS_SUCCESS) {
|
||||
@ -814,11 +813,6 @@ size_t bytes_read=0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#if SWITCH_BYTE_ORDER == __BIG_ENDIAN
|
||||
if (switch_test_flag(tech_pvt, TFLAG_LINEAR)) {
|
||||
switch_swap_linear((*frame)->data, (int) (*frame)->datalen / 2);
|
||||
@ -1606,8 +1600,7 @@ static switch_status_t load_config(int reload_type)
|
||||
DEBUGA_SKYPE("i=%d globals.SKYPIAX_INTERFACES[%d].destination=%s\n", SKYPIAX_P_LOG, i, i, globals.SKYPIAX_INTERFACES[i].destination);
|
||||
DEBUGA_SKYPE("i=%d globals.SKYPIAX_INTERFACES[%d].report_incoming_chatmessages=%d\n", SKYPIAX_P_LOG, i, i,
|
||||
globals.SKYPIAX_INTERFACES[i].report_incoming_chatmessages);
|
||||
DEBUGA_SKYPE("i=%d globals.SKYPIAX_INTERFACES[%d].silent_mode=%d\n", SKYPIAX_P_LOG, i, i,
|
||||
globals.SKYPIAX_INTERFACES[i].silent_mode);
|
||||
DEBUGA_SKYPE("i=%d globals.SKYPIAX_INTERFACES[%d].silent_mode=%d\n", SKYPIAX_P_LOG, i, i, globals.SKYPIAX_INTERFACES[i].silent_mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1805,7 +1798,6 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_skypiax_shutdown)
|
||||
DEBUGA_SKYPE("got FALSE here, thread probably was already dead. GetLastError returned: %d\n", SKYPIAX_P_LOG, GetLastError());
|
||||
//globals.SKYPIAX_INTERFACES[interface_id].skypiax_api_thread = NULL;
|
||||
}
|
||||
|
||||
//cicopet
|
||||
#else
|
||||
if (tech_pvt->SkypiaxHandles.disp) {
|
||||
@ -1893,11 +1885,13 @@ int dtmf_received(private_t * tech_pvt, char *value)
|
||||
|
||||
if (channel) {
|
||||
|
||||
if (switch_channel_test_flag(channel, CF_BRIDGED) && !switch_true(switch_channel_get_variable(channel, "skype_add_outband_dtmf_also_when_bridged"))) {
|
||||
if (switch_channel_test_flag(channel, CF_BRIDGED)
|
||||
&& !switch_true(switch_channel_get_variable(channel, "skype_add_outband_dtmf_also_when_bridged"))) {
|
||||
|
||||
|
||||
NOTICA
|
||||
("received DTMF '%c' on channel %s, but we're BRIDGED, so we DO NOT relay it out of band. If you DO want to relay it out of band when bridged too, on top of audio DTMF, set the channel variable 'skype_add_outband_dtmf_also_when_bridged=true' \n", SKYPIAX_P_LOG, value[0], switch_channel_get_name(channel));
|
||||
("received DTMF '%c' on channel %s, but we're BRIDGED, so we DO NOT relay it out of band. If you DO want to relay it out of band when bridged too, on top of audio DTMF, set the channel variable 'skype_add_outband_dtmf_also_when_bridged=true' \n",
|
||||
SKYPIAX_P_LOG, value[0], switch_channel_get_name(channel));
|
||||
|
||||
} else {
|
||||
|
||||
@ -1926,8 +1920,7 @@ int start_audio_threads(private_t * tech_pvt)
|
||||
tech_pvt->begin_to_write = 0;
|
||||
tech_pvt->begin_to_read = 0;
|
||||
#if 1
|
||||
if (switch_core_timer_init(&tech_pvt->timer_read, "soft", 20, 320, skypiax_module_pool) !=
|
||||
SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_core_timer_init(&tech_pvt->timer_read, "soft", 20, 320, skypiax_module_pool) != SWITCH_STATUS_SUCCESS) {
|
||||
ERRORA("setup timer failed\n", SKYPIAX_P_LOG);
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
@ -1936,8 +1929,7 @@ tech_pvt->begin_to_read=0;
|
||||
|
||||
#ifdef TIMER_WRITE
|
||||
//if (switch_core_timer_init(&tech_pvt->timer_write, "soft", 10, 320, skypiax_module_pool) !=
|
||||
if (switch_core_timer_init(&tech_pvt->timer_write, "soft", 20, 320, skypiax_module_pool) !=
|
||||
SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_core_timer_init(&tech_pvt->timer_write, "soft", 20, 320, skypiax_module_pool) != SWITCH_STATUS_SUCCESS) {
|
||||
ERRORA("setup timer failed\n", SKYPIAX_P_LOG);
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
@ -2699,7 +2691,8 @@ SWITCH_STANDARD_API(skypiax_chat_function)
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
int next_port(void){
|
||||
int next_port(void)
|
||||
{
|
||||
switch_mutex_lock(globals.mutex);
|
||||
globals.start_port++;
|
||||
if (globals.start_port == 65000)
|
||||
|
@ -999,7 +999,8 @@ void *skypiax_do_tcp_cli_thread_func(void *obj)
|
||||
fdselect = fd;
|
||||
FD_SET(fdselect, &fs);
|
||||
|
||||
if (tech_pvt->timer_write.timer_interface && tech_pvt->timer_write.timer_interface->timer_next && tech_pvt->interface_state != SKYPIAX_STATE_HANGUP_REQUESTED) {
|
||||
if (tech_pvt->timer_write.timer_interface && tech_pvt->timer_write.timer_interface->timer_next
|
||||
&& tech_pvt->interface_state != SKYPIAX_STATE_HANGUP_REQUESTED) {
|
||||
switch_core_timer_next(&tech_pvt->timer_write);
|
||||
}
|
||||
#if 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user