<!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>&nbsp;&nbsp; I made a voicemail box based on * and one 
TE410P&nbsp;card on Redhat platform.&nbsp;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>&nbsp;&nbsp; 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>&nbsp;&nbsp; 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&nbsp;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>&nbsp;PID USER&nbsp;%CPU %MEM&nbsp;&nbsp; TIME CPU COMMAND<BR>
<DIV><FONT size=2>3715 root&nbsp;9X.X&nbsp; 1.5&nbsp;&nbsp; 1:20&nbsp;&nbsp; 0 
asterisk</FONT></DIV>&nbsp;&nbsp;&nbsp;1 root&nbsp;&nbsp;0.0&nbsp; 
0.0&nbsp;&nbsp; 0:05&nbsp;&nbsp; 0 init<BR>&nbsp;&nbsp; 2 
root&nbsp;&nbsp;0.0&nbsp; 0.0&nbsp;&nbsp; 0:00&nbsp;&nbsp; 0 
keventd<BR>&nbsp;&nbsp; 3 root&nbsp;&nbsp;0.0&nbsp; 0.0&nbsp;&nbsp; 
0:00&nbsp;&nbsp; 0 kapmd</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp; I think that means some of the calls 
lost.</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp; Do that mean my CPU is not good? Or some other 
reasons?</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp; Anybody has similar experience?</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp; Thanks.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>BTW below is my dialplan and callfile.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>[from-te410p</FONT><FONT size=2>]</FONT></DIV>
<DIV><FONT size=2>exten =&gt; 50000,1,Answer</FONT></DIV>
<DIV><FONT size=2>exten =&gt; 50000,2,Wait,1<BR>exten =&gt; 
50000,3,Voicemail(u${CALLERIDNUM})&nbsp;&nbsp;; just test<BR>exten =&gt; 
50000,4,Hangup</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>[loadtest]</FONT></DIV>
<DIV><FONT size=2>exten =&gt; 0,1,Answer<BR>exten =&gt; 0,2,Wait,3<BR>exten 
=&gt; 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 =&gt; 0,4,Playback(demo-instruct)&nbsp;; Play some 
instructions</FONT></DIV>
<DIV><FONT size=2>exten =&gt; 0,5,Playback(DTMF-pound)<BR>exten =&gt; 
0,6,Hangup</FONT><FONT size=2></FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT size=2>make_callfile() <BR>{<BR># the load test call files using 
voicemail box 5501-5530 5601-5630</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; if [ "x$1" != "x" ];then mailbox="$1"; else 
return 1; fi<BR>&nbsp;&nbsp;&nbsp; if [ "x$2" != "x" ];then channel="$2"; else 
return 1; fi </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2># note use of '-' in '-EOF1' - Escapes tab at beginning of 
lines </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; CALLFILE=$(cat 
&lt;&lt;-EOF1<BR>&nbsp;Channel: ZAP/$channel/50000<BR>&nbsp;Callerid: $mailbox 
<BR>&nbsp;MaxRetries: 2 <BR>&nbsp;RetryTime: 120 <BR>&nbsp;WaitTime: 30 
<BR>&nbsp;<BR>&nbsp;Context: loadtest <BR>&nbsp;Extension: 0 <BR>&nbsp;Priority: 
1 <BR>EOF1) </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; echo "$CALLFILE" &gt;&gt; 
"$CALL_TMP_DIR"/callfile$mailbox-$(date +%s)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>}</FONT></DIV>
<DIV>&nbsp;</DIV><FONT size=2>
<DIV><BR>i=5501<BR>j=5530</DIV>
<DIV>&nbsp;</DIV>
<DIV>while [ $i -le $j ] <BR>&nbsp; do<BR>&nbsp;&nbsp;&nbsp; make_callfile "$i" 
"g4"<BR>&nbsp;&nbsp;&nbsp; `mv callfile$i-* 
$CALL_SPOOL_DIR`<BR>&nbsp;&nbsp;&nbsp; echo "file$i generated!" 
<BR>&nbsp;&nbsp;&nbsp; i=`expr $i + 1`<BR>&nbsp; done </DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>i=5601<BR>j=5630</DIV>
<DIV>&nbsp;</DIV>
<DIV>while [ $i -le $j ] <BR>&nbsp; do<BR>&nbsp;&nbsp;&nbsp; make_callfile "$i" 
"g2"<BR>&nbsp;&nbsp;&nbsp; `mv callfile$i-* 
$CALL_SPOOL_DIR`<BR>&nbsp;&nbsp;&nbsp; echo "file$i generated!" 
<BR>&nbsp;&nbsp;&nbsp; i=`expr $i + 1`<BR>&nbsp; done </DIV>
<DIV>&nbsp;</DIV>
<DIV></FONT>&nbsp;</DIV></BODY></HTML>