dect
/
asterisk
Archived
13
0
Fork 0

Fix pri->pvt[chan]->owner dereference (bug #1161)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2341 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
citats 2004-03-05 04:15:55 +00:00
parent d3f1c83560
commit 9fb2b09137
1 changed files with 1 additions and 1 deletions

View File

@ -6510,9 +6510,9 @@ static void *pri_dchannel(void *vpri)
if (!pri->pvt[chan]->alreadyhungup) {
/* we're calling here zt_hangup so once we get there we need to clear p->call after calling pri_hangup */
pri->pvt[chan]->alreadyhungup = 1;
pri->pvt[chan]->owner->hangupcause = hangup_pri2cause(e->hangup.cause);
/* Queue a BUSY instead of a hangup if our cause is appropriate */
if (pri->pvt[chan]->owner) {
pri->pvt[chan]->owner->hangupcause = hangup_pri2cause(e->hangup.cause);
switch(e->hangup.cause) {
case PRI_CAUSE_USER_BUSY:
pri->pvt[chan]->subs[SUB_REAL].needbusy =1;