[Asterisk-cvs] asterisk/channels chan_iax2.c,1.238,1.239
markster at lists.digium.com
markster at lists.digium.com
Thu Jan 20 16:51:00 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv18321/channels
Modified Files:
chan_iax2.c
Log Message:
Make sure we check for owner even after a queue frame
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.238
retrieving revision 1.239
diff -u -d -r1.238 -r1.239
--- chan_iax2.c 15 Jan 2005 07:33:17 -0000 1.238
+++ chan_iax2.c 20 Jan 2005 22:53:57 -0000 1.239
@@ -1533,7 +1533,9 @@
fr.frametype = AST_FRAME_CONTROL;
fr.subclass = AST_CONTROL_HANGUP;
iax2_queue_frame(f->callno, &fr);
- iaxs[f->callno]->owner->hangupcause = AST_CAUSE_DESTINATION_OUT_OF_ORDER;
+ /* Remember, owner could disappear */
+ if (iaxs[f->callno]->owner)
+ iaxs[f->callno]->owner->hangupcause = AST_CAUSE_DESTINATION_OUT_OF_ORDER;
} else {
if (iaxs[f->callno]->reg) {
memset(&iaxs[f->callno]->reg->us, 0, sizeof(iaxs[f->callno]->reg->us));
More information about the svn-commits
mailing list