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

Author: Andrew Mortensen <[email protected]>
Committer: Andrew Mortensen <[email protected]>
Date:   Fri Feb 22 14:45:58 2013 -0500

sca: return true if no Contact header is found in an INVITE packet

- stop spurious log messages when receiving a 100 Trying with no Contact.

---

 modules/sca/sca_call_info.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/sca/sca_call_info.c b/modules/sca/sca_call_info.c
index 3c5d451..bf8db04 100644
--- a/modules/sca/sca_call_info.c
+++ b/modules/sca/sca_call_info.c
@@ -1444,7 +1444,7 @@ sca_call_info_invite_handler( sip_msg_t *msg, 
sca_call_info *call_info,
        LM_DBG( "sca_call_info_invite_handler: Contact header is empty. "
                "(From: %.*s To: %.*s)", STR_FMT( from_aor ),
                 STR_FMT( to_aor ));
-       return( -1 );
+       return( 1 );
     }
 
     if ( msg->first_line.type == SIP_REQUEST ) {


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to