mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-15 19:40:06 +00:00
if plus a space
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9855 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
16b65a8f22
commit
d0688264c6
@ -616,6 +616,7 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, const char
|
|||||||
mpg123_param(context->mh, MPG123_FLAGS, MPG123_SEEKBUFFER|MPG123_MONO_MIX, 0);
|
mpg123_param(context->mh, MPG123_FLAGS, MPG123_SEEKBUFFER|MPG123_MONO_MIX, 0);
|
||||||
context->stream_url = switch_core_sprintf(context->memory_pool, "http://%s", path);
|
context->stream_url = switch_core_sprintf(context->memory_pool, "http://%s", path);
|
||||||
context->prebuf = handle->prebuf;
|
context->prebuf = handle->prebuf;
|
||||||
|
handle->vol = -4;
|
||||||
launch_read_stream_thread(context);
|
launch_read_stream_thread(context);
|
||||||
} else {
|
} else {
|
||||||
mpg123_param(context->mh, MPG123_FLAGS, MPG123_MONO_MIX, 0);
|
mpg123_param(context->mh, MPG123_FLAGS, MPG123_MONO_MIX, 0);
|
||||||
|
@ -128,8 +128,7 @@ static switch_status_t load_config(void)
|
|||||||
set_global_format(val);
|
set_global_format(val);
|
||||||
} else if (!strcasecmp(var, "loglevel") && !switch_strlen_zero(val)) {
|
} else if (!strcasecmp(var, "loglevel") && !switch_strlen_zero(val)) {
|
||||||
log_level = switch_log_str2level(val);
|
log_level = switch_log_str2level(val);
|
||||||
if(log_level == SWITCH_LOG_INVALID)
|
if (log_level == SWITCH_LOG_INVALID) {
|
||||||
{
|
|
||||||
log_level = SWITCH_LOG_WARNING;
|
log_level = SWITCH_LOG_WARNING;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_port_allocator_request_port(switch_c
|
|||||||
while (alloc->track[index] && tries < alloc->track_len)
|
while (alloc->track[index] && tries < alloc->track_len)
|
||||||
{
|
{
|
||||||
tries++;
|
tries++;
|
||||||
if(++index >= alloc->track_len) index = 0;
|
if (++index >= alloc->track_len) {
|
||||||
|
index = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tries < alloc->track_len) {
|
if (tries < alloc->track_len) {
|
||||||
|
@ -538,8 +538,7 @@ SWITCH_DECLARE(switch_status_t) switch_stun_lookup(char **ip,
|
|||||||
switch (attr->type) {
|
switch (attr->type) {
|
||||||
case SWITCH_STUN_ATTR_MAPPED_ADDRESS:
|
case SWITCH_STUN_ATTR_MAPPED_ADDRESS:
|
||||||
if (attr->type) {
|
if (attr->type) {
|
||||||
if(funny)
|
if (funny) {
|
||||||
{
|
|
||||||
((switch_stun_ip_t *) attr->value)->address ^= ntohl(0xabcdabcd);
|
((switch_stun_ip_t *) attr->value)->address ^= ntohl(0xabcdabcd);
|
||||||
}
|
}
|
||||||
switch_stun_packet_attribute_get_mapped_address(attr, rip, &rport);
|
switch_stun_packet_attribute_get_mapped_address(attr, rip, &rport);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user