Wolfgang Alper wrote: > Package: asterisk-app-dtmftotext > Version: 0.0.20050227-1 > > It seems that bug #305624 still exists in the package > asterisk-app-dtmftotext.
I thought I'd fixed that with 0.0.20050203-2.1. Patch attached.
diff -Naur asterisk-spandsp-plugins.orig/app_dtmftotext.c asterisk-spandsp-plugins-0.0.20050227/app_dtmftotext.c --- asterisk-spandsp-plugins.orig/app_dtmftotext.c 2005-05-09 21:05:43.000000000 +0100 +++ asterisk-spandsp-plugins-0.0.20050227/app_dtmftotext.c 2005-08-11 19:42:28.000000000 +0100 @@ -20,6 +20,7 @@ #include <asterisk/pbx.h> #include <asterisk/md5.h> #include <asterisk/config.h> +#include <asterisk/utils.h> #include <ctype.h> #include <stdlib.h> #include <unistd.h> @@ -306,6 +307,7 @@ struct localuser *u; struct sockaddr_in serv_addr; struct hostent *serverhost; + struct ast_hostent astserverhost; int fd; FILE *fs; char *host; @@ -392,10 +394,10 @@ if ((serv_addr.sin_addr.s_addr = inet_addr(host)) == -1) { /* its a name rather than an ipnum */ - serverhost = gethostbyname(host); + serverhost = ast_gethostbyname(host, &astserverhost); if (serverhost == (struct hostent *) 0) { - ast_log(LOG_WARNING, "festival_client: gethostbyname failed\n"); + ast_log(LOG_WARNING, "festival_client: ast_gethostbyname failed\n"); return -1; } memmove(&serv_addr.sin_addr, serverhost->h_addr, serverhost->h_length);