Revision
14274
Author
brian
Date
2009-07-16 12:08:04 -0500 (Thu, 16 Jul 2009)

Log Message

 I screwed this up sorry 

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c (14273 => 14274)


--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	2009-07-16 16:33:59 UTC (rev 14273)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	2009-07-16 17:08:04 UTC (rev 14274)
@@ -99,7 +99,7 @@
 
 	if (argv[0] && switch_stristr("add", argv[0])) {
 		if (switch_nat_add_mapping((switch_port_t)atoi(argv[1]), proto, &external_port, sticky) == SWITCH_STATUS_SUCCESS) {
-			stream->write_function(stream, "%d", (int)external_port);
+			stream->write_function(stream, "true"); /* still return true */
 			goto ok;
 		}
 	} else if (argv[0] && switch_stristr("del", argv[0])) {

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (14273 => 14274)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2009-07-16 16:33:59 UTC (rev 14273)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2009-07-16 17:08:04 UTC (rev 14274)
@@ -661,7 +661,7 @@
 	}
 	sdp_port = tech_pvt->local_sdp_audio_port;
 
-	if (!(use_ip = switch_channel_get_variable(tech_pvt->channel, "rtp_adv_audio_ip"))) {
+	if (!(use_ip = switch_channel_get_variable(tech_pvt->channel, "rtp_adv_audio_ip")) && !sofia_test_pflag(tech_pvt->profile, PFLAG_AUTO_NAT)) {
 		if (tech_pvt->profile->extrtpip) {
 			use_ip = tech_pvt->profile->extrtpip;
 		}