Module: sems
Branch: rco/offer_answer
Commit: 91956dcc593bc2c6b9e8f225b45e1bc2f8874f9e
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=91956dcc593bc2c6b9e8f225b45e1bc2f8874f9e

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Fri Apr 15 17:28:02 2011 +0200

support UAS side of early dialogs in bye().

---

 core/AmSipDialog.cpp |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp
index 5da5f20..1531d89 100644
--- a/core/AmSipDialog.cpp
+++ b/core/AmSipDialog.cpp
@@ -1134,7 +1134,15 @@ int AmSipDialog::bye(const string& hdrs, int flags)
     case Early:
        if(getUACInvTransPending())
            return cancel();
-       else {
+       else {  
+           for (TransMap::iterator it=uas_trans.begin();
+                it != uas_trans.end(); it++) {
+             if (it->second.method == "INVITE"){
+               // let quit this call by sending final reply
+               return reply(it->second.cseq,500,"Internal error");
+             }
+           }
+
            // missing AmSipRequest to be able
            // to send the reply on behalf of the app.
            ERROR("ignoring bye() in Pending state: "

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

Reply via email to