]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix windows build
authorMichael Jerris <mike@jerris.com>
Mon, 19 Nov 2007 21:34:27 +0000 (21:34 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 19 Nov 2007 21:34:27 +0000 (21:34 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6343 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 27b236f77416e7a430c2cdf5cccef70b899fdbc1..0c3c3f767c8d8fedb1dbf0563822b19f4400d9c7 100644 (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,