[commit] r9099 - in freeswitch/trunk/src: . mod/endpoints/mod_sofia
Author: anthm Date: Fri Jul 18 18:04:10 2008 New Revision: 9099 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c freeswitch/trunk/src/switch_stun.c Log: update Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c Fri Jul 18 18:04:10 2008 @@ -471,7 +471,7 @@ } } if (status != SWITCH_STATUS_SUCCESS) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Stun Failed! %s:%d [%s]\n", stun_ip, SWITCH_STUN_DEFAULT_PORT, error); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Stun Failed! %s:%d [%s]\n", stun_ip, stun_port, error); goto out; } if (!*ip) { Modified: freeswitch/trunk/src/switch_stun.c ============================================================================== --- freeswitch/trunk/src/switch_stun.c (original) +++ freeswitch/trunk/src/switch_stun.c Fri Jul 18 18:04:10 2008 @@ -489,6 +489,12 @@ switch_stun_random_string(username, 32, NULL); switch_stun_packet_attribute_add_username(packet, username, 32); bytes = switch_stun_packet_length(packet); + + if (funny) { + packet = (switch_stun_packet_t *) buf; + bytes += 4; + } + switch_socket_sendto(sock, remote_addr, 0, (void *) packet, &bytes); started = switch_timestamp_now();
participants (1)
-
Freeswitch SVN