[Asterisk-cvs] asterisk/channels chan_iax2.c,1.183,1.184
markster at lists.digium.com
markster at lists.digium.com
Wed Sep 15 13:30:09 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv27520/channels
Modified Files:
chan_iax2.c
Log Message:
Queue congestion on REJECT (bug #2448)
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -d -r1.183 -r1.184
--- chan_iax2.c 12 Sep 2004 15:29:56 -0000 1.183
+++ chan_iax2.c 15 Sep 2004 17:31:37 -0000 1.184
@@ -5364,6 +5364,10 @@
iax2_destroy_nolock(fr.callno);
break;
case IAX_COMMAND_REJECT:
+ memset(&f, 0, sizeof(f));
+ f.frametype = AST_FRAME_CONTROL;
+ f.subclass = AST_CONTROL_CONGESTION;
+ iax2_queue_frame(fr.callno, &f);
if (iaxs[fr.callno]->provision) {
/* Send ack immediately, before we destroy */
send_command_immediate(iaxs[fr.callno], AST_FRAME_IAX, IAX_COMMAND_ACK, fr.ts, NULL, 0,fr.iseqno);
More information about the svn-commits
mailing list