Displaying 12 results from an estimated 12 matches for "local_user_decl".
2003 Nov 11
4
Registering an application
...sterisk/translate.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
static char *tdesc = "Alex's app";
static char *app = "Alex";
static char *synopsis = "Alex test";
static char *descrip ="Test";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int alex_exec(struct ast_channel *chan, void *data)
{
return 0;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, alex_exec, synopsis, descrip);
}
cha...
2007 Jan 25
1
Failing to compile chan_capi
...date your libcapi20,
some fax features are not available
chan_capi.c:146: warning: type defaults to `int' in declaration of
`STANDARD_LOCAL_USER'
chan_capi.c:146: warning: data definition has no type or storage class
chan_capi.c:147: warning: type defaults to `int' in declaration of
`LOCAL_USER_DECL'
chan_capi.c:147: warning: data definition has no type or storage class
chan_capi.c: In function `capi_new':
chan_capi.c:2069: error: too few arguments to function `ast_channel_alloc'
chan_capi.c:2083: error: structure has no member named `type'
chan_capi.c: In function `pbx_capicom...
2006 Oct 13
0
Asterisk 1.4 / install app_bundle problems
...waitfordigits.o app_waitfordigits.c
app_waitfordigits.c:60: warning: type defaults to `int' in declaration
of `STANDARD_LOCAL_USER'
app_waitfordigits.c:60: warning: data definition has no type or storage
class
app_waitfordigits.c:62: warning: type defaults to `int' in declaration
of `LOCAL_USER_DECL'
app_waitfordigits.c:62: warning: data definition has no type or storage
class
app_waitfordigits.c: In function `waitfordigits_exec':
app_waitfordigits.c:87: warning: initialization discards qualifiers from
pointer target type
app_waitfordigits.c:88: warning: initialization discards quali...
2007 May 17
0
Compiling DBQuery
...c:87: warning: data definition has no type or storage class
res_mysqlpool.c:87: warning: type defaults to ?int? in declaration of ?STANDARD_LOCAL_USER?
res_mysqlpool.c:89: warning: data definition has no type or storage class
res_mysqlpool.c:89: warning: type defaults to ?int? in declaration of ?LOCAL_USER_DECL?
res_mysqlpool.c:199: warning: function declaration isn?t a prototype
res_mysqlpool.c: In function ?get_host_list?:
res_mysqlpool.c:648: warning: assignment discards qualifiers from pointer target type
res_mysqlpool.c:649: warning: assignment discards qualifiers from pointer target type
res_my...
2007 May 31
0
Urgent-- Error while installing app_dtmftotext.
...warning: data definition has no type or storage class
app_dtmftotext.c:102: warning: type defaults to ‘int’ in declaration of
‘STANDARD_LOCAL_USER’
app_dtmftotext.c:104: warning: data definition has no type or storage class
app_dtmftotext.c:104: warning: type defaults to ‘int’ in declaration of
‘LOCAL_USER_DECL’
app_dtmftotext.c: In function ‘festival_exec’:
app_dtmftotext.c:339: warning: implicit declaration of function ‘ast_load’
app_dtmftotext.c:339: warning: assignment makes pointer from integer without
a cast
app_dtmftotext.c:345: warning: assignment discards qualifiers from pointer
target type
app...
2007 Jan 29
0
Rxfax and txfax
...: data definition has no type or storage class
app_rxfax.c:60: warning: type defaults to 'int' in declaration of
'STANDARD_LOCAL_USER'
app_rxfax.c:62: warning: data definition has no type or storage class
app_rxfax.c:62: warning: type defaults to 'int' in declaration of
'LOCAL_USER_DECL'
app_rxfax.c: In function 'phase_e_handler':
app_rxfax.c:105: error: 't30_stats_t' has no member named
'column_resolution'
app_rxfax.c:105: error: 't30_stats_t' has no member named
'row_resolution'
app_rxfax.c:116: error: 't30_stats_t' has no memb...
2004 Apr 29
2
spandsp compile error: PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here
...t looks like the problem might lie
elsewhere.
I've also read through the source code, tracing the header files and
such, and as far as I can work out it should be working. Mind you, I
haven't done any C coding for about 6 years so I'm a little rusty.
Line 45 of app_rcfax.c is "LOCAL_USER_DECL;", which is defined in
/usr/include/asterisk/module.h. It includes AST_MUTEX_INITIALIZER, which
is defined in /usr/include/asterisk/lock.h. The definition there
includes PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP which is defined as a
constant in /usr/include/pthread.h.
It would seem for some...
2006 Nov 29
1
Getting app_cepstral to work with Asterisk 1.4.0-beta3
...: warning: function declaration isn't a
prototype
app_cepstral.c:43: warning: type defaults to `int' in declaration of
`STANDARD_LOCAL_USER'
app_cepstral.c:43: warning: data definition has no type or storage class
app_cepstral.c:44: warning: type defaults to `int' in declaration of
`LOCAL_USER_DECL'
app_cepstral.c:44: warning: data definition has no type or storage class
app_cepstral.c: In function `cepstral_exec':
app_cepstral.c:225: warning: implicit declaration of function
`LOCAL_USER_ADD'
app_cepstral.c:233: warning: implicit declaration of function
`LOCAL_USER_REMOVE'
app...
2005 Jan 22
0
chan_capi patch: app_capiFax modifications
...(packed));
unsigned char Infos[100] __attribute__ ((packed));
} B3_PROTO_FAXG3;
static char *tdesc = "(CAPI*) Receive Faxes.";
static char *app = "capiAnswerFax2";
static char *synopsis = "Answer Fax with CAPI (Allow Station ID Setting)";
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
void SetupB3Config(B3_PROTO_FAXG3 *B3conf, int FAX_Format, char* stationID) {
int len1;
int len2;
char *headLine = "CAPI FAXServer";
B3conf->resolution = FAX_HIGH_RESOLUTION;
B3conf->format = (unsigned short)FAX_Format;
len1 = strlen(stationID);
B3co...
2005 Aug 25
2
Custom Application For Asterisk
...ish"
static int connected = 0;
static int mssql_connect(void);
static int mssql_disconnect(void);
static int play_file(struct ast_channel *chan, char *filename);
AST_MUTEX_DEFINE_STATIC(tdslock);
static TDSSOCKET *tds;
static TDSLOGIN *login;
static TDSCONTEXT *context;
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
struct abcd_user {
char moh[80];
char announce[80];
char context[80];
int handled;
time_t start;
int queuetimeout;
struct ast_channel *chan;
struct queue_ent *next;
};
static int abcd_exec(struct ast_channel *chan, void *data)
{
int retried = 0;
int res =...
2005 Jun 20
2
app_valetparking.c
Since www.bkw.org seems not to exist anymore (getting response from some
hosting provider), does anyone happend to have a copy of app_valetparking.c
from www.bkw.org - the one that should work with * stable 1.0.X ? If so
please contact me.
One that can be downloaded from www.loligo.com dosn't compile with 1.0.X,
and SuperValletParking (www.asterlink.com/svp/) seems to be for * HEAD
2005 Jun 20
1
Re: app_valetparking.c for * STABLE (1.0.X)
Nope ! This is the one that tries to include PRE 1.0.X header file
<parking.h>.
It cannot compile on * 1.0.X (I have tried also to include <features.h>
instead of <parking.h> (as far as I know features.h is successor to
parking.h), but still without results).
Thanks anyway.
Nenad
>
> Try this
>
>> Since www.bkw.org seems not to exist anymore (getting