From a800993698771faef587d35aed9be99022651272 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Fri, 16 Dec 2011 15:53:58 -0600 Subject: [PATCH] temp fix for windows --- src/mod/endpoints/mod_sofia/mod_sofia.h | 2 ++ src/mod/endpoints/mod_sofia/sofia.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.h b/src/mod/endpoints/mod_sofia/mod_sofia.h index 7d92a320df..13e50cdf51 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.h +++ b/src/mod/endpoints/mod_sofia/mod_sofia.h @@ -131,7 +131,9 @@ typedef struct private_object private_object_t; #include "sofia-sip/sip_parser.h" #include "sofia-sip/tport_tag.h" #include +#ifndef WIN32 #include +#endif typedef enum { DTMF_2833, diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index ff722d385b..c116acad4b 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -2463,6 +2463,8 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag) gateway->register_transport = transport; } } +#ifndef WIN32 + /* Windows todo figure this out! */ /* RFC 5626 enable in the GW profile and the UA profile */ if (rfc_5626 && sofia_test_pflag(profile, PFLAG_ENABLE_RFC5626)) { char str_guid[su_guid_strlen + 1]; @@ -2471,6 +2473,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag) su_guid_sprintf(str_guid, su_guid_strlen + 1, guid); str_rfc_5626 = switch_core_sprintf(gateway->pool, ";reg-id=%s;+sip.instance=\"\"",reg_id,str_guid); } +#endif if (ping_freq) { if (ping_freq >= 5) {