Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv12771/channels
Modified Files:
chan_iax2.c
Log Message:
ensure cause code supplied by IAX2 peer is passed up to caller properly (bug
#4064)
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.272
retrieving revision 1.273
diff -u -d -r1.272 -r1.273
--- chan_iax2.c 21 Apr 2005 06:02:43 -0000 1.272
+++ chan_iax2.c 22 Apr 2005 02:30:36 -0000 1.273
@@ -6751,6 +6751,11 @@
memset(&f, 0, sizeof(f));
f.frametype = AST_FRAME_CONTROL;
f.subclass = AST_CONTROL_CONGESTION;
+
+ /* Set hangup cause according to remote */
+ if (ies.causecode && iaxs[fr.callno]->owner)
+ iaxs[fr.callno]->owner->hangupcause =
ies.causecode;
+
iax2_queue_frame(fr.callno, &f);
if (ast_test_flag(iaxs[fr.callno],
IAX_PROVISION)) {
/* Send ack immediately, before we
destroy */
_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs