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

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Thu May 23 10:40:23 2013 +0200

b/f: fixes 52df68cd

str2long() returns the opposite of str2i().

---

 apps/sbc/RegisterDialog.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/apps/sbc/RegisterDialog.cpp b/apps/sbc/RegisterDialog.cpp
index a937618..6f7dd20 100644
--- a/apps/sbc/RegisterDialog.cpp
+++ b/apps/sbc/RegisterDialog.cpp
@@ -189,7 +189,7 @@ int RegisterDialog::fixUacContacts(const AmSipRequest& req)
 
       if(expires_it != contact_it->params.end()) {
        // 'expires=xxx' present:
-       if(str2long(expires_it->second,contact_expires)) {
+       if(!str2long(expires_it->second,contact_expires)) {
          reply_error(req, 400, "Bad Request",
                      "Warning: Malformed expires\r\n",
                       logger);

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

Reply via email to