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

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Tue Jul 12 14:16:37 2011 +0200

b/f: reply 491 when an INVITE is received while another is pending.

---

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

diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp
index 722cb34..05682de 100644
--- a/core/AmSipDialog.cpp
+++ b/core/AmSipDialog.cpp
@@ -148,7 +148,7 @@ void AmSipDialog::onRxRequest(const AmSipRequest& req)
 
     if (req.method == SIP_METH_INVITE) {
       if(pending_invites || ((oa_trans.state != OA_None) && (oa_trans.state != 
OA_Completed))) {      
-       reply_error(req,500, SIP_REPLY_SERVER_INTERNAL_ERROR,
+       reply_error(req, 491, SIP_REPLY_PENDING,
                    "Retry-After: " + int2str(get_random() % 10) + CRLF,
                    next_hop_for_replies ? next_hop_ip : "",
                    next_hop_for_replies ? next_hop_port : 0);

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

Reply via email to