Add some debug logging
authorOlle Johansson <oej@edvina.net>
Wed, 14 Jun 2006 15:15:29 +0000 (15:15 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 14 Jun 2006 15:15:29 +0000 (15:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34126 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index be92be0..3118d60 100644 (file)
@@ -11627,7 +11627,8 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
                                        if (!p->refer) {
                                                ast_log(LOG_WARNING, "Notify answer on an owned channel? - %s\n", p->owner->name);
                                                ast_queue_hangup(p->owner);
-                                       }
+                                       } else if (option_debug > 3) 
+                                               ast_log(LOG_DEBUG, "Got OK on REFER Notify message\n");
                                } else {
                                        if (p->subscribed == NONE) 
                                                ast_set_flag(&p->flags[0], SIP_NEEDDESTROY);