]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
...
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 17 Apr 2007 01:21:34 +0000 (01:21 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 17 Apr 2007 01:21:34 +0000 (01:21 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4953 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_wanpipe/mod_wanpipe.c

index 693dc01d34ef1b731653fc445f80ea412fa997c5..8d7b95859787f64483572fcd9fb3c66863a4b94f 100644 (file)
@@ -1362,11 +1362,16 @@ static int on_hangup(struct sangoma_pri *spri, sangoma_pri_event_t event_type, p
                        tech_pvt->cause = pevent->hangup.cause;
                        switch_set_flag_locked(tech_pvt, TFLAG_HANGUP);
                        switch_channel_hangup(channel, tech_pvt->cause);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "-- Hanging up channel s%dc%d\n", spri->span, pevent->hangup.channel);
+               } else {
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "-- Duplicate Hang up on channel s%dc%d\n", spri->span, pevent->hangup.channel);
                }
                switch_core_session_rwunlock(session);
+       } else {
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "-- Hanging up nonexistant channel s%dc%d\n", spri->span, pevent->hangup.channel);
        }
 
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "-- Hanging up channel s%dc%d\n", spri->span, pevent->hangup.channel);
+
        return 0;
 }