[Asterisk-Users] PRI/E1: machine freeze/dies after a few calls
Scott Stingel
scott at evtmedia.com
Tue Oct 14 07:02:31 MST 2003
Hi Thomas-
Yes, I can run 120 channels receiving IVR calls on one machine. The calls I
get are short, so this is sort of a worst case IVR setup. I forgot to
mention that I use Raw PCM (G.711 uLaw) for best quality - I think this may
have a lower load factor than using ADPCM or one of the other transcoding
techniques - not sure.
The machine is very busy with this load, but could likely handle a little
more - maybe 6 E1's - but again this is worst case IVR scenario.
I tried running this same scenario using AGI scripts to do the IVR, and the
machine was definitely overloaded trying to start and stop each AGI process
- I ended up simplifying the IVR callflow and doing it all within the
dialplan. The code is not as robust this way, but it is much more
efficient!
Cheers
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: Tuesday, October 14, 2003 9:06 AM
> To: asterisk-users at lists.digium.com
> Subject: AW: [Asterisk-Users] PRI/E1: machine freeze/dies
> after a few calls
>
>
> Hi Scott,
>
> thanks for your help. The frame errors which you got i don't got.
> Yes this is a slow machine, but i greenly thought that * can
> handle about 30
> calls on it without
> problems....
>
> Have you ever run 120 simultaneously calls on one machine ?
> What does you mean with "How many instances are you running" ?
>
>
> Best regards,
>
> Thomas.
>
> -----Ursprüngliche Nachricht-----
> Von: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com]Im Auftrag von Scott
> Stingel
> Gesendet: Dienstag, 14. Oktober 2003 02:28
> An: asterisk-users at lists.digium.com
> Betreff: 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
>
> _______________________________________________
> 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