[asterisk-commits] branch oej/metermaids-trunk r18636 -
/team/oej/metermaids-trunk/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Apr 9 12:27:40 MST 2006
Author: oej
Date: Sun Apr 9 14:27:37 2006
New Revision: 18636
URL: http://svn.digium.com/view/asterisk?rev=18636&view=rev
Log:
Reset, resolve, go
Modified:
team/oej/metermaids-trunk/ (props changed)
team/oej/metermaids-trunk/Makefile
team/oej/metermaids-trunk/pbx.c
Propchange: team/oej/metermaids-trunk/
------------------------------------------------------------------------------
automerge = http://edvina.net/training/
Propchange: team/oej/metermaids-trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Propchange: team/oej/metermaids-trunk/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Sun Apr 9 14:27:37 2006
@@ -1,1 +1,1 @@
-/trunk:1-17716
+/trunk:1-17739
Modified: team/oej/metermaids-trunk/Makefile
URL: http://svn.digium.com/view/asterisk/team/oej/metermaids-trunk/Makefile?rev=18636&r1=18635&r2=18636&view=diff
==============================================================================
--- team/oej/metermaids-trunk/Makefile (original)
+++ team/oej/metermaids-trunk/Makefile Sun Apr 9 14:27:37 2006
@@ -28,6 +28,7 @@
ifeq ($(CROSS_COMPILE),)
OSARCH=$(shell uname -s)
OSREV=$(shell uname -r)
+ MARCH=$(shell uname -m)
else
OSARCH=$(CROSS_ARCH)
OSREV=$(CROSS_REV)
@@ -397,8 +398,11 @@
AUDIO_LIBS=-framework CoreAudio
ASTLINK=-Wl,-dynamic
SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace
- #OBJS+=poll.o
- #ASTCFLAGS+=-DPOLLCOMPAT
+ # Mac on Intel CoreDuo does not need poll compatibility layer
+ ifneq ($(MARCH),i386)
+ OBJS+=poll.o
+ ASTCFLAGS+=-DPOLLCOMPAT
+ endif
else
#These are used for all but Darwin
ASTLINK=-Wl,-E
Modified: team/oej/metermaids-trunk/pbx.c
URL: http://svn.digium.com/view/asterisk/team/oej/metermaids-trunk/pbx.c?rev=18636&r1=18635&r2=18636&view=diff
==============================================================================
--- team/oej/metermaids-trunk/pbx.c (original)
+++ team/oej/metermaids-trunk/pbx.c Sun Apr 9 14:27:37 2006
@@ -4704,8 +4704,10 @@
} else {
if (ast_pbx_start(chan)) {
ast_log(LOG_ERROR, "Unable to start PBX on %s\n", chan->name);
- if (channel)
+ if (channel) {
*channel = NULL;
+ ast_mutex_unlock(&chan->lock);
+ }
ast_hangup(chan);
res = -1;
}
@@ -4721,13 +4723,15 @@
ast_cdr_failed(chan->cdr);
}
- if (channel)
+ if (channel) {
*channel = NULL;
+ ast_mutex_unlock(&chan->lock);
+ }
ast_hangup(chan);
}
}
- if(res < 0) { /* the call failed for some reason */
+ if (res < 0) { /* the call failed for some reason */
if (*reason == 0) { /* if the call failed (not busy or no answer)
* update the cdr with the failed message */
cdr_res = ast_pbx_outgoing_cdr_failed();
@@ -4783,8 +4787,10 @@
if (ast_pthread_create(&as->p, &attr, async_wait, as)) {
ast_log(LOG_WARNING, "Failed to start async wait\n");
free(as);
- if (channel)
+ if (channel) {
*channel = NULL;
+ ast_mutex_unlock(&chan->lock);
+ }
ast_hangup(chan);
res = -1;
goto outgoing_exten_cleanup;
More information about the asterisk-commits
mailing list