Module: sip-router
Branch: master
Commit: 3198beccbc2ce350bb0af2a1cedec72ccb7c9277
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3198bec…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Thu Dec 13 13:57:46 2012 +0200
modules/mediaproxy: restrict opening of dispatcher connection
- restrict opening of dispatcher connection to sub-processes (patch
provided by Emil Kroymann)
---
modules/mediaproxy/mediaproxy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/mediaproxy/mediaproxy.c b/modules/mediaproxy/mediaproxy.c
index 0c9e2c5..4cb16c9 100644
--- a/modules/mediaproxy/mediaproxy.c
+++ b/modules/mediaproxy/mediaproxy.c
@@ -2113,7 +2113,7 @@ static int
child_init(int rank)
{
// initialize the connection to mediaproxy if needed
- if (!mediaproxy_disabled)
+ if (!mediaproxy_disabled && rank > PROC_MAIN)
mediaproxy_connect();
return 0;