Send "PROGRESS" when DIAL is accepted
authorMark Spencer <markster@digium.com>
Mon, 1 Sep 2003 16:12:54 +0000 (16:12 +0000)
committerMark Spencer <markster@digium.com>
Mon, 1 Sep 2003 16:12:54 +0000 (16:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1456 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index bc86da7..1192f4f 100755 (executable)
@@ -4341,6 +4341,7 @@ retryowner:
                                                if (option_verbose > 2) 
                                                        ast_verbose(VERBOSE_PREFIX_3 "Accepting DIAL from %s, formats = 0x%x\n", inet_ntoa(sin.sin_addr), iaxs[fr.callno]->peerformat);
                                                iaxs[fr.callno]->state |= IAX_STATE_STARTED;
+                                               send_command(iaxs[fr.callno], AST_FRAME_CONTROL, AST_CONTROL_PROGRESS, 0, NULL, 0, -1);
                                                if(!(c = ast_iax2_new(iaxs[fr.callno], AST_STATE_RING, iaxs[fr.callno]->peerformat)))
                                                        iax2_destroy_nolock(fr.callno);
                                        }