fix windows build

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6343 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-11-19 21:34:27 +00:00
parent 1f2f171065
commit 1622484008
1 changed files with 16 additions and 1 deletions

View File

@ -35,6 +35,7 @@
*/
#include "mod_sofia.h"
#include "sofia-sip/msg_parser.h"
#include "sofia-sip/sip_extra.h"
extern su_log_t tport_log[];
@ -740,6 +741,13 @@ switch_status_t config_sofia(int reload, char *profile_name)
if (!reload) {
su_init();
#if 0
if (sip_update_default_mclass(sip_extend_mclass(NULL)) < 0) {
su_deinit();
return SWITCH_STATUS_FALSE;
}
#endif
su_log_redirect(NULL, logger, NULL);
su_log_redirect(tport_log, logger, NULL);
}
@ -1852,9 +1860,9 @@ void process_rpid(const char *val, private_object_t *tech_pvt)
if (!switch_strlen_zero(val)) {
if ((mydata = strdup(val))) {
argc = switch_separate_string(mydata, ';', argv, (sizeof(argv) / sizeof(argv[0])));
char *name = argv[0];
char *num;
argc = switch_separate_string(mydata, ';', argv, (sizeof(argv) / sizeof(argv[0])));
if ((num = strchr(argv[0], '<'))) {
char *end;
@ -1927,6 +1935,9 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
switch_core_session_t *session = NULL;
char key[128] = "";
sip_unknown_t *un;
#if 0
sip_remote_party_id_t *rpid = NULL;
#endif
private_object_t *tech_pvt = NULL;
switch_channel_t *channel = NULL;
const char *channel_name = NULL;
@ -2158,6 +2169,10 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
dialplan = profile->dialplan;
}
#if 0
rpid = sip_remote_party_id(sip);
#endif
check_decode(displayname, session);
tech_pvt->caller_profile = switch_caller_profile_new(switch_core_session_get_pool(session),
from_user,