Author: sayer
Date: 2008-06-10 14:02:26 +0200 (Tue, 10 Jun 2008)
New Revision: 1013
Modified:
branches/1.0.0/core/AmSipDialog.cpp
Log:
overwriting local tag when establishing the dialog. fixes problems with early
dialog from forked destination. patch from Alex Gradinar Alex.Gradinar at
cartel.md (backport from trunk)
Modified: branches/1.0.0/core/AmSipDialog.cpp
===================================================================
--- branches/1.0.0/core/AmSipDialog.cpp 2008-06-10 11:59:22 UTC (rev 1012)
+++ branches/1.0.0/core/AmSipDialog.cpp 2008-06-10 12:02:26 UTC (rev 1013)
@@ -194,6 +194,10 @@
(remote_tag.empty() && !reply.remote_tag.empty()))
remote_tag = reply.remote_tag;
+ if ((reply.code >= 200) && (reply.code < 300) &&
+ (status != Connected && !reply.remote_tag.empty()))
+ remote_tag = reply.remote_tag;
+
// allow route overwritting
if(status < Connected) {
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev