[Asterisk-Dev] TE410p Loadtest Problem

Ma Zhiyong mazhiyong at sohu.com
Wed Mar 30 19:57:08 MST 2005


Hi,ALL
   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.
   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. 
   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.
#top
 PID USER %CPU %MEM   TIME CPU COMMAND

3715 root 9X.X  1.5   1:20   0 asterisk
   1 root  0.0  0.0   0:05   0 init
   2 root  0.0  0.0   0:00   0 keventd
   3 root  0.0  0.0   0:00   0 kapmd

   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.
   I think that means some of the calls lost.
   Do that mean my CPU is not good? Or some other reasons?
   Anybody has similar experience?

   Thanks.


BTW below is my dialplan and callfile.

[from-te410p]
exten => 50000,1,Answer
exten => 50000,2,Wait,1
exten => 50000,3,Voicemail(u${CALLERIDNUM})  ; just test
exten => 50000,4,Hangup

[loadtest]
exten => 0,1,Answer
exten => 0,2,Wait,3
exten => 0,3,Playback(DTMF-pound)
;DTMF-pound is a DTMF pound tone
exten => 0,4,Playback(demo-instruct) ; Play some instructions
exten => 0,5,Playback(DTMF-pound)
exten => 0,6,Hangup


#generate call files use a shell.

CALL_TMP_DIR="/var/spool/asterisk/tmp"
CALL_SPOOL_DIR="/var/spool/asterisk/outgoing"

make_callfile() 
{
# the load test call files using voicemail box 5501-5530 5601-5630

    if [ "x$1" != "x" ];then mailbox="$1"; else return 1; fi
    if [ "x$2" != "x" ];then channel="$2"; else return 1; fi 

# note use of '-' in '-EOF1' - Escapes tab at beginning of lines 

    CALLFILE=$(cat <<-EOF1
 Channel: ZAP/$channel/50000
 Callerid: $mailbox 
 MaxRetries: 2 
 RetryTime: 120 
 WaitTime: 30 
 
 Context: loadtest 
 Extension: 0 
 Priority: 1 
EOF1) 

    echo "$CALLFILE" >> "$CALL_TMP_DIR"/callfile$mailbox-$(date +%s)

}


i=5501
j=5530

while [ $i -le $j ] 
  do
    make_callfile "$i" "g4"
    `mv callfile$i-* $CALL_SPOOL_DIR`
    echo "file$i generated!" 
    i=`expr $i + 1`
  done 


i=5601
j=5630

while [ $i -le $j ] 
  do
    make_callfile "$i" "g2"
    `mv callfile$i-* $CALL_SPOOL_DIR`
    echo "file$i generated!" 
    i=`expr $i + 1`
  done 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20050330/b5816f38/attachment.htm


More information about the asterisk-dev mailing list