Ver Fonte

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
Daniel-Constantin Mierla há 14 anos atrás
pai
commit
1b58b26b7c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      utils/sercmd/Makefile

+ 1 - 1
utils/sercmd/Makefile

@@ -22,7 +22,7 @@ endif #ifneq (,$(MAKECMDGOALS))
 
 
 # erase common DEFS (not needed)
 # erase common DEFS (not needed)
 C_DEFS:=
 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))
 		$(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
 # use proper libs (we can't rely on LIBS value since we might be called