projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merged revisions 120425 via svnmerge from
[asterisk/asterisk.git]
/
channels
/
chan_zap.c
diff --git
a/channels/chan_zap.c
b/channels/chan_zap.c
index
5187685
..
daeb7cf
100644
(file)
--- a/
channels/chan_zap.c
+++ b/
channels/chan_zap.c
@@
-2561,8
+2561,11
@@
static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
}
if (!(sr = pri_sr_new())) {
ast_log(LOG_WARNING, "Failed to allocate setup request channel %d\n", p->channel);
}
if (!(sr = pri_sr_new())) {
ast_log(LOG_WARNING, "Failed to allocate setup request channel %d\n", p->channel);
+ pri_destroycall(p->pri->pri, p->call);
+ p->call = NULL;
pri_rel(p->pri);
ast_mutex_unlock(&p->lock);
pri_rel(p->pri);
ast_mutex_unlock(&p->lock);
+ return -1;
}
if (p->bearer || (mysig == SIG_FXSKS)) {
if (p->bearer) {
}
if (p->bearer || (mysig == SIG_FXSKS)) {
if (p->bearer) {