Add more history on masqs
authorOlle Johansson <oej@edvina.net>
Mon, 17 Apr 2006 13:52:53 +0000 (13:52 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 17 Apr 2006 13:52:53 +0000 (13:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20903 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 26a7809..7d7114b 100644 (file)
@@ -2859,11 +2859,12 @@ static int sip_fixup(struct ast_channel *oldchan, struct ast_channel *newchan)
        p = newchan->tech_pvt;
 
        ast_mutex_lock(&p->lock);
        p = newchan->tech_pvt;
 
        ast_mutex_lock(&p->lock);
+       append_history(p, "Masq", "Old channel: %s\n", oldchan->name);
+       append_history(p, "Masq (cont)", "...new owner: %s\n", p->owner->name);
        if (p->owner != oldchan)
                ast_log(LOG_WARNING, "old channel wasn't %p but was %p\n", oldchan, p->owner);
        else {
                p->owner = newchan;
        if (p->owner != oldchan)
                ast_log(LOG_WARNING, "old channel wasn't %p but was %p\n", oldchan, p->owner);
        else {
                p->owner = newchan;
-               append_history(p, "Masq", "Old channel: %s\n", oldchan->name);
                ret = 0;
        }
        ast_mutex_unlock(&p->lock);
                ret = 0;
        }
        ast_mutex_unlock(&p->lock);