git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1074 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-04-07 00:10:31 +00:00
parent 379083d8c7
commit 3e376393f8
1 changed files with 3 additions and 3 deletions

View File

@ -262,7 +262,7 @@ static switch_status exosip_on_init(switch_core_session *session)
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
} }
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Stun Success [%s]:[%d]\n", ip, sdp_port); switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Stun Success [%s]:[%d]\n", ip, sdp_port);
} else { } else if (!strcasecmp(globals.host, "guess")){
ip = globals.host; ip = globals.host;
} }
@ -270,7 +270,7 @@ static switch_status exosip_on_init(switch_core_session *session)
/* Setup codec negotiation stuffs */ /* Setup codec negotiation stuffs */
osip_rfc3264_init(&tech_pvt->sdp_config); osip_rfc3264_init(&tech_pvt->sdp_config);
strncpy(tech_pvt->local_sdp_audio_ip, ip, sizeof(tech_pvt->local_sdp_audio_ip)); strncpy(tech_pvt->local_sdp_audio_ip, localip, sizeof(tech_pvt->local_sdp_audio_ip));
/* Initialize SDP */ /* Initialize SDP */
sdp_message_init(&tech_pvt->local_sdp); sdp_message_init(&tech_pvt->local_sdp);
@ -1093,7 +1093,7 @@ static switch_status exosip_create_call(eXosip_event_t * event)
} }
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Stun Success [%s]:[%d]\n", ip, sdp_port); switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Stun Success [%s]:[%d]\n", ip, sdp_port);
switch_copy_string(tech_pvt->local_sdp_audio_ip, ip, sizeof(tech_pvt->local_sdp_audio_ip)); switch_copy_string(tech_pvt->local_sdp_audio_ip, ip, sizeof(tech_pvt->local_sdp_audio_ip));
} else { } else if (!strcasecmp(globals.host, "guess")){
ip = globals.host; ip = globals.host;
switch_copy_string(tech_pvt->local_sdp_audio_ip, ip, sizeof(tech_pvt->local_sdp_audio_ip)); switch_copy_string(tech_pvt->local_sdp_audio_ip, ip, sizeof(tech_pvt->local_sdp_audio_ip));
} }