<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
I am using 1.6.0.26, with chan_ss7 and chunk size 80 as I found the
1.6.1 and 1.6.2 branches unstable. I have a A108 with HWEC.<br>
<br>
The patch chan_ss7-1.3-160.patch will allow you to patch chan_ss7-1.3
so that it will compile with asterisk-1.6.0.26<br>
<br>
First install the vanilla dahdi-linux-complete-2.2.1+2.2.1<br>
Then install wanpipe 3.5.10 or 3.4.8 and specify chunk size 80. I am
using 3.4.8.<br>
(Install asterisk if it is not already installed).<br>
patch chan_ss7 with chan_ss7-1.3-160.patch so that it will work 1.6.0.26<br>
Then patch with chan_ss7-1.3-160-chunk80.patch so that chunk size 80
works with chan_ss7.<br>
<br>
Cheers,<br>
Amish<br>
<br>
<br>
<br>
On 04/13/2010 02:42 AM, Goke M Aruna wrote:
<blockquote
cite="mid:h2ue3b0905d1004121742vfdf95d3ez3928dd03995e9e32@mail.gmail.com"
type="cite"><br>
hi all, <br>
<br>
Can you please help me out? I tried setting up asterisk-1.6.2.6 +
wanpipe-3.5.10 dahdi-2.2.1.1 and chan_ss7-1.3.<br>
<br>
i got the signalling up but its lost the signalling to t7 timeout after
a while and i have to restart wanrouter and asterisk to get the
signaling INSERVICE again.<br>
<br>
i have done my little effort without luck, I have tried disabling the
sltm but i keep getting unknown config option in ss7.<br>
<br>
kindly help.<br>
<br>
goksie <br>
<div class="gmail_quote">---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">Ngo-Vi Hoai-Anh</b> <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:hoaianh@gmx.de">hoaianh@gmx.de</a>></span><br>
Date: Mon, Mar 15, 2010 at 2:25 PM<br>
Subject: Re: [asterisk-ss7] dahdi chunk_size chan_ss7<br>
To: <a moz-do-not-send="true"
href="mailto:asterisk-ss7@lists.digium.com">asterisk-ss7@lists.digium.com</a><br>
<br>
<br>
We have managed to make it work with DAHDI_CHUNKSIZE 40.<br>
<br>
We use:<br>
- Sangoma A 108<br>
- Chan_ss7 1.3<br>
- Dahdi-linux-2.2.1<br>
<br>
It works but we don't know for sure how stable it is. I would be very<br>
thankful if someone tries and give us some feedback.<br>
<br>
Patch on chan_ss7<br>
<br>
diff -ur chan_ss7-1.3/mtp.c chan_ss7-chunk40-1.3/mtp.c<br>
--- chan_ss7-1.3/mtp.c 2009-12-06 10:34:42.000000000 +0100<br>
+++ chan_ss7-chunk40-1.3/mtp.c 2010-03-15 11:09:07.000000000 +0100<br>
@@ -1829,7 +1829,8 @@<br>
gettimeofday(&now, NULL);<br>
tdiff = timediff_usec(now, last);<br>
#ifndef MTP_OVER_UDP<br>
- if (tdiff > 5000)<br>
+ //if (tdiff > 5000)<br>
+ if (tdiff > 25000)<br>
if (n_mtp2_state)<br>
fifo_log(m, LOG_NOTICE, "Excessive poll delay %d!\n", tdiff);//xxxx<br>
#endif<br>
diff -ur chan_ss7-1.3/transport.h chan_ss7-chunk40-1.3/transport.h<br>
--- chan_ss7-1.3/transport.h 2009-12-06 10:34:42.000000000 +0100<br>
+++ chan_ss7-chunk40-1.3/transport.h 2010-03-15 10:49:10.000000000
+0100<br>
@@ -37,7 +37,8 @@<br>
#ifdef MTP_OVER_UDP<br>
ZAP_BUF_SIZE = 64,<br>
#else<br>
- ZAP_BUF_SIZE = 16,<br>
+ //ZAP_BUF_SIZE = 16,<br>
+ ZAP_BUF_SIZE = 80,<br>
#endif<br>
};<br>
<br>
<br>
<br>
<br>
Patch on dahdi<br>
<br>
diff -ur dahdi-linux-2.2.1/drivers/dahdi/dahdi-base.c<br>
/var/tmp/dahdi-linux-2.2.1/drivers/dahdi/dahdi-base.c<br>
--- dahdi-linux-2.2.1/drivers/dahdi/dahdi-base.c 2009-12-28<br>
20:16:37.000000000 +0100<br>
+++ /var/tmp/dahdi-linux-2.2.1/drivers/dahdi/dahdi-base.c 2010-03-15<br>
13:20:23.000000000 +0100<br>
@@ -3047,7 +3047,8 @@<br>
case DAHDI_TONE_MFR1_ST2P:<br>
case DAHDI_TONE_MFR1_ST3P:<br>
/* signaling control tones are always 100ms */<br>
- t->tonesamples = 100 * DAHDI_CHUNKSIZE;<br>
+ /* t->tonesamples = 100 * DAHDI_CHUNKSIZE; */<br>
+ t->tonesamples = 100 * DAHDI_DEFAULT_CHUNKSIZE;<br>
break;<br>
default:<br>
t->tonesamples = global_dialparams.mfv1_tonelen;<br>
@@ -4249,27 +4250,37 @@<br>
continue;<br>
<br>
for (i = 0; i < ARRAY_SIZE(z->dtmf); i++) {<br>
- z->dtmf[i].tonesamples =
global_dialparams.dtmf_tonelen<br>
* DAHDI_CHUNKSIZE;<br>
+ // z->dtmf[i].tonesamples =<br>
global_dialparams.dtmf_tonelen * DAHDI_CHUNKSIZE;<br>
+ z->dtmf[i].tonesamples =
global_dialparams.dtmf_tonelen<br>
* DAHDI_DEFAULT_CHUNKSIZE;<br>
}<br>
<br>
/* for MFR1, we only adjust the length of the digits */<br>
for (i = DAHDI_TONE_MFR1_0; i <= DAHDI_TONE_MFR1_9; i++)
{<br>
- z->mfr1[i - DAHDI_TONE_MFR1_BASE].tonesamples =<br>
global_dialparams.mfv1_tonelen * DAHDI_CHUNKSIZE;<br>
+ //z->mfr1[i - DAHDI_TONE_MFR1_BASE].tonesamples =<br>
global_dialparams.mfv1_tonelen * DAHDI_CHUNKSIZE;<br>
+ z->mfr1[i - DAHDI_TONE_MFR1_BASE].tonesamples =<br>
global_dialparams.mfv1_tonelen * DAHDI_DEFAULT_CHUNKSIZE;<br>
}<br>
<br>
for (i = 0; i < ARRAY_SIZE(z->mfr2_fwd); i++) {<br>
- z->mfr2_fwd[i].tonesamples =<br>
global_dialparams.mfr2_tonelen * DAHDI_CHUNKSIZE;<br>
+ //z->mfr2_fwd[i].tonesamples =<br>
global_dialparams.mfr2_tonelen * DAHDI_CHUNKSIZE;<br>
+ z->mfr2_fwd[i].tonesamples =<br>
global_dialparams.mfr2_tonelen * DAHDI_DEFAULT_CHUNKSIZE;<br>
}<br>
<br>
for (i = 0; i < ARRAY_SIZE(z->mfr2_rev); i++) {<br>
- z->mfr2_rev[i].tonesamples =<br>
global_dialparams.mfr2_tonelen * DAHDI_CHUNKSIZE;<br>
+ //z->mfr2_rev[i].tonesamples =<br>
global_dialparams.mfr2_tonelen * DAHDI_CHUNKSIZE;<br>
+ z->mfr2_rev[i].tonesamples =<br>
global_dialparams.mfr2_tonelen * DAHDI_DEFAULT_CHUNKSIZE;<br>
}<br>
}<br>
write_unlock(&zone_lock);<br>
-<br>
+<br>
+ /**<br>
dtmf_silence.tonesamples = global_dialparams.dtmf_tonelen *<br>
DAHDI_CHUNKSIZE;<br>
mfr1_silence.tonesamples = global_dialparams.mfv1_tonelen *<br>
DAHDI_CHUNKSIZE;<br>
mfr2_silence.tonesamples = global_dialparams.mfr2_tonelen *<br>
DAHDI_CHUNKSIZE;<br>
+ */<br>
+<br>
+ dtmf_silence.tonesamples = global_dialparams.dtmf_tonelen *<br>
DAHDI_DEFAULT_CHUNKSIZE;<br>
+ mfr1_silence.tonesamples = global_dialparams.mfv1_tonelen *<br>
DAHDI_DEFAULT_CHUNKSIZE;<br>
+ mfr2_silence.tonesamples = global_dialparams.mfr2_tonelen *<br>
DAHDI_DEFAULT_CHUNKSIZE;<br>
<br>
break;<br>
}<br>
diff -ur dahdi-linux-2.2.1/drivers/dahdi/digits.h<br>
/var/tmp/dahdi-linux-2.2.1/drivers/dahdi/digits.h<br>
--- dahdi-linux-2.2.1/drivers/dahdi/digits.h 2008-08-06<br>
01:56:00.000000000 +0200<br>
+++ /var/tmp/dahdi-linux-2.2.1/drivers/dahdi/digits.h 2010-03-15<br>
13:23:02.000000000 +0100<br>
@@ -19,10 +19,14 @@<br>
#ifndef _DIGITS_H<br>
#define _DIGITS_H<br>
<br>
-#define DEFAULT_DTMF_LENGTH 100 * DAHDI_CHUNKSIZE<br>
-#define DEFAULT_MFR1_LENGTH 68 * DAHDI_CHUNKSIZE<br>
-#define DEFAULT_MFR2_LENGTH 100 * DAHDI_CHUNKSIZE<br>
-#define PAUSE_LENGTH 500 * DAHDI_CHUNKSIZE<br>
+//#define DEFAULT_DTMF_LENGTH 100 * DAHDI_CHUNKSIZE<br>
+#define DEFAULT_DTMF_LENGTH 100 * DAHDI_DEFAULT_CHUNKSIZE<br>
+//#define DEFAULT_MFR1_LENGTH 68 * DAHDI_CHUNKSIZE<br>
+#define DEFAULT_MFR1_LENGTH 68 * DAHDI_DEFAULT_CHUNKSIZE<br>
+//#define DEFAULT_MFR2_LENGTH 100 * DAHDI_CHUNKSIZE<br>
+#define DEFAULT_MFR2_LENGTH 100 * DAHDI_DEFAULT_CHUNKSIZE<br>
+//#define PAUSE_LENGTH 500 * DAHDI_CHUNKSIZE<br>
+#define PAUSE_LENGTH 500 * DAHDI_DEFAULT_CHUNKSIZE<br>
<br>
/* At the end of silence, the tone stops */<br>
static struct dahdi_tone dtmf_silence = {<br>
diff -ur dahdi-linux-2.2.1/include/dahdi/kernel.h<br>
/var/tmp/dahdi-linux-2.2.1/include/dahdi/kernel.h<br>
--- dahdi-linux-2.2.1/include/dahdi/kernel.h 2009-11-12<br>
21:02:24.000000000 +0100<br>
+++ /var/tmp/dahdi-linux-2.2.1/include/dahdi/kernel.h 2010-03-15<br>
13:13:00.000000000 +0100<br>
@@ -94,9 +94,11 @@<br>
/*! Default chunk size for conferences and such -- static right now,<br>
might make<br>
variable sometime. 8 samples = 1 ms = most frequent service<br>
interval possible<br>
for a USB device */<br>
-#define DAHDI_CHUNKSIZE 8<br>
+/*! oroginal #define DAHDI_CHUNKSIZE 8 */<br>
+#define DAHDI_CHUNKSIZE 40<br>
#define DAHDI_MIN_CHUNKSIZE DAHDI_CHUNKSIZE<br>
-#define DAHDI_DEFAULT_CHUNKSIZE DAHDI_CHUNKSIZE<br>
+/*! original #define DAHDI_DEFAULT_CHUNKSIZE DAHDI_CHUNKSIZE */<br>
+#define DAHDI_DEFAULT_CHUNKSIZE 8<br>
#define DAHDI_MAX_CHUNKSIZE DAHDI_CHUNKSIZE<br>
#define DAHDI_CB_SIZE 2<br>
<br>
<br>
<br>
<br>
<br>
marek cervenka schrieb:<br>
<div>
<div class="h5">>> Dear folk,<br>
>><br>
>> I've found this interesting document<br>
>> <a moz-do-not-send="true"
href="http://www.sangoma.com/assets/docs/misc/2009_10_09_How_to_Reduce_Asterisk_System_Loads.pdf"
target="_blank">http://www.sangoma.com/assets/docs/misc/2009_10_09_How_to_Reduce_Asterisk_System_Loads.pdf</a>.<br>
>><br>
>> After having read it I've tried to set chunk size to 40 for
using<br>
>> sangoma + chan_ss7. But it doesn't work. Chan_ss7 seems not to
be able<br>
>> able to setup link on mtp level. I got this permanently:<br>
>> ...<br>
>><br>
>> Has someone already struggled with the same problem? Is there
any patch<br>
>> for this?<br>
>><br>
><br>
> i have the same problem. no solution<br>
><br>
> ---------------------------------------<br>
> jabber - <a moz-do-not-send="true"
href="mailto:cervajs@njs.netlab.cz">cervajs@njs.netlab.cz</a><br>
> Marek Cervenka<br>
> =======================================<br>
><br>
><br>
><br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true"
href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a>
--<br>
<br>
asterisk-ss7 mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a moz-do-not-send="true"
href="http://lists.digium.com/mailman/listinfo/asterisk-ss7"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br>
</div>
</div>
</div>
<br>
</blockquote>
<br>
</body>
</html>