Browse code

core: fixed small issue when sending BYE on 2xx w/o to-tag

It's better to ACK the INVITE transaction before sending BYE.

Raphael Coeffic authored on 18/11/2013 13:53:03
Showing 1 changed files
... ...
@@ -361,6 +361,7 @@ bool AmSipDialog::onRxReplyStatus(const AmSipReply& reply,
361 361
 	  DBG("received 2xx reply without to-tag "
362 362
 	      "(callid=%s): sending BYE\n",reply.callid.c_str());
363 363
 
364
+	  send_200_ack(reply.cseq);
364 365
 	  sendRequest(SIP_METH_BYE);
365 366
 	}
366 367
 	else {