Add more history on masqs

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Olle Johansson
2006-04-17 13:52:53 +00:00
parent b124cf4c80
commit 42918c225a

View 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);
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;
append_history(p, "Masq", "Old channel: %s\n", oldchan->name);
ret = 0;
}
ast_mutex_unlock(&p->lock);