Browse Source

diferenciar set_peer_update() com trunk para atualizar com banco de dados e asterisk

pull/9/head
Rodgger 2 years ago
parent
commit
4a5f68ee29
  1. 2
      Makefile
  2. 4
      src/methods_actions.c

2
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)

4
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");

Loading…
Cancel
Save