free(chan->dnid);
if (chan->callerid)
free(chan->callerid);
- if (chan->hidden_callerid)
- free(chan->hidden_callerid);
+ if (chan->ani)
+ free(chan->ani);
pthread_mutex_destroy(&chan->lock);
free(chan->pvt);
free(chan);
/* Simulate a timeout if we were interrupted */
if (errno != EINTR)
*ms = -1;
- else
+ else {
+ /* Just an interrupt */
+#if 0
*ms = 0;
+#endif
+ }
return NULL;
}
}
if (!strchr(enders, d))
s[pos++] = d;
- if (strchr(enders, d) || (pos >= len - 1)) {
+ if (strchr(enders, d) || (pos >= len)) {
s[pos]='\0';
return 0;
}
if (c0->pvt->bridge &&
(c0->pvt->bridge == c1->pvt->bridge) && !nativefailed) {
/* Looks like they share a bridge code */
+ if (option_verbose > 2)
+ ast_verbose(VERBOSE_PREFIX_3 "Attempting native bridge of %s and %s\n", c0->name, c1->name);
if (!(res = c0->pvt->bridge(c0, c1, flags, fo, rc))) {
c0->bridge = NULL;
c1->bridge = NULL;