[Asterisk-Users] PRI/E1: machine freeze/dies after a few calls
CW_ASN
cw_asn at fibertel.com.ar
Mon Oct 13 18:05:24 MST 2003
I'm running an E100P (only 1 E1) in PIII 850, the last Friday I was sent 30
simultaneous calls, 5 seconds each call, using mysql to store cdrs. These
calls was generated by an Ameritec AM2, and routed thru our Siemens EWSD.
The vmstat shows that CPU was near to 20% idle with 30 ISDN Setups incoming.
PII 400? E400P? Man, you gonna fry your CPU...
Regards,
Gus
----- Original Message -----
From: "Scott Stingel" <scott at evtmedia.com>
To: <asterisk-users at lists.digium.com>
Sent: Monday, October 13, 2003 9:27 PM
Subject: RE: [Asterisk-Users] PRI/E1: machine freeze/dies after a few calls
Hi Thomas-
I didn't look closely at your shell script, but I wrote something similar in
Perl (and used shell to start each instance of it). I had a few problems
too with a similar setup (although no machine lockups)
* You are running quite a slow machine to run this script on many lines at
once - I found that I needed a P4, 2.4GHz to keep up with 120 channels
simultaneously (I had one system to send and one to receive, and very short
calls - 3 seconds). How many instances are you running? Are you doing
mySQL call logging?
* I found that I could only initiate about 18 calls at exactly the same
moment without getting failed outbound call errors from asterisk, so I ended
up staggering the start times a little.
* With lots of new calls, I had tons of framing errors on the receiving end
(and occasional D channel restarts) when routing calls through my DMS100
switch - do you have problems like this? I think this problem is specific
to the Nortel switch however.
Suggest starting with -vvvvc and routing all output to a log file...??
regards
Scott
Scott M. Stingel
Emerging Voice Technology Inc.
Email: scott at evtmedia.com <mailto:scott at evtmedia.com>
URL: www.evtmedia.com <http://www.evtmedia.com>
> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com] On Behalf Of
> Thomas Haeger
> Sent: Monday, October 13, 2003 8:00 PM
> To: Asterisk User
> Subject: [Asterisk-Users] PRI/E1: machine freeze/dies after a
> few calls
>
>
> Hi all,
>
> inside my * is a E400P. The machine is a PII 400Mhz with
> 256MB Ram. OS is
> Debian woody. * is the newest cvs co.
>
> I have written a little callgen script which make outgoing
> calls through my
> *:
>
> #! /bin/sh
> set -e
>
> n=$1 # Nummer
> anz=$2 # Anzhal der Versuche
> anz2=$3 # Kanäle
> sle=$4 # Timeout bis zum nächsten Versuch
>
> if [ -z $4 ]; then
> sle=0
> fi
>
> s=1
> i=1
> while [ $s -le $anz ];do
> echo "$s try started..."
> while [ $i -le $anz2 ];do
> echo -e "Channel: Zap/g1/$n$i\nMaxRetries: 0\nContext:
> callgen\nExtension: 1\nPriority: 1\nCallerid:334778\n" >
> /var/spool/asterisk/outgoing/call.$i.$s
>
> sleep 2
> i=$((i + 1))
> done
> i=1
> echo "sleep for $sle sec....."
> sleep $sle
> s=$((s + 1))
> done
>
> The calls goes out over the first two ports and through a pri
> switch (teles)
> they come back at the other two ports (3 and 4).
> But after a few calls my machine is completly freezed! So
> that i have to
> restart my machine.
>
>
> Here're my extension.conf, zapata.conf and zaptel.conf:
>
>
> ---->extension.conf:
>
> [pri1]
> exten => _X.,1,SetAccount(pritest)
> exten => _X.,2,Answer
> exten => _X.,3,Wait(15)
> exten => _X.,4,Hangup
>
> [pri2]
> exten => _X.,1,SetAccount(pritest)
> exten => _X.,2,Answer
> exten => _X.,3,Wait(15)
> exten => _X.,4,Hangup
>
> [pri3]
> exten => _X.,1,SetAccount(pritest)
> exten => _X.,2,Answer
> exten => _X.,3,Wait(60)
> exten => _X.,4,Hangup
>
>
> [pri4]
> exten => _X.,1,SetAccount(pritest)
> exten => _X.,2,Answer
> exten => _X.,3,Wait(60)
> exten => _X.,4,Hangup
>
>
> [callgen]
> exten => 1,1,Wait(90)
>
>
> ---->zapata.conf:
>
>
> ;
> ; Zapata telephony interface
> ;
> ; Configuration file
>
> [channels]
>
> pridialplan=local
>
> switchtype=euroisdn
> busydetect=yes
> callprogress=no
> echocancel=yes
> echocancelwhenbridged=yes
> ;callwaitingcallerid=no
> ;callwaiting=no
>
> signalling=pri_net
> group=1
> context=pri1
> channel => 1-15,17-31
> channel =>32-46,48-62
>
> signalling=pri_net
> group=3
> context=pri3
> channel => 63-77,79-93
> channel => 94-108,110-124
>
>
> ---->zaptel.conf
>
>
> span=1,0,0,ccs,hdb3,crc4
> span=2,0,0,ccs,hdb3,crc4
> span=3,0,0,ccs,hdb3,crc4
> span=4,0,0,ccs,hdb3,crc4
>
> bchan=1-15,17-31
> dchan=16
>
> bchan=32-46,48-62
> dchan=47
>
> bchan=63-77,79-93
> dchan=78
>
> bchan=94-108,110-124
> dchan=109
>
> loadzone = fr
> defaultzone=fr
>
>
>
> Thanks for your help.
>
> Regards,
>
> Thomas.
>
>
> *******************************************
> beroNet technologies GmbH
> Dipl.- Ing. Thomas Häger
> Potsdamer Str. 18 A
> 14513 Teltow
>
> FON: +49 (0) 3328 3077731
> FAX: +49 (0) 3328 334779
> Email: thomas.haeger at beronet.com
> *******************************************
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list