search for: ast_mutex_unlock

Displaying 15 results from an estimated 15 matches for "ast_mutex_unlock".

2005 Aug 25
2
Custom Application For Asterisk
...d to SQL database.\n"); retried = 1; } if (!connected || (tds_submit_query(tds, mysqlcmd) != TDS_SUCCEED)) { ast_verbose(VERBOSE_PREFIX_3 "Failed to query database.\n"); mssql_disconnect(); } } while (!connected && !retried); if (!connected) { res = -1; ast_mutex_unlock(&tdslock); LOCAL_USER_REMOVE(u); return res; } tdsret = tds_process_result_tokens(tds, &res_type, NULL); switch (tdsret) { case TDS_SUCCEED: switch(res_type){ case TDS_DONE_RESULT: break; case TDS_DONEPROC_RESULT: break; case TDS_DONEINPROC_RESULT: bre...
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
2003 Nov 18
4
Help with Warnings
...++++++++++++++++++++++++++++++++++++++++++++ /* Check for hangup */ ????????if (res < 0) { ????????????????if (res == -1)? { ????????????????????????if (errno == EAGAIN) { ????????????????????????????????/* Return "NULL" frame if there is nobody there */ ????????????????????????????????ast_mutex_unlock(&p->lock); ????????????????????????????????return &p->subs[index].f; ????????????????????????} else ????????????????????????????????ast_log(LOG_WARNING, "zt_rec: %s\n", strerror(errno)); ????????????????} ????????????????ast_mutex_unlock(&p->lock); ????????????????ret...
2004 Jun 23
0
UPDATE Patch for postgres enabled app_voicemail.c
...Status(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 rows with %d fields\n",PQntuples(PGSQLres), numFields); ! for (k = 0; k< (PQntuples(PGSQLres)); k++) { ! for (i=0; i<numFields; i++) { ! fname = P...
2004 Jun 23
0
Patch for postgres enabled app_voicemail.c
...Status(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 rows with %d fields\n",PQntuples(PGSQLres), numFields); ! for (k = 0; k< (PQntuples(PGSQLres)); k++) { ! for (i=0; i<numFields; i++) { ! fname = P...
2009 Oct 23
0
Crash with app_mixmonitor
...on: 201423 $") +ASTERISK_FILE_VERSION(__FILE__, "$Revision: 204012 $") #include <stdlib.h> #include <stdio.h> @@ -273,8 +273,9 @@ ast_writestream(*fs, cur); } } + } else { + ast_mutex_unlock(&mixmonitor->mixmonitor_ds->lock); } - ast_mutex_unlock(&mixmonitor->mixmonitor_ds->lock); /* All done! free it. */ ast_frame_free(fr, 0); Any chance someone can look at this? I've noticed it happens with 1.6.0.15 as well. I&...
2005 Feb 02
2
Forbidding ZAP interface bridging
I have a problem with ZAP interface bridging in France (FXO interface): hangup is detected through a busy tone (no polarity inversion or whatever). When I dial out from a zap line when I receive an incoming call on another zap line (for example to redirect calls to my office when I'm not home), caller hangup is not detected because Asterisk seems to put itself out of the voice path because it
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
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
2006 Oct 23
0
SIP_HEADER function; what names are available?
...experimental pseudo-header that > allows us access to the request URI */ > /* but note that this is not a real header name! */ > if (strcmp(data, > "x-Asterisk-Request-URI-pseudo-header")==0) > { > ast_copy_string(buf, &p->initreq.rlPart2, len); > ast_mutex_unlock(&chan->lock); > return buf; > } > </new> > ast_mutex_unlock(&chan->lock); > return NULL; > } > <snip/> > } > > > -----Original Message----- > > From: asterisk-users-bounces@lists.digium.com > > [mailto:asterisk-users-...
2008 Jan 31
0
Realtime device update weirdness
...aly solution i had to patch res_config_mysql.c at line 342, added such lines: if ((!strcmp(newparam, "ipaddr")) && (!strcmp(buf, "0.0.0.0"))){ ast_log(LOG_DEBUG,"MySQL RealTime: Avoided to update %s to %s !!!\n", newparam, buf); ast_mutex_unlock(&mysql_lock); return -1; } Regards/Pagarbiai, Mindaugas Kezys http://www.kolmisoft.com
2009 Sep 14
0
DAHDI Dial 9 Receiving Setup Acknowledge
...ast_debug(1, "Sending pending digit '%c'\n", pri->pvts[chanpos]->dialdest[x]); pri_information(pri->pri, pri->pvts[chanpos]->call, pri->pvts[chanpos]->dialdest[x]); } ast_mutex_unlock(&pri->pvts[chanpos]->lock); } else ast_log(LOG_WARNING, "Unable to move channel %d!\n", e->setup_ack.channel); } break; How do...
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]: *** [