o Juha Heinanen on 09/04/2013 04:31 PM:
> Stefan Sayer writes:
>
>> I think clear_other needs to be called there. could you try out the
>> attached patch?
>
> Stefan,
>
> unfortunately the patch didn't have any effect. sems still tries to
> send the second invite as in-dialog request:
ok, sorry for this; looking at it a bit further, what happens is that
in AmB2BCallerSession::onB2BEvent if a reply >=300 is received,
AmB2BCallerSession::terminateOtherLeg is called, which sets
callee_status=None. So we can simplify the patch to the attached, and
still be correct.
I just don't want to clear_other directly or in terminateOtherLeg,
because there may be other events from the other leg coming, and
clear_other would remove the relationship between A and B leg.
Stefan
diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp
index 29ea826..ba8c5c4 100644
--- a/core/AmB2BSession.cpp
+++ b/core/AmB2BSession.cpp
@@ -1121,6 +1121,8 @@ void AmB2BCallerSession::connectCallee(const string& remote_party,
if(callee_status != None)
terminateOtherLeg();
+ clear_other();
+
if (relayed_invite) {
// relayed INVITE - we need to add the original INVITE to
// list of received (relayed) requests
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems