Displaying 12 results from an estimated 12 matches for "standard_hangup_localusers".
2003 Nov 11
4
Registering an application
...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);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}...
2006 Oct 13
0
Asterisk 1.4 / install app_bundle problems
...ifiers from
pointer target type
app_waitfordigits.c:99: warning: implicit declaration of function
`LOCAL_USER_ADD'
app_waitfordigits.c:137: warning: implicit declaration of function
`LOCAL_USER_REMOVE'
app_waitfordigits.c: In function `unload_module':
app_waitfordigits.c:196: error: `STANDARD_HANGUP_LOCALUSERS' undeclared
(first use in this function)
app_waitfordigits.c:196: error: (Each undeclared identifier is reported
only once
app_waitfordigits.c:196: error: for each function it appears in.)
app_waitfordigits.c: In function `usecount':
app_waitfordigits.c:215: warning: implicit declaration...
2007 May 17
0
Compiling DBQuery
...fiers from pointer target type
res_mysqlpool.c:703: warning: assignment discards qualifiers from pointer target type
res_mysqlpool.c: At top level:
res_mysqlpool.c:946: warning: no previous prototype for ?unload_module?
res_mysqlpool.c: In function ?unload_module?:
res_mysqlpool.c:957: error: ?STANDARD_HANGUP_LOCALUSERS? undeclared (first use in this function)
res_mysqlpool.c:957: error: (Each undeclared identifier is reported only once
res_mysqlpool.c:957: error: for each function it appears in.)
res_mysqlpool.c: At top level:
res_mysqlpool.c:964: warning: no previous prototype for ?load_module?
res_mysqlpoo...
2007 May 31
0
Urgent-- Error while installing app_dtmftotext.
...r from integer without
a cast
app_dtmftotext.c:535: warning: implicit declaration of function
‘LOCAL_USER_REMOVE’
app_dtmftotext.c: At top level:
app_dtmftotext.c:1031: warning: no previous prototype for ‘unload_module’
app_dtmftotext.c: In function ‘unload_module’:
app_dtmftotext.c:1032: error: ‘STANDARD_HANGUP_LOCALUSERS’ undeclared (first
use in this function)
app_dtmftotext.c:1032: error: (Each undeclared identifier is reported only
once
app_dtmftotext.c:1032: error: for each function it appears in.)
app_dtmftotext.c: At top level:
app_dtmftotext.c:1037: warning: no previous prototype for ‘load_module’
app_dtmf...
2007 Jan 29
0
Rxfax and txfax
...from
incompatible pointer type
app_rxfax.c:350: warning: implicit declaration of function
'LOCAL_USER_REMOVE'
app_rxfax.c: At top level:
app_rxfax.c:356: warning: no previous prototype for 'unload_module'
app_rxfax.c: In function 'unload_module':
app_rxfax.c:357: error: 'STANDARD_HANGUP_LOCALUSERS' undeclared (first
use in this function)
app_rxfax.c:357: error: (Each undeclared identifier is reported only
once
app_rxfax.c:357: error: for each function it appears in.)
app_rxfax.c: At top level:
app_rxfax.c:363: warning: no previous prototype for 'load_module'
app_rxfax.c:368: warn...
2005 Aug 26
0
Broken pipe of stdinpcm on asterisk-ices.xml
...%s\n", strerror(errno));
res = -1;
break;
}
}
}
ast_frfree(f);
}
}
close(fds[1]);
LOCAL_USER_REMOVE(u);
if (pid > -1)
kill(pid, SIGKILL);
if (!res && oreadformat)
ast_set_read_format(chan, oreadformat);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, ices_exec, synopsis, descrip);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KEY;
}...
2006 Nov 29
1
Getting app_cepstral to work with Asterisk 1.4.0-beta3
...nction
`LOCAL_USER_ADD'
app_cepstral.c:233: warning: implicit declaration of function
`LOCAL_USER_REMOVE'
app_cepstral.c: At top level:
app_cepstral.c:252: warning: no previous prototype for 'unload_module'
app_cepstral.c: In function `unload_module':
app_cepstral.c:253: error: `STANDARD_HANGUP_LOCALUSERS' undeclared
(first use in this function)
app_cepstral.c: At top level:
app_cepstral.c:258: warning: no previous prototype for 'load_module'
app_cepstral.c:263: warning: no previous prototype for 'description'
app_cepstral.c:268: warning: no previous prototype for 'usecount...
2005 Jan 22
0
chan_capi patch: app_capiFax modifications
...e_bchan_fax(chan, stationID);
while (i->state != CAPI_STATE_DISCONNECTED) {
sleep(1);
}
}
} else {
ast_log(LOG_WARNING, "capiFax only works on CAPI channels, check your extensions.conf!\n");
res = -1;
}
LOCAL_USER_REMOVE(u);
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
int load_module(void)
{
return ast_register_application(app, capianswerfax_exec,synopsis,tdesc);
}
char *description(void)
{
return tdesc;
}
int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
char *key()
{
return ASTERISK_GPL_KE...
2008 Mar 13
4
Application registration on Asterisk 1.4 and 1.6?
...to load the module or more specific, trying to register the application.
here is the code:
int load_module(void){
int res;
res = ast_register_application(app, example_exec, synopsis, descrip);
return res;
}
int reload(void){
return load_module();
}
int unload_module(void){
//STANDARD_HANGUP_LOCALUSERS;
return ast_unregister_application(app);
}
char *description(void){
return tdesc;
}
int usecount(void){
int res;
//STANDARD_USECOUNT(res);
return res;
}
char *key(){
return ASTERISK_GPL_KEY;
}
Have the registration way that the applications are registered in arterisk 1.2.*...
2005 Aug 25
2
Custom Application For Asterisk
...{
strncpy(abcdlanguage, s, sizeof(abcdlanguage) - 1);
}
ast_destroy(cfg);
mssql_connect();
res = ast_register_application(app, abcd_exec, synopsis, descrip);
if (res){
ast_log(LOG_ERROR, "Unable to register abcd MSSQL handling\n");
}
return res;
}
int unload_module(void)
{
STANDARD_HANGUP_LOCALUSERS;
mssql_disconnect();
ast_unregister_application(app);
if (abcdhostname) free(abcdhostname);
if (abcddbname) free(abcddbname);
if (abcddbuser) free(abcddbuser);
if (abcdpassword) free(abcdpassword);
if (abcdcharset) free(abcdcharset);
if (abcdlanguage) free(abcdlanguage);
return 0;
}
int r...
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