<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi,ALL</FONT></DIV>
<DIV><FONT size=2> I made a voicemail box based on * and one
TE410P card on Redhat platform. My server worked with SuperMacro P4SCI
motherboard, P4 2.4c CPU and 1G memory. Things couldn't be better. So I did the
loadtest.</FONT></DIV>
<DIV><FONT size=2> I use two E1 ports as pri_cpe and other two ports
as pri_net. Then I connected them b2b and use autodialed outgoing calls to play
sound in one channel and record the sound in another correspondingly.
</FONT></DIV>
<DIV><FONT size=2> When I made 50 calls, that meant 100 channels was
used. I could found msg*.wav files in INBOX directory of 50 vm users. And the
record files was good. I check the CPU time use "top" command just like the
list below.</FONT></DIV>
<DIV><FONT size=2>#top</FONT></DIV>
<DIV><FONT size=2> PID USER %CPU %MEM TIME CPU COMMAND<BR>
<DIV><FONT size=2>3715 root 9X.X 1.5 1:20 0
asterisk</FONT></DIV> 1 root 0.0
0.0 0:05 0 init<BR> 2
root 0.0 0.0 0:00 0
keventd<BR> 3 root 0.0 0.0
0:00 0 kapmd</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> But when I made 60 calls, that used all 120
channels. It didn't work well. I couldn't found all 60 msg*.wav in INBOX
directory of 60 vm users. And some of the existed msg*.wav was not
completed.</FONT></DIV>
<DIV><FONT size=2> I think that means some of the calls
lost.</FONT></DIV>
<DIV><FONT size=2> Do that mean my CPU is not good? Or some other
reasons?</FONT></DIV>
<DIV><FONT size=2> Anybody has similar experience?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> Thanks.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>BTW below is my dialplan and callfile.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>[from-te410p</FONT><FONT size=2>]</FONT></DIV>
<DIV><FONT size=2>exten => 50000,1,Answer</FONT></DIV>
<DIV><FONT size=2>exten => 50000,2,Wait,1<BR>exten =>
50000,3,Voicemail(u${CALLERIDNUM}) ; just test<BR>exten =>
50000,4,Hangup</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>[loadtest]</FONT></DIV>
<DIV><FONT size=2>exten => 0,1,Answer<BR>exten => 0,2,Wait,3<BR>exten
=> 0,3,Playback(DTMF-pound)</FONT></DIV>
<DIV><FONT size=2>;DTMF-pound is a DTMF pound tone</FONT></DIV>
<DIV><FONT size=2>exten => 0,4,Playback(demo-instruct) ; Play some
instructions</FONT></DIV>
<DIV><FONT size=2>exten => 0,5,Playback(DTMF-pound)<BR>exten =>
0,6,Hangup</FONT><FONT size=2></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>#generate call files use a shell.</FONT></DIV>
<DIV><FONT
size=2><BR>CALL_TMP_DIR="/var/spool/asterisk/tmp"<BR>CALL_SPOOL_DIR="/var/spool/asterisk/outgoing"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>make_callfile() <BR>{<BR># the load test call files using
voicemail box 5501-5530 5601-5630</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> if [ "x$1" != "x" ];then mailbox="$1"; else
return 1; fi<BR> if [ "x$2" != "x" ];then channel="$2"; else
return 1; fi </FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2># note use of '-' in '-EOF1' - Escapes tab at beginning of
lines </FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> CALLFILE=$(cat
<<-EOF1<BR> Channel: ZAP/$channel/50000<BR> Callerid: $mailbox
<BR> MaxRetries: 2 <BR> RetryTime: 120 <BR> WaitTime: 30
<BR> <BR> Context: loadtest <BR> Extension: 0 <BR> Priority:
1 <BR>EOF1) </FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> echo "$CALLFILE" >>
"$CALL_TMP_DIR"/callfile$mailbox-$(date +%s)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>}</FONT></DIV>
<DIV> </DIV><FONT size=2>
<DIV><BR>i=5501<BR>j=5530</DIV>
<DIV> </DIV>
<DIV>while [ $i -le $j ] <BR> do<BR> make_callfile "$i"
"g4"<BR> `mv callfile$i-*
$CALL_SPOOL_DIR`<BR> echo "file$i generated!"
<BR> i=`expr $i + 1`<BR> done </DIV>
<DIV> </DIV>
<DIV><BR>i=5601<BR>j=5630</DIV>
<DIV> </DIV>
<DIV>while [ $i -le $j ] <BR> do<BR> make_callfile "$i"
"g2"<BR> `mv callfile$i-*
$CALL_SPOOL_DIR`<BR> echo "file$i generated!"
<BR> i=`expr $i + 1`<BR> done </DIV>
<DIV> </DIV>
<DIV></FONT> </DIV></BODY></HTML>