Module: sip-router
Branch: 3.2
Commit: 1e7488d5a94554cf8e2845240b9c61170537c5f5
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1e7488d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Mon Oct 31 17:18:11 2011 +0100
utils/sercmd: set SRNAME at compile time
- it is set to sip server name (e.g., ser, kamailio)
- it is used to build the default path to ctl file used to communicate
with sip server via ctl module
- reported by Henning Westerholt
(cherry picked from commit 1b58b26b7ccf7b2c01185a22ad076a3655e43664)
---
utils/sercmd/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/utils/sercmd/Makefile b/utils/sercmd/Makefile
index bc03b74..2cb406a 100644
--- a/utils/sercmd/Makefile
+++ b/utils/sercmd/Makefile
@@ -22,7 +22,7 @@ endif #ifneq (,$(MAKECMDGOALS))
# erase common DEFS (not needed)
C_DEFS:=
-DEFS:= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' \
+DEFS:= -DNAME='"$(NAME)"' -DSRNAME='"$(MAIN_NAME)"'
-DVERSION='"$(RELEASE)"' \
$(filter -D%HAVE -DARCH% -DOS% -D__CPU% -D__OS%, $(DEFS))
# use proper libs (we can't rely on LIBS value since we might be called