Displaying 20 results from an estimated 142 matches for "ast_log".
2004 Jan 06
2
Problems compiling cdr_pgsql
...lpq -lz -L/usr/lib
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0x18): undefined reference to `main'
cdr_pgsql.o: In function `pgsql_log':
cdr_pgsql.o(.text+0x168): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x192): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x4c1): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x506): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x535): undefined reference to `ast_cdr_disp2str'
cdr_pgsql.o(.text+0x5c4): undefin...
2003 Jul 11
4
module : cdr_sybase.so
...date(cdr->answer);
gettimeofday(&tv,&tz);
t = tv.tv_sec;
localtime_r(&t,&tm);
strftime(timestr,128,DATE_FORMAT,&tm);
strftime(timeend,128,DATE_FORMAT,&end);
strftime(timeanswer,128,DATE_FORMAT,&answer);
strftime(timestart,128,DATE_FORMAT,&start);
ast_log(LOG_WARNING,timeend);
ast_log(LOG_WARNING,timestart);
ast_log(LOG_WARNING,timeanswer);
ast_log(LOG_DEBUG,"cdr_sybase: inserting a CDR record.\n");
sprintf(sqlcmd,"INSERT INTO cdr
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,dispositi...
2007 May 23
0
Problems compiling res_config_mysql (asterisk addons)
...o res_config_mysql
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o(.text+0x18): In
function `_start':
: undefined reference to `main'
res_config_mysql.o(.text+0x4e): In function `realtime_mysql':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:100: undefined
reference to `ast_log'
res_config_mysql.o(.text+0xb5):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:108:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x181):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:126:
undefined reference to `mysql_real_escape_string'
res_config_mysql...
2004 Jun 22
1
Problems compiling cdr_odbc.so
...dr_odbc.o(.text+0x904): In function `odbc_unload_module':
: undefined reference to `ast_cdr_unregister'
cdr_odbc.o(.text+0x95d): In function `odbc_load_module':
: undefined reference to `ast_load'
cdr_odbc.o(.text+0x993): In function `odbc_load_module':
: undefined reference to `ast_log'
cdr_odbc.o(.text+0x9ad): In function `odbc_load_module':
: undefined reference to `ast_variable_browse'
cdr_odbc.o(.text+0x9d7): In function `odbc_load_module':
: undefined reference to `ast_variable_retrieve'
cdr_odbc.o(.text+0xa4e): In function `odbc_load_module':
: undef...
2005 Aug 25
2
Custom Application For Asterisk
...;
static int abcd_exec(struct ast_channel *chan, void *data)
{
int retried = 0;
int res = 0;
int res_type;
int tdsret;
int rowtype;
int computeid;
int i;
int sucs = 0;
struct localuser *u;
char mysqlcmd[1024];
char myretnumber[6];
const void *value;
char resulttype[4];
if (!data) {
ast_log(LOG_WARNING, "abcd requires an argument (number)\n");
return -1;
}
LOCAL_USER_ADD(u);
ast_mutex_lock(&tdslock);
memset(mysqlcmd, 0, sizeof(mysqlcmd));
sprintf(mysqlcmd, "Select MyFunction(\'%s\') As result",((char *) data));
do {
if (!connected) {
if (ms...
2003 Nov 18
4
Help with Warnings
...ook, until the call is answered */
????????????????????????p->dialing = 1;
????????????????????????if (p->use_callerid) {
????????????????????????????????/* Generate the Caller-ID spill if desired
*/
????????????????????????????????if (p->cidspill) {
????????????????????????????????????????ast_log(LOG_WARNING, "cidspill
already exists??\n");
????????????????????????????????????????free(p->cidspill);
????????????????????????????????}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Nov 17 17:13:51 NOTICE[1242768320]: File app_dial.c, Line 502
(dial_exec): Una...
2009 Oct 05
3
Questions about app_jack.c
Hello,
My configuration is :
Card 0 - kernel dummy sound card
Card 1 - my soundcard
I have a jackd running in background. My jackd launch command is :
jackd --port-max 16 --realtime --no-mlock -d alsa --playback hw:1,0
--capture hw:1,0 --rate 8000 --period 1024 --shorts --inchannels 2
--outchannels 2 --dither triangular &
1 ) I open asterisk with chan_alsa.so connected (with asoundrc) to
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
2009 Aug 26
1
app_swift issue
..._voice));
res = ast_register_application(app, engine, synopsis, descrip);
cfg = ast_config_load(SWIFT_CONFIG_FILE, config_flags);
if (cfg) {
if ((t = ast_variable_retrieve(cfg, "general", "buffer_size"))) {
cfg_buffer_size = atoi(t);
ast_log(LOG_DEBUG, "Config buffer_size is %d\n",
cfg_buffer_size);
}
if ((t = ast_variable_retrieve(cfg, "general", "goto_exten"))) {
if (!strcmp(t, "yes"))
cfg_goto_exten = 1;
else
cfg_goto_exte...
2006 May 16
2
Multiple Registers
List,
Does anyone know how to limit the amount of registrations that a sip user
can have?
For example, I have 2 softphones that I use on my laptop & desktop, both use
the same username & password. If I have both softphones up at the same time,
I can make simultaneous calls with each of them.
I know you can have call-limit=1 but in this case, I want to allow them to
have 3 way calling
2003 Mar 03
0
Voicemail Volume Control Patch
...ge volume */
> char *volgain; /* Added for volume gain to increase / descrease message volume
> to be read from voicemail.conf */
1920a1924,1940
> case '3':
> if (volgain = ast_variable_retrieve(cfg, "general", "volgain"))
> {
> ast_log(LOG_NOTICE,"New Increase Volume Messages # %04d\n",curmsg);
> snprintf(sys, sizeof(sys), "sox %s/msg%04d.WAV %s/new.WAV vol %s; mv %s/new.WAV %s/msg%04d.WAV\n", curdir, curmsg, curdir, volgain, curdir, curdir, curmsg);
> ast_log(LOG_NOTICE,"%s\n",sys);
&g...
2003 Oct 20
3
Call Waiting on SIP phones
...}
break;
case INC_IN_USE:
+ case INC_OUT_USE:
if (u->incominglimit > 0 ) {
if (u->inUse >= u->incominglimit) {
ast_log(LOG_ERROR, "Call from user
'%s'
rejected due to usage limit of %d\n", u->name, u->incominglimit);
@@ -977,6 +980,7 @@
u->inUse++;
ast_log(LOG_DEBUG, "Call from user '%s' is %d out of
%d\
n", u->name, u-&...
2003 Nov 06
2
this is the code that breaks outgoing calls on grandstream
...capability = capability;
5698,5709d5691
< } else if (!strcasecmp(v->name, "allow")) {
< format = ast_getformatbyname(v->value);
< if (format < 1)
< ast_log(LOG_WARNING, "Cannot allow unknown format '%s'\n", v->value);
< else
< user->capability |= format;
< } else if (!strcasecmp(v->name, "disallow")) {
<...
2006 Dec 06
1
0002475: [patch] Allow app_directory to work with REALTIME
Hi All,
I'm running 1.2.9.1 stable. I'm wondering has this patch been applied to
stable release or is it still only in CVS. Will this file patch apply
correctly to 1.2.9.1 stable? Which file do I patch? I'm guessing
app_directory_realtime_1.6.1.patch
<http://bugs.digium.com/file_download.php?file_id=4915&type=bug> and
config.h.patch
2005 Jan 22
0
chan_capi patch: app_capiFax modifications
...3Config(&B3conf, FAX_SFF_FORMAT, stationID); // Format ignored by eicon cards
DISCONNECT_B3_REQ_HEADER(&CMSG, ast_capi_ApplID, ast_capi_MessageNumber++, 0);
DISCONNECT_B3_REQ_NCCI(&CMSG) = i->NCCI;
if ((error = _capi_put_cmsg(&CMSG)) != 0) {
ast_log(LOG_ERROR, "error sending DISCONNECT_B3_REQ NCCI=%#x\n",i->NCCI);
} else {
if (option_verbose > 5) {
ast_verbose(VERBOSE_PREFIX_4 "sent DISCONNECT_B3_REQ NCCI=%#x\n",i->NCCI);
}
}
// wait for the B3 layer t...
2009 Dec 14
2
Asterisk & Zaptel setup on vserver
...ded, but the Zaptel timer test failed to set ZT_TIMERCONFIG to 160.
The code where this error lies is this:
int fd;
- int x = 160;
- fd = open("/dev/dahdi/timer", O_RDWR);
+ fd = open(DAHDI_FILE_TIMER, O_RDWR);
if (fd >= 0) {
if (ioctl(fd, DAHDI_TIMERCONFIG, &x)) {
- ast_log(LOG_ERROR, "You have DAHDI built and drivers loaded, but
the DAHDI timer test failed to set DAHDI_TIMERCONFIG to %d.\n", x);
+ ast_log(LOG_ERROR, "You have " DAHDI_NAME
+ " built and drivers loaded, but the "
+ DAHDI_NAME " timer test failed to set DA...
2004 Apr 08
3
Re: : External access to voicemail
...28 16:21:15 2004
@@ -1083,7 +1083,7 @@
char prefile[256]="";
char fmt[80];
char *context;
- char *ecodes = "#";
+ char *ecodes = "*#";
char *stringp;
time_t start;
time_t end;
@@ -1117,12 +1117,12 @@
if (mkdir(dir, 0700) && (errno != EEXIST))
ast_log(LOG_WARNING, "mkdir '%s' failed: %s\n", dir, strerror(errno));
if (ast_exists_extension(chan, strlen(chan->macrocontext) ? chan->macrocontext : chan->context, "o", 1, chan->callerid))
- ecodes = "#0";
+ ecodes = "*#0";
/* Play th...
2004 Jun 23
0
UPDATE Patch for postgres enabled app_voicemail.c
...pend_user: query = %s\n",query);
! ast_mutex_lock(&postgreslock);
! PGSQLres=PQexec(dbhandler,query);
! if (PGSQLres!=NULL) {
! if (PQresultStatus(PGSQLres) == PGRES_BAD_RESPONSE ||
! PQresultStatus(PGSQLres) == PGRES_NONFATAL_ERROR ||
! PQresultStatus(PGSQLres) == PGRES_FATAL_ERROR) {
!
! ast_log(LOG_WARNING,"PGSQL_query: Query Error (%s) Calling
PQreset\n",PQcmdStatus(PGSQLres));
! PQclear(PGSQLres);
! PQreset(dbhandler);
! ast_mutex_unlock(&postgreslock);
! return;
! } else {
! numFields = PQnfields(PGSQLres);
! //fprintf(stdout,"postgres sql_append_user: query found %d...
2014 Mar 13
1
Any help Address 0xfffffffe out of bounds in app_confbridge.casterisk-11.5.1 using confbridge.conf
...=========================================================
static const char *const app2 ="MyConfbridgeCount";
static int load_module(void)
{
ast_verb(3 ,"==Inside load_module==");
ast_verb(3 ,"\n ==Inside load_module==\n ");
ast_log(LOG_NOTICE ,"\n ==Inside load_module==\n ");
//tes4
//const char *data= (char*)malloc(sizeof(char) * 256);
char *sdata="4000,acPd";
ast_verb(3 ,"\n ==Inside load_module sdata [%s] at [%p]
len[%d]\n ",sdata,&sdata,...