Module: sems
Branch: master
Commit: 9e3399c27fadff66a08ed1071d5dcccf6d1e0862
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=9e3399c27fadff66a08ed1071d5dcccf6d1e0862

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Tue Oct 15 14:57:10 2013 +0200

b/f:offeranswer: on re-Tx SDP, parse locally to set sdp_local

on authenticated outbound calls, OA would otherwise reset local SDP on 401/407
and not have SDP on answer received later

---

 core/AmOfferAnswer.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/core/AmOfferAnswer.cpp b/core/AmOfferAnswer.cpp
index 3e900fe..c9dbf17 100644
--- a/core/AmOfferAnswer.cpp
+++ b/core/AmOfferAnswer.cpp
@@ -313,6 +313,11 @@ int AmOfferAnswer::onRequestOut(AmSipRequest& req)
     else {
       return -1;
     }
+  } else if (sdp_body && has_sdp) {
+    // update local SDP copy
+    if (sdp_local.parse((const char*)sdp_body->getPayload())) {
+      ERROR("parser failed on Tx SDP: '%s'\n", (const 
char*)sdp_body->getPayload());
+    }
   }
 
   if(has_sdp && (onTxSdp(req.cseq,req.body) != 0)){

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to