1 |
chainsaw 09/10/26 13:34:23 |
2 |
|
3 |
Added: asterisk-1.6.1.6-bt-line-test.patch |
4 |
Log: |
5 |
Cope with automated British Telecom line tests as they currently cause the DAHDI channel to wedge with "exiting simple switch" messages. An upstream bug exists since July but has not been actioned yet. Delete old ebuild. |
6 |
(Portage version: 2.1.7.1/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-misc/asterisk/files/1.6.1/asterisk-1.6.1.6-bt-line-test.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk/files/1.6.1/asterisk-1.6.1.6-bt-line-test.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk/files/1.6.1/asterisk-1.6.1.6-bt-line-test.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: asterisk-1.6.1.6-bt-line-test.patch |
15 |
=================================================================== |
16 |
diff -uNr asterisk-1.6.1.6.ORIG/channels/chan_dahdi.c asterisk-1.6.1.6/channels/chan_dahdi.c |
17 |
--- asterisk-1.6.1.6.ORIG/channels/chan_dahdi.c 2009-10-26 12:57:27.000000000 +0000 |
18 |
+++ asterisk-1.6.1.6/channels/chan_dahdi.c 2009-10-26 12:59:26.000000000 +0000 |
19 |
@@ -7287,6 +7287,7 @@ |
20 |
} |
21 |
if (i & DAHDI_IOMUX_SIGEVENT) { |
22 |
res = dahdi_get_event(p->subs[idx].dfd); |
23 |
+ if (res == DAHDI_EVENT_NOALARM) p->inalarm = 0; |
24 |
ast_log(LOG_NOTICE, "Got event %d (%s)...\n", res, event2str(res)); |
25 |
|
26 |
if (p->cid_signalling == CID_SIG_V23_JP) { |
27 |
@@ -7389,6 +7390,7 @@ |
28 |
if (i & DAHDI_IOMUX_SIGEVENT) { |
29 |
res = dahdi_get_event(p->subs[idx].dfd); |
30 |
ast_log(LOG_NOTICE, "Got event %d (%s)...\n", res, event2str(res)); |
31 |
+ if (res == DAHDI_EVENT_NOALARM) p->inalarm = 0; |
32 |
res = 0; |
33 |
/* Let us detect distinctive ring */ |
34 |
|
35 |
@@ -7540,6 +7542,7 @@ |
36 |
if (i & DAHDI_IOMUX_SIGEVENT) { |
37 |
res = dahdi_get_event(p->subs[idx].dfd); |
38 |
ast_log(LOG_NOTICE, "Got event %d (%s)...\n", res, event2str(res)); |
39 |
+ if (res == DAHDI_EVENT_NOALARM) p->inalarm = 0; |
40 |
/* If we get a PR event, they hung up while processing calerid */ |
41 |
if ( res == DAHDI_EVENT_POLARITY && p->hanguponpolarityswitch && p->polarity == POLARITY_REV) { |
42 |
ast_log(LOG_DEBUG, "Hanging up due to polarity reversal on channel %d while detecting callerid\n", p->channel); |
43 |
@@ -7609,6 +7612,7 @@ |
44 |
if (i & DAHDI_IOMUX_SIGEVENT) { |
45 |
res = dahdi_get_event(p->subs[idx].dfd); |
46 |
ast_log(LOG_NOTICE, "Got event %d (%s)...\n", res, event2str(res)); |
47 |
+ if (res == DAHDI_EVENT_NOALARM) p->inalarm = 0; |
48 |
res = 0; |
49 |
/* Let us detect callerid when the telco uses distinctive ring */ |