Module: sems Branch: master Commit: ce19dc140649badae2258c2773773cee85271842 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=ce19dc140649badae2258c2773773cee85271842
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Wed May 4 11:44:56 2011 +0200 do not bother about to-tag for anything else but 2xx replies. --- core/sip/trans_layer.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/core/sip/trans_layer.cpp b/core/sip/trans_layer.cpp index d5323ae..fd70adf 100644 --- a/core/sip/trans_layer.cpp +++ b/core/sip/trans_layer.cpp @@ -1269,7 +1269,9 @@ int _trans_layer::update_uac_reply(trans_bucket* bucket, sip_trans* t, sip_msg* } to_tag = ((sip_from_to*)msg->to->p)->tag; - if((t->msg->u.request->method != sip_request::CANCEL) && !to_tag.len){ + if((t->msg->u.request->method != sip_request::CANCEL) && + (reply_code < 300) && + !to_tag.len){ if (!trans_layer::accept_fr_without_totag) { DBG("To-tag missing in final reply (see " "sems.conf: accept_fr_without_totag?)\n"); _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
