Displaying 13 results from an estimated 13 matches for "ast_mutex_lock".
Did you mean:
ast_mutex_unlock
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
2004 Sep 16
0
Thoughts on Adding Locking to db.c?
We're working on an application in which it appears it would be far more
efficient to share data between Asterisk and external applications by
simultaneously accessing and updating astdb.
While the current asterisk/db.c code uses ast_mutex_lock and unlock pairs to
protect the integrity of astdb from multiple Asterisk threads, this of
course does nothing to protect astdb from external (i.e. non-Asterisk) apps.
Does the list have any thoughts about the advisability (or inadvisability)
of modifying db.c to use flock instead of ast_mutex_loc...
2004 Jun 23
0
UPDATE Patch for postgres enabled app_voicemail.c
...uot;;
! char email[90] = "";
! char pager[90] = "";
!
! //fprintf(stdout,"postgres sql_append_user:\n");
!
! sprintf(query, "SELECT * FROM voicemail order by context,mailbox ");
!
! //fprintf(stdout,"postgres sql_append_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...
2004 Jun 23
0
Patch for postgres enabled app_voicemail.c
...uot;;
! char email[90] = "";
! char pager[90] = "";
!
! //fprintf(stdout,"postgres sql_append_user:\n");
!
! sprintf(query, "SELECT * FROM voicemail order by context,mailbox ");
!
! //fprintf(stdout,"postgres sql_append_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...
2004 Feb 02
1
Voicetronix Audio Problems when making two or more simultanoues calls
Hi there,
Besides the problem of Voicetronix dialing too early before the carrier gives a dial tone, there also appears to be issues with the audio quality when more than 1 channel is utilized.
2009 Sep 14
0
DAHDI Dial 9 Receiving Setup Acknowledge
...,
PRI_SPAN(e->setup_ack.channel), PRI_CHANNEL(e->setup_ack.channel),
pri->span);
} else {
chanpos =
pri_fixup_principle(pri, chanpos, e->setup_ack.call);
if (chanpos > -1) {
ast_mutex_lock(&pri->pvts[chanpos]->lock);
pri->pvts[chanpos]->setup_ack = 1;
/* Send any queued digits */
for (x = 0;x <
strlen(pri->pvts[chanpos]->dialdest); x++) {...
2009 Oct 04
3
After call into console/dsp hangup hear ringing
I am running asterisk 1.4.26.1 and using ALSA not oss
dahdi 2.2.0
and libpri-1.4.10
I am calling into console/dsp I hear the audio just fine then after the
hangup I hear ringing
on the console/dsp.
Why would that be?
I found this bug for OSS https://issues.asterisk.org/view.php?id=13686
Does the same thing exist in ALSA???
some traces below
Jerry
== Parsing
2003 Oct 23
4
Call pickup (*8) on SIP devices.
Hello.
I have this issue, when I pickup a call that is ringing in a SIP
Phone, it keeps ringing.
There is bug #116 that mention something about these, but it does
not seem to be resolved , at least, not yet.
Anybody else has seen it behavior ?
Thank's.
2005 Aug 04
1
bristuff-0.2.0RC8m
Hi,
I have following problems compiling bristuff-0.2.0RC8m. Has anybody seen
them before and can point me in the right direction?
zaphfc/make all:
----------------------
/usr/src/asterisk/bristuff-0.2.0-RC8m/zaphfc/zaphfc.c: In function
'hfc_findCards':
/usr/src/asterisk/bristuff-0.2.0-RC8m/zaphfc/zaphfc.c:1000: error:
invalid lvalue in assignment
make[2]: *** [
2003 Nov 06
2
ISDN PBX + IVR + Voicemail Configuration - Sanity Check ...
Hi All,
First of all, please no flames about the footer of this message. It's being
inserted into all outgoing email by the server here without asking me
personally first once I send out email. Since I've been very interested in
setting up an Asterisk PBX + IVR + Voicemail system to support a small
business and a foundation for quite some time now, in order to replace their
current ISDN
2003 Dec 04
16
Asterisk freezing HELP
Hello,
I have had several instances over the last month of Asterisk freezing,
sometimes after 12 hours, sometimes after 8 days. The common elements are
that:
- all Zap channels lock[hangups don't register and no new calls in or out]
- no new in/outbound calls can be made on Zap or SIP channels
- people who are still connected to calls can continue to talk
- in the CLI interface, you can
2005 Aug 25
2
Custom Application For Asterisk
...;
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 (mssql_connect())
ast_log(LOG_ERROR, "Failed to reconnect to SQL database.\n");
else
ast_log(LOG_W...