ports/net/asterisk13/files/patch-channels-chan_dahdi.c
Guido Falsi d3728e419f - Update net/asterisk11 to 11.19.0
- Update net/asterisk13 to 13.5.0
- Add SQLITE2 option default description
- Rename SQLITE option to SQLITE2, which better describes what it really does
- Clean up Makefile and sort option helpers [1]
- Add missed dependencies on openssl, ncurses and iconv [1]
- Add back shabangfix for sample agi scripts
- Make build log verbose [1]
- Regenerated some patches

Suggested by:	koobs (thanks!) [1]
2015-08-08 13:04:49 +00:00

33 lines
1.2 KiB
C

--- channels/chan_dahdi.c.orig 2015-07-24 22:20:17 UTC
+++ channels/chan_dahdi.c
@@ -4598,6 +4598,8 @@ void dahdi_ec_enable(struct dahdi_pvt *p
return;
}
if (p->echocancel.head.tap_length) {
+ struct dahdi_echocanparams *pecp;
+
#if defined(HAVE_PRI) || defined(HAVE_SS7)
switch (p->sig) {
#if defined(HAVE_PRI)
@@ -4628,7 +4630,9 @@ void dahdi_ec_enable(struct dahdi_pvt *p
break;
}
#endif /* defined(HAVE_PRI) || defined(HAVE_SS7) */
- res = ioctl(p->subs[SUB_REAL].dfd, DAHDI_ECHOCANCEL_PARAMS, &p->echocancel);
+
+ pecp = &p->echocancel.head;
+ res = ioctl(p->subs[SUB_REAL].dfd, DAHDI_ECHOCANCEL_PARAMS, &pecp);
if (res) {
ast_log(LOG_WARNING, "Unable to enable echo cancellation on channel %d (%s)\n", p->channel, strerror(errno));
} else {
@@ -4662,8 +4666,9 @@ void dahdi_ec_disable(struct dahdi_pvt *
if (p->echocanon) {
struct dahdi_echocanparams ecp = { .tap_length = 0 };
+ struct dahdi_echocanparams *pecp = &ecp;
- res = ioctl(p->subs[SUB_REAL].dfd, DAHDI_ECHOCANCEL_PARAMS, &ecp);
+ res = ioctl(p->subs[SUB_REAL].dfd, DAHDI_ECHOCANCEL_PARAMS, &pecp);
if (res)
ast_log(LOG_WARNING, "Unable to disable echo cancellation on channel %d: %s\n", p->channel, strerror(errno));