]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Ouput a second line with tls_url and (TLS) in sofia status for tls enabled profiles
authorStefan Knoblich <stkn@freeswitch.org>
Sat, 19 Jan 2008 01:28:36 +0000 (01:28 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Sat, 19 Jan 2008 01:28:36 +0000 (01:28 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7294 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index a9e3c3bb63db09646c7303624b6ccaf3a729e30a..16be182bb43746a819b1cc277b803035239c8918 100644 (file)
@@ -1260,6 +1260,12 @@ static switch_status_t cmd_status(char **argv, int argc, switch_stream_handle_t
                        } else {
                                stream->write_function(stream, "%25s\t%s\t  %32s\t%s (%u)\n", profile->name, "profile", profile->url,
                                                                           sofia_test_pflag(profile, PFLAG_RUNNING) ? "RUNNING" : "DOWN", profile->inuse);
+
+                               if (sofia_test_pflag(profile, PFLAG_TLS)) {
+                               stream->write_function(stream, "%25s\t%s\t  %32s\t%s (%u) (TLS)\n", profile->name, "profile", profile->tls_url,
+                                                                          sofia_test_pflag(profile, PFLAG_RUNNING) ? "RUNNING" : "DOWN", profile->inuse);
+                               }
+
                                c++;
 
                                for (gp = profile->gateways; gp; gp = gp->next) {