mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 10:46:23 +00:00
Fixed some build issues for Asterisk application.
This commit is contained in:
parent
2aab552ef7
commit
e1b34d40d7
@ -103,8 +103,8 @@ static char *handle_cli_sdnagate(int fd, int argc, char *argv[])
|
||||
int len=0;
|
||||
int instance=0;
|
||||
|
||||
if (gatewayuri) free(gatewayuri);
|
||||
gatewayuri=NULL;
|
||||
if (gatewayspec) free(gatewayspec);
|
||||
gatewayspec=NULL;
|
||||
if (argc == 3 ) {
|
||||
ast_cli(fd,"Serval DNA Gateway Function OFF.\n\n",len);
|
||||
return RESULT_SUCCESS;
|
||||
@ -114,9 +114,9 @@ static char *handle_cli_sdnagate(int fd, int argc, char *argv[])
|
||||
return RESULT_FAILURE;
|
||||
}
|
||||
|
||||
gatewayuri=strdup(argv[3]);
|
||||
gatewayspec=strdup(argv[3]);
|
||||
|
||||
ast_cli(fd,"Serval DNA Gateway Function ON (trunk URI is %s/EXTENSION).\n\n",gatewayuri);
|
||||
ast_cli(fd,"Serval DNA Gateway Function ON (trunk spec is %s).\n\n",gatewayspec);
|
||||
return RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@ AC_PROG_CC
|
||||
|
||||
AC_CHECK_LIB(c,srandomdev)
|
||||
|
||||
AC_CHECK_HEADERS(stdio.h errno.h stdlib.h strings.h unistd.h string.h arpa/inet.h sys/socket.h sys/mman.h sys/time.h poll.h netdb.h linux/if.h linux/netlink.h linux/rtnetlink.h net/if.h netinet/in.h ifaddrs.h net/route.h)
|
||||
AC_CHECK_HEADERS(stdio.h errno.h stdlib.h strings.h unistd.h string.h arpa/inet.h sys/socket.h sys/mman.h sys/time.h poll.h netdb.h linux/if.h linux/netlink.h linux/rtnetlink.h net/if.h netinet/in.h ifaddrs.h net/route.h signal.h)
|
||||
|
||||
echo "Fetching and building NaCl if required."
|
||||
echo "(this can take HOURS to build depending on your architecture,"
|
||||
|
Loading…
Reference in New Issue
Block a user