1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/BBA1.5_platform/build/voip.mak
2024-07-22 01:58:46 -03:00

422 lines
15 KiB
Makefile
Executable File
Raw Permalink Blame History

export CC = $(TOOLPREFIX)gcc
export LD = $(TOOLPREFIX)ld
export AR = $(TOOLPREFIX)ar
export STRIP = $(TOOLPREFIX)strip
export APP_CMM_DIR = $(PRIVATE_APPS_PATH)/user
export APP_PJSIP_DIR = $(PUBLIC_APPS_PATH)/pjsip_1.10
export APP_VOIP_DIR = $(PRIVATE_APPS_PATH)/voip
VENDOR_CFLAGS :=
ifeq ($(strip $(INCLUDE_CPU_TC3182)),y)
sinclude $(KERNELPATH)/.config
sinclude $(TOP_PATH)/$(SUPPLIER)/Project/profile/RT/$(CPU_TYPE)/$(CPU_TYPE).profile
MODULES_TDI_DIR := $(TOP_PATH)/$(SUPPLIER)/modules/private/voip/telephony_drv
SUPPLIER_VOIP_DIR := $(TOP_PATH)/$(SUPPLIER)/apps/private/TC_VOIP_API
DSP_DYNAMIC_LIB :=
DSP_CFLAGS := -O2 -Wall -mips32r2 -msoft-float -muclibc -DOSAL_PTHREADS
DSP_OBJ := $(SUPPLIER_VOIP_DIR)/voip_api_server/DSP_API/D2/tcDSPAPI.o
DSP_INCLUDE := -I$(SUPPLIER_VOIP_DIR)/include
DSP_INCLUDE += -I$(MODULES_TDI_DIR)
ifneq ($(strip $(INCLUDE_VOIP_WITH_DSP_D2_2S1O)),)
DSP_API_DIR := $(SUPPLIER_VOIP_DIR)/voip_api_server/DSP_API/D2/EDDY1_R_1_5_99_TDI
DSP_STATIC_LIB := $(DSP_API_DIR)/lib.m34k3/ve_vtsp.lib $(DSP_API_DIR)/lib.m34k3/osal_user.lib
export TCSUPPORT_VOIP=y
export TCSUPPORT_VOIP_WITH_DSP_D2_2S1O=y
export TEL=2S1O
export SLIC=ZARLINK
VENDOR_CFLAGS += -DRALINK
DSP_INCLUDE += -I$(DSP_API_DIR)/include.m34k3
endif # INCLUDE_VOIP_WITH_DSP_D2_2S1O
#DSP_CFLAGS += -DVTSP_DEBUG_NETLOG
#add by huangzegeng
ifeq ($(strip $(TCSUPPORT_SDRAM_32M)),y)
VENDOR_CFLAGS += -DSUPPORT_SDRAM_32M=1
endif
#end by huangzegeng
endif # INCLUDE_CPU_TC3182
ifeq ($(strip $(INCLUDE_CPU_AR9344)),y)
DSP_API_DIR := $(MODULES_PATH)/../public/phone_pjsip/pjsip
SUPPLIER_VOIP_DIR := $(DSP_API_DIR)/intall
DSP_STATIC_LIB := $(DSP_API_DIR)/pjengine/media_engine_api.o -L$(DSP_API_DIR)/install/lib -lpjatheros
DSP_OBJ :=
VENDOR_CFLAGS += -DVOIP_ATHEROS=1 -I$(MODULES_PATH)/../public/phone_pjsip/media_api
DSP_INCLUDE += -I$(DSP_API_DIR)/pjengine
export BOARD_TYPE=db12x
###### just for build #####
export VOIP_API_RUN=y
export PCM_DI_GPIO=2
export PCM_DO_GPIO=1
export PCM_CLK_GPIO=0
export PCM_FS_GPIO=3
export SPI_DI_GPIO=8
export SPI_DO_GPIO=7
export SPI_CLK_GPIO=6
export SLIC_SPI_CS1_GPIO=17
#export SLIC_SPI_CS2_GPIO=18
export SLIC_RESET_GPIO=13
##############################
endif # INCLUDE_CPU_AR9344
#yuchuwei
ifeq ($(strip $(INCLUDE_CPU_RT63368)),y)
sinclude $(KERNELPATH)/.config
sinclude $(TOP_PATH)/$(SUPPLIER)/Project/profile/RT/rt63368_demo/rt63368_demo.profile
SUPPLIER_VOIP_DIR := $(TOP_PATH)/$(SUPPLIER)/apps/private/voip
DSP_DYNAMIC_TARGET := $(SUPPLIER_VOIP_DIR)/eva
DSP_STATIC_LIB := -L$(SUPPLIER_VOIP_DIR)/MTK_SIP/install/lib -lslic_user -lvdsp_user -lsyss -lbase
DSP_DYNAMIC_LIB := -L$(SUPPLIER_VOIP_DIR)/eva/bin -ladam -lgdi_mtk
DSP_CFLAGS := -O2 -Wall -mips32r2 -msoft-float -muclibc -DOSAL_PTHREADS
DSP_INCLUDE += -I$(KERNELPATH)/arch/mips/include/
DSP_INCLUDE += -I$(KERNELPATH)/include/
DSP_OBJ := $(SUPPLIER_VOIP_DIR)/mtkDSPAPI.o
DSP_INCLUDE += -I$(SUPPLIER_VOIP_DIR)/eva/common
DSP_INCLUDE += -I$(SUPPLIER_VOIP_DIR)/eva/adam
DSP_INCLUDE += -I$(SUPPLIER_VOIP_DIR)/eva/gdi_mtk
DSP_INCLUDE += -I$(MODULES_MTK_FXS3_DIR)/include -I$(MODULES_MTK_OVDSP_DIR)/include
VENDOR_CFLAGS += -DRALINK -DMTK
DSP_CFLAGS += -DVTSP_DEBUG_NETLOG -DDSPID_MTK
export PLATFORM:=tc3182
export DSP:=mtk
export TCSUPPORT_VOIP=y
export VOIP_DSP=MTK
#add by huangzegeng
ifeq ($(strip $(TCSUPPORT_SDRAM_32M)),y)
VENDOR_CFLAGS += -DSUPPORT_SDRAM_32M=1
endif
#end by huangzegeng
ifeq ($(KERNELVERSION), 2.6.36)
MODULES_MTK_FXS3_DIR:= $(MODULES_PATH)/voip_2.6.36/DSP/MTK/mod-fxs3
MODULES_MTK_OVDSP_DIR:= $(MODULES_PATH)/voip_2.6.36/DSP/MTK/mod-ovdsp
#APP_MTKSIP_DIR:=$(MODULES_PATH)/voip_2.6.36/MTK_SIP
else
MODULES_MTK_FXS3_DIR:= $(MODULES_PATH)/voip/DSP/MTK/mod-fxs3
MODULES_MTK_OVDSP_DIR:= $(MODULES_PATH)/voip/DSP/MTK/mod-ovdsp
#APP_MTKSIP_DIR:=$(MODULES_PATH)/voip/MTK_SIP
endif
DSP_MTK_API_DIR := $(TOP_PATH)/$(SUPPLIER)/apps/private/voip
DSP_MTK_INCLUDE = -I$(MODULES_MTK_FXS3_DIR)/include -I$(MODULES_MTK_OVDSP_DIR)/include
DSP_MTK_API_LIB := -L $(MODULES_MTK_FXS3_DIR)/ -lslic_user -L $(MODULES_MTK_OVDSP_DIR)/ -lvdsp_user -L$(DSP_MTK_API_DIR)/MTK_SIP/install/lib/ -lsyss -lbase
export MODULES_MTK_FXS3_DIR MODULES_MTK_OVDSP_DIR DSP_MTK_API_DIR DSP_MTK_INCLUDE DSP_MTK_API_LIB
endif # INCLUDE_CPU_RT63368
ifeq ($(strip $(INCLUDE_CPU_88F6550)),y)
sinclude $(KERNELPATH)/.config
MMP_DIR := $(KERNELPATH)/../../MMP/mmp
DSP_API_DIR := $(MMP_DIR)/app/voicestream
SUPPLIER_VOIP_DIR := $(MMP_DIR)
MMP_LIB_DIR := $(MMP_DIR)/lib/$(MODEL)
DSP_STATIC_LIB += -L$(MMP_LIB_DIR) -static -lvoicestream
DSP_STATIC_LIB += -L$(MMP_LIB_DIR) -static -lslic
DSP_STATIC_LIB += -L$(MMP_LIB_DIR) -static -lmmp
DSP_STATIC_LIB += -lpthread
DSP_OBJ :=
VENDOR_CFLAGS += -DVOIP_MARVELL=1 -DVOIP_SLIC_INDEPENDENCE_BUS=1 -D__NO_MMP_BASIC_TYPES__
DSP_INCLUDE += -I$(MMP_DIR)/incl
DSP_INCLUDE += -I$(MMP_DIR)/app/slic/slic/incl
endif # INCLUDE_CPU_88F6550
##################################### MTK_7520f #####################################
ifeq ($(strip $(INCLUDE_CPU_MT7520F)),y)
sinclude $(KERNELPATH)/.config
#sinclude $(TOP_PATH)/$(SUPPLIER)/Project/profile/RT/$(MODEL)/$(MODEL)_2_6_36.profile
SUPPLIER_VOIP_DIR := $(TOP_PATH)/$(SUPPLIER)/apps/private/voip
DSP_DYNAMIC_TARGET := $(SUPPLIER_VOIP_DIR)/eva
DSP_STATIC_LIB := -L$(SUPPLIER_VOIP_DIR)/MTK_SIP/install/lib -lslic_user -lvdsp_user -lsyss -lbase
DSP_DYNAMIC_LIB := -L$(SUPPLIER_VOIP_DIR)/eva/bin -ladam -lgdi_mtk
DSP_CFLAGS := -O2 -Wall -mips32r2 -msoft-float -muclibc -DOSAL_PTHREADS
DSP_INCLUDE += -I$(KERNELPATH)/arch/mips/include/
DSP_INCLUDE += -I$(KERNELPATH)/include/
#DSP_OBJ := $(SUPPLIER_VOIP_DIR)/mtkDSPAPI.o
DSP_OBJ :=
DSP_INCLUDE += -I$(SUPPLIER_VOIP_DIR)/eva/common
DSP_INCLUDE += -I$(SUPPLIER_VOIP_DIR)/eva/adam
DSP_INCLUDE += -I$(SUPPLIER_VOIP_DIR)/eva/gdi_mtk
DSP_INCLUDE += -I$(MODULES_MTK_FXS3_DIR)/include -I$(MODULES_MTK_OVDSP_DIR)/include
VENDOR_CFLAGS += -DVOIP_MT7520F
export DSP:=mtk
export TCSUPPORT_VOIP=y
export VOIP_DSP=MTK
DSP_CFLAGS += -DDSPID_MTK
MODULES_MTK_FXS3_DIR:= $(MODULES_PATH)/voip_2.6.36/DSP/MTK/mod-fxs3
MODULES_MTK_OVDSP_DIR:= $(MODULES_PATH)/voip_2.6.36/DSP/MTK/mod-ovdsp
#APP_MTKSIP_DIR:=$(MODULES_PATH)/voip_2.6.36/MTK_SIP
DSP_MTK_API_DIR := $(TOP_PATH)/$(SUPPLIER)/apps/private/voip
DSP_MTK_INCLUDE = -I$(MODULES_MTK_FXS3_DIR)/include -I$(MODULES_MTK_OVDSP_DIR)/include
DSP_MTK_API_LIB := -L $(MODULES_MTK_FXS3_DIR)/ -lslic_user -L $(MODULES_MTK_OVDSP_DIR)/ -lvdsp_user -L$(DSP_MTK_API_DIR)/MTK_SIP/install/lib/ -lsyss -lbase
export MODULES_MTK_FXS3_DIR MODULES_MTK_OVDSP_DIR DSP_MTK_API_DIR DSP_MTK_INCLUDE DSP_MTK_API_LIB
endif #end INCLUDE_CPU_MT7520F
#####################################################################################
##################################### MTK_7525f #####################################
ifeq ($(strip $(INCLUDE_CPU_MT7525F)), y)
sinclude $(KERNELPATH)/.config
SUPPLIER_VOIP_DIR := $(TOP_PATH)/$(ENVIRONMENT)/apps/private/voip
DSP_DYNAMIC_TARGET := $(SUPPLIER_VOIP_DIR)/eva
DSP_STATIC_LIB := -L$(SUPPLIER_VOIP_DIR)/MTK_SIP/install/lib -lslic_user -lvdsp_user -lsyss -lbase
DSP_DYNAMIC_LIB := -L$(SUPPLIER_VOIP_DIR)/eva/bin -ladam -lgdi_mtk
DSP_CFLAGS := -O2 -Wall -mips32r2 -msoft-float -muclibc -DOSAL_PTHREADS
DSP_INCLUDE += -I$(KERNELPATH)/arch/mips/include/
DSP_INCLUDE += -I$(KERNELPATH)/include/
#DSP_OBJ := $(SUPPLIER_VOIP_DIR)/mtkDSPAPI.o
DSP_OBJ :=
MODULES_MTK_FXS3_DIR:= $(MODULES_PATH)/voip_2.6.36/DSP/MTK/mod-fxs3
MODULES_MTK_OVDSP_DIR:= $(MODULES_PATH)/voip_2.6.36/DSP/MTK/mod-ovdsp
APP_MTKSIP_DIR:=$(SUPPLIER_VOIP_DIR)/MTK_SIP
DSP_INCLUDE += -I$(SUPPLIER_VOIP_DIR)/eva/common
DSP_INCLUDE += -I$(SUPPLIER_VOIP_DIR)/eva/adam
DSP_INCLUDE += -I$(SUPPLIER_VOIP_DIR)/eva/gdi_mtk
DSP_INCLUDE += -I$(MODULES_MTK_FXS3_DIR)/include -I$(MODULES_MTK_OVDSP_DIR)/include
VENDOR_CFLAGS += -DVOIP_MT7525F
export DSP:=mtk
export TCSUPPORT_VOIP=y
export VOIP_DSP=MTK
DSP_CFLAGS += -DDSPID_MTK
DSP_MTK_API_DIR := $(TOP_PATH)/$(ENVIRONMENT)/apps/private/voip
DSP_MTK_INCLUDE = -I$(MODULES_MTK_FXS3_DIR)/include -I$(MODULES_MTK_OVDSP_DIR)/include
DSP_MTK_API_LIB := -L $(MODULES_MTK_FXS3_DIR)/ -lslic_user -L $(MODULES_MTK_OVDSP_DIR)/ -lvdsp_user -L$(DSP_MTK_API_DIR)/MTK_SIP/install/lib/ -lsyss -lbase
export MODULES_MTK_FXS3_DIR MODULES_MTK_OVDSP_DIR DSP_MTK_API_DIR DSP_MTK_INCLUDE DSP_MTK_API_LIB
endif #end INCLUDE_CPU_MT7525F
#####################################################################################
#INCLUDE_CPU_EN7526G add by zhongfengnian for P-GW4423-1200v1
##################################### MTK_EN7526G #####################################
ifeq ($(strip $(INCLUDE_CPU_EN7526G)), y)
sinclude $(KERNELPATH)/.config
SUPPLIER_VOIP_DIR := $(SDK_PATH)/apps/private/voip
export SUPPLIER_VOIP_DIR
#DSP_DYNAMIC_TARGET := $(SUPPLIER_VOIP_DIR)/eva
DSP_STATIC_LIB := -L$(SUPPLIER_VOIP_DIR)/eva/bin -ladam
DSP_DYNAMIC_LIB := -L$(SUPPLIER_VOIP_DIR)/eva/bin -ladam -lrt
DSP_CFLAGS := -O2 -Wall -mips32r2 -msoft-float -muclibc -DOSAL_PTHREADS
##DSP_INCLUDE += -I$(KERNELPATH)/include/
#DSP_OBJ := $(SUPPLIER_VOIP_DIR)/mtkDSPAPI.o
DSP_OBJ :=
MODULES_MTK_FXS3_DIR:= $(MODULES_PATH)/voip_3.18.21/DSP/MTK/mod-fxs3
MODULES_MTK_OVDSP_DIR:= $(MODULES_PATH)/voip_3.18.21/DSP/MTK/mod-ovdsp
APP_MTKSIP_DIR:=$(SUPPLIER_VOIP_DIR)/MTK_SIP
DSP_INCLUDE += -I$(SUPPLIER_VOIP_DIR)/eva/common
DSP_INCLUDE += -I$(SUPPLIER_VOIP_DIR)/eva/adam
DSP_INCLUDE += -I$(SUPPLIER_VOIP_DIR)/eva/gdi_mtk
DSP_INCLUDE += -I$(MODULES_MTK_FXS3_DIR)/include -I$(MODULES_MTK_OVDSP_DIR)/include
VENDOR_CFLAGS += -DVOIP_MTK_EN7526G
export DSP:=mtk
export TCSUPPORT_VOIP=y
export VOIP_DSP=MTK
DSP_CFLAGS += -DDSPID_MTK
DSP_CFLAGS += -lgcc_s
DSP_MTK_API_DIR := $(TOP_PATH)/$(ENVIRONMENT)/apps/private/voip
DSP_MTK_INCLUDE = -I$(MODULES_MTK_FXS3_DIR)/include -I$(MODULES_MTK_OVDSP_DIR)/include
export MODULES_MTK_FXS3_DIR MODULES_MTK_OVDSP_DIR DSP_MTK_API_DIR DSP_MTK_INCLUDE DSP_MTK_API_LIB
endif #end INCLUDE_CPU_MTK_EN7526G
#####################################################################################
##################################### BCM_68380 #####################################
ifeq ($(strip $(INCLUDE_CPU_BCM96838)),y)
#include $(KERNELPATH)/.config for CONFIG_HZ
sinclude $(KERNELPATH)/.config
VENDOR_CFLAGS += -DVOIP_BROADCOM=1
DSP_STATIC_LIB := -L$(VODSL_DIR) -lvodsl
endif # INCLUDE_CPU_BCM96838
#######################################################################################
ifneq ($(strip $(CONFIG_NR_CPUS)), )
VENDOR_CFLAGS += -DCONFIG_NR_CPUS=$(CONFIG_NR_CPUS)
endif # CONFIG_NR_CPUS
export DSP_DYNAMIC_TARGET
export DSP_DYNAMIC_LIB
export DSP_STATIC_LIB
export DSP_OBJ
export DSP_CFLAGS
export DSP_INCLUDE
ifneq ($(strip $(INCLUDE_VOIP)),)
export INCLUDE_VOIP
export SUPPLIER
# now configuring voip locale settings
VOIP_LOCALE := -I$(APP_VOIP_DIR)/inc
ifneq ($(strip $(VOIP_LOCALE_ALL)),)
VOIP_LOCALE += -DVOIP_CFG_ALL
else
VOIP_LOCALE += $(shell cat config/$(MODEL).config | sed -n 's/=y$$//p' | sed -n 's/^VOIP_CFG/-D&/p')
endif # VOIP_LOCALE_ALL
export VOIP_LOCALE
VOIP_DFLAGS := -DINCLUDE_VOIP
VOIP_CFLAGS := $(VOIP_LOCALE)
VOIP_CFLAGS += -I$(APP_VOIP_DIR)/inc/client -I$(SUPPLIER_VOIP_DIR)/include
VOIP_CFLAGS += -I$(APP_PJSIP_DIR)/pjlib/include
VOIP_CFLAGS += -I$(OS_LIB_PATH)/include
VOIP_CFLAGS += -I$(PRIVATE_MODULES_PATH)/voip
#cxdel < <20><>Marvell<6C><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>н<EFBFBD><D0BD><EFBFBD>socket<65>Ĵ<EFBFBD><C4B4><EFBFBD><EBA3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>workaround<6E>ķ<EFBFBD><C4B7><EFBFBD>
#ifeq ($(strip $(CONFIG_IP_MULTIPLE_TABLES)), y)
#VOIP_CFLAGS += -DVOIP_POLICY_ROUTING
#endif
#cxdel >
# add it to VoIP, which will set mark in udp_sendmsg()
ifeq ($(SUPPLIER),mtk)
ifeq ($(strip $(CONFIG_IP_MULTIPLE_TABLES)), y)
VOIP_CFLAGS += -DCONFIG_IP_MULTIPLE_TABLES
endif
endif
export NUM_FXS_CHANNELS := $(NUM_FXS_CHANNELS)
VOIP_DFLAGS += -DNUM_FXS_CHANNELS=$(NUM_FXS_CHANNELS)
ifeq ($(strip $(INCLUDE_CPU_AR9344)),y)
export CHANNEL = $(NUM_FXS_CHANNELS)
endif
ifneq ($(strip $(INCLUDE_DMZ)),)
VOIP_CFLAGS += -DINCLUDE_DMZ
endif
ifneq ($(strip $(INCLUDE_DIGITMAP)),)
export INCLUDE_DIGITMAP=y
VOIP_DFLAGS += -DINCLUDE_DIGITMAP
#<< BosaZhong@08Mar2014,add.
ifneq ($(strip $(INCLUDE_LANGUAGE_CN)),)
VOIP_DFLAGS += -DTREAT_STAR_POUND_AS_DIGIT
endif
#>> endof BosaZhong@08Mar2013, add.
endif
ifneq ($(strip $(INCLUDE_USB_VOICEMAIL)),)
export INCLUDE_USB_VOICEMAIL=y
VOIP_DFLAGS += -DINCLUDE_USB_VOICEMAIL
ifneq ($(strip $(INCLUDE_USBVM_MODULE)),)
ifeq ($(strip $(CONFIG_HZ)), $(shell echo $$[$(CONFIG_HZ) / 100 * 100]))
export INCLUDE_USBVM_MODULE=y
VOIP_CFLAGS += -DINCLUDE_USBVM_MODULE
endif
endif
endif
ifneq ($(strip $(INCLUDE_CALLLOG)),)
export INCLUDE_CALLLOG=y
VOIP_DFLAGS += -DINCLUDE_CALLLOG
endif
ifneq ($(strip $(INCLUDE_VOIP_LED_REGONOFF_CALLBLINK)),)
export INCLUDE_VOIP_LED_REGONOFF_CALLBLINK=y
VOIP_DFLAGS += -DINCLUDE_VOIP_LED_REGONOFF_CALLBLINK
endif
ifneq ($(strip $(INCLUDE_VOIP_LED_REGONOFF_CALLBLINK)),)
export INCLUDE_VOIP_LED_REGONOFF_CALLBLINK=y
VOIP_DFLAGS += -DINCLUDE_VOIP_LED_REGONOFF_CALLBLINK
endif
ifneq ($(strip $(INCLUDE_PSTN)),)
export INCLUDE_PSTN = y
VOIP_DFLAGS += -DINCLUDE_PSTN
ifneq ($(strip $(INCLUDE_PSTN_LIFELINE)),)
export INCLUDE_PSTN_LIFELINE=y
VOIP_DFLAGS += -DINCLUDE_PSTN_LIFELINE
endif
ifneq ($(strip $(INCLUDE_PSTN_POLREV)),)
export INCLUDE_PSTN_POLREV=y
VOIP_DFLAGS += -DINCLUDE_PSTN_POLREV
endif
ifneq ($(strip $(INCLUDE_PSTN_GATEWAY)),)
export INCLUDE_PSTN_GATEWAY=y
VOIP_DFLAGS += -DINCLUDE_PSTN_GATEWAY
endif
endif # INCLUDE_PSTN
export VOIP_CFLAGS += $(VENDOR_CFLAGS)
export VOIP_DFLAGS
ifneq ($(strip $(INCLUDE_CALLTHROUGH)),)
export INCLUDE_CALLTHROUGH=y
VOIP_DFLAGS += -DINCLUDE_CALLTHROUGH
WEBFLAGS += INCLUDE_CALLTHROUGH=1
else
WEBFLAGS += INCLUDE_CALLTHROUGH=0
endif
#chenw add
ifneq ($(strip $(INCLUDE_CALLFWD_THROUGH_DUT)),)
export INCLUDE_CALLFWD_THROUGH_DUT=y
VOIP_DFLAGS += -DINCLUDE_CALLFWD_THROUGH_DUT
WEBFLAGS += INCLUDE_CALLFWD_THROUGH_DUT=1
else
WEBFLAGS += INCLUDE_CALLFWD_THROUGH_DUT=0
endif
#chenw add end
ifneq ($(strip $(INCLUDE_DSP_SOCKET_OPEN)),)
export INCLUDE_DSP_SOCKET_OPEN=y
VOIP_DFLAGS += -DINCLUDE_DSP_SOCKET_OPEN
endif
# config minimum and maximum flash time
ifneq ($(strip $(INCLUDE_VOIP_FLASH_TIME)),)
export INCLUDE_VOIP_FLASH_TIME=y
VOIP_DFLAGS += -DINCLUDE_VOIP_FLASH_TIME
endif # INCLUDE_VOIP_FLASH_TIME
# use UPDATE method to refresh the session
ifneq ($(strip $(INCLUDE_VOIP_REFRESH_BY_UPDATE)),)
export INCLUDE_VOIP_REFRESH_BY_UPDATE=y
#VOIP_DFLAGS += -DINCLUDE_VOIP_REFRESH_BY_UPDATE
endif # INCLUDE_VOIP_REFRESH_BY_UPDATE
# display phone number in P-Asserted-Identity header in precedence
ifneq ($(strip $(INCLUDE_VOIP_P_ASSERTED_IDENTITY)),)
export INCLUDE_VOIP_P_ASSERTED_IDENTITY=y
VOIP_DFLAGS += -DINCLUDE_VOIP_P_ASSERTED_IDENTITY
endif # INCLUDE_VOIP_P_ASSERTED_IDENTITY
endif # INCLUDE_VOIP