Module: sems Branch: 1.4 Commit: 7c6cf9a4d558fb0b2762d8d9cb3dbcf579c72223 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=7c6cf9a4d558fb0b2762d8d9cb3dbcf579c72223
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 288570b..279be78 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?)\n"); return -1; _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
