diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-16 16:51:59 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-16 16:51:59 +0000 |
commit | e8353f079980232587ab30b525c3e66992dea6a9 (patch) | |
tree | 66472979ab7c84b74d4cc50081d38d4e11836475 /channels | |
parent | 2898665164556d7cff0ee44adbf344f096789f79 (diff) |
Don't fixup if there's nothing to fixup
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47744 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e480ad70f..1d01da5f8 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3507,6 +3507,11 @@ static int sip_fixup(struct ast_channel *oldchan, struct ast_channel *newchan) } p = newchan->tech_pvt; + if (!p) { + ast_log(LOG_WARNING, "No pvt after masquerade. Strange things may happen\n"); + return -1; + } + ast_mutex_lock(&p->lock); append_history(p, "Masq", "Old channel: %s\n", oldchan->name); append_history(p, "Masq (cont)", "...new owner: %s\n", newchan->name); |