From b18c4307a24095d2bb2d9021e87749adb2ac7212 Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 12 Nov 2009 14:01:44 +0000 Subject: [PATCH] FSSCRIPTS-21 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15443 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- debian/freeswitch.init | 2 +- src/mod/endpoints/mod_sofia/sofia_sla.c | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/debian/freeswitch.init b/debian/freeswitch.init index 28f276f7a2..a839ac8190 100755 --- a/debian/freeswitch.init +++ b/debian/freeswitch.init @@ -132,7 +132,7 @@ case "$1" in log_daemon_msg "Reloading $DESC" "$NAME" do_reload log_end_msg $? - #;; + ;; restart) # # If the "reload" option is implemented then remove the diff --git a/src/mod/endpoints/mod_sofia/sofia_sla.c b/src/mod/endpoints/mod_sofia/sofia_sla.c index afec5e5a12..1fee96437b 100644 --- a/src/mod/endpoints/mod_sofia/sofia_sla.c +++ b/src/mod/endpoints/mod_sofia/sofia_sla.c @@ -155,7 +155,6 @@ void sofia_sla_handle_sip_i_subscribe(nua_t *nua, const char *contact_str, sofia char network_ip[80]; int network_port = 0; sofia_transport_t transport = sofia_glue_url2transport(sip->sip_contact->m_url); - char *pl; sofia_glue_get_addr(nua_current_request(nua), network_ip, sizeof(network_ip), &network_port); /* @@ -230,22 +229,7 @@ void sofia_sla_handle_sip_i_subscribe(nua_t *nua, const char *contact_str, sofia SIPTAG_EXPIRES_STR("300"), /* likewise, totally fake - FIXME XXX MTK */ /* sofia_presence says something about needing TAG_IF(sticky, NUTAG_PROXY(sticky)) for NAT stuff? */ TAG_END()); - - - pl = switch_mprintf("\n" - "\n", aor); - - nua_notify(nh, - SIPTAG_SUBSCRIPTION_STATE_STR("active;expires=300"), /* XXX MTK FIXME - this is totally fake calculation */ - TAG_IF(route_uri, NUTAG_PROXY(route_uri)), - SIPTAG_CONTENT_TYPE_STR("application/dialog-info+xml"), /* could've just kept the type from the payload */ - SIPTAG_PAYLOAD_STR(pl), - TAG_END()); - - - switch_safe_free(aor); switch_safe_free(subscriber); switch_safe_free(route_uri);