From 4a5f68ee29344d811ba56e95a9cf825ea5cd6919 Mon Sep 17 00:00:00 2001 From: Rodgger Date: Sat, 4 Mar 2023 18:07:07 -0500 Subject: [PATCH] diferenciar set_peer_update() com trunk para atualizar com banco de dados e asterisk --- Makefile | 2 +- src/methods_actions.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f13b4b3..413dfb1 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ build/command_cli.o $(PROGRAM_NAME): $(OBJ) - $(CC) -g -o $@ $^ $(LIBS) -lpthread + $(CC) -o $@ $^ $(LIBS) $(DIR_OBJ)%.o: $(DIR_SRC)%.c $(CC) -c -o $@ $< $(CFLAGS) diff --git a/src/methods_actions.c b/src/methods_actions.c index 748cae7..6409c0f 100644 --- a/src/methods_actions.c +++ b/src/methods_actions.c @@ -46,7 +46,7 @@ int create_ExtensionStateList(s_manager *smanager, void *args){ return -1; } - set_peer_update(); + set_peer_update( 0 ); set_value_actionid( action_id, "ExtensionStateList", ExtensionStateList->args[0].value, NULL, 1 ); strcpy(ExtensionStateList->name_action, "ExtensionStateList"); @@ -83,7 +83,7 @@ int create_SIPpeers( s_manager *smanager, void *args ){ return -1; } - set_peer_update(); + set_peer_update( 1); set_value_actionid( action_id, "SIPpeers", SIPpeers->args[0].value, NULL, 1 ); strcpy(SIPpeers->name_action, "SIPpeers");