]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSSCRIPTS-21
authorBrian West <brian@freeswitch.org>
Thu, 12 Nov 2009 14:01:44 +0000 (14:01 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 12 Nov 2009 14:01:44 +0000 (14:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15443 d0543943-73ff-0310-b7d9-9358b9ac24b2

debian/freeswitch.init
src/mod/endpoints/mod_sofia/sofia_sla.c

index 28f276f7a2a912cef036640b5cfd97225171f167..a839ac819089f07c1bfbb74ecc8c6a416d42dce7 100755 (executable)
@@ -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
index afec5e5a12cb4be1ff016d0a11e450856845d12b..1fee96437b445b5f938c0974c5308c82bd408777 100644 (file)
@@ -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("<?xml version=\"1.0\"?>\n"
-                                               "<dialog-info xmlns=\"urn:ietf:params:xml:ns:dialog-info\" "
-                                               "version=\"0\" state=\"full\" entity=\"%s\"></dialog-info>\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);