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

Author: Peter Dunkley <[email protected]>
Committer: Peter Dunkley <[email protected]>
Date:   Sun May 12 13:57:00 2013 +0100

modules/msrp: added warning when MSRP is loaded in a configuration without TLS. 
 TLS is mandatory for MSRP relays.

---

 modules/msrp/msrp_mod.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/msrp/msrp_mod.c b/modules/msrp/msrp_mod.c
index 3204dfc..edc4666 100644
--- a/modules/msrp/msrp_mod.c
+++ b/modules/msrp/msrp_mod.c
@@ -165,7 +165,15 @@ static int mod_init(void)
                        msrp_timer_interval = 60;
                register_sync_timers(1);
        }
+
        sr_event_register_cb(SREV_TCP_MSRP_FRAME, msrp_frame_received);
+
+       if(!module_loaded("tls")) {
+               LM_WARN("\"tls\" module is not loaded. TLS is mandatory for"
+                       " MSRP Relays. To comply with RFC 4976 you must use"
+                       "  TLS.\n");
+       }
+
        return 0;
 }
 


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

Reply via email to