Browse code

b/f:b2b:transparent dlg IDs: don't overwrite extLocalTag if dlg already connected

Stefan Sayer authored on 22/11/2013 09:27:04
Showing 1 changed files
... ...
@@ -502,7 +502,8 @@ void SBCCallLeg::setOtherId(const AmSipReply& reply)
502 502
 
503 503
 void SBCCallLeg::onInitialReply(B2BSipReplyEvent *e)
504 504
 {
505
-  if (call_profile.transparent_dlg_id && !e->reply.to_tag.empty()) {
505
+  if (call_profile.transparent_dlg_id && !e->reply.to_tag.empty()
506
+      && dlg->getStatus() != AmBasicSipDialog::Connected) {
506 507
     dlg->setExtLocalTag(e->reply.to_tag);
507 508
   }
508 509
   CallLeg::onInitialReply(e);