Module: sip-router Branch: master Commit: befb822c7548c063c9643e8e6b27b1a6e9ff1631 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=befb822c...
Author: Carsten Bock carsten@ng-voice.com Committer: Carsten Bock carsten@ng-voice.com Date: Wed Apr 3 12:55:01 2013 +0200
b/f: an error would be nice, if the module fails to load ;-)
---
modules/rtpproxy/rtpproxy.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/rtpproxy/rtpproxy.c b/modules/rtpproxy/rtpproxy.c index 78f69c0..0f92814 100644 --- a/modules/rtpproxy/rtpproxy.c +++ b/modules/rtpproxy/rtpproxy.c @@ -935,12 +935,14 @@ mod_init(void) } /* storing the list of rtp proxy sets in shared memory*/ for(i=0;i<rtpp_sets;i++){ + LM_DBG("Adding RTP-Proxy set %d/%d: %s\n", i, rtpp_sets, rtpp_strings[i]); if ((rtpp_db_url.s == NULL) && (rtpproxy_add_rtpproxy_set(rtpp_strings[i]) != 0)) { for(;i<rtpp_sets;i++) if(rtpp_strings[i]) pkg_free(rtpp_strings[i]); pkg_free(rtpp_strings); + LM_ERR("Failed to add RTP-Proxy from Config!\n"); return -1; } if(rtpp_strings[i])