[HELP] Capacity planning and Stress loading with SIPp


#1

Hi,

the CLI show “Failed to lock path…” when I used SIPp to simulate concurrent calls at 4 calls/sec. Calls to voicemail were subsequently dropped. By lowering different options, the message can be removed and all calls were recorded. Wonder if this is a sign of overloading? Or are there any change(s) to be made to Asterisk or the OS?

I had compiled SIPp on Slackware 10.2 with “make pcapplay”. The following command:


./sipp -sn uac_pcap -nr -l 20 -s vm -r 4 -i 192.168.0.143 -p 5068 -m 20 -mp 8008 -mi 192.168.0.143 192.168.0.52 -trace_err


produced


In pcap pcap/g711a.pcap, npkts 236
max pkt length 260
base port 2006
In pcap pcap/dtmf_2833_1.pcap, npkts 10
max pkt length 24
base port 10000
Resolving remote host ‘192.168.0.52’… Done.
------------------------------ Scenario Screen -------- [1-4]: Change Screen –
Call-rate(length) Port Total-time Total-calls Remote-host
4.0(0 ms)/1.000s 5068 14.27 s 20 192.168.0.52:5060(UDP)

Call limit reached (-m 20), 0.187 s period 17 ms scheduler resolution
0 concurrent calls (limit 20) Peak was 20 calls, after 5 s
0 out-of-call msg (discarded)
1 open sockets
4902 Total RTP pckts 0.000 last period RTP rate (kB/s)

                             Messages  Retrans   Timeout   Unexpected-Msg
  INVITE ---------->         20        0         0
     100 <----------         20        0                   0
     180 <----------         0         0                   0
     200 <---------- E-RTD   20        0                   0

     ACK ---------->         20        0
          [ NOP ]
   Pause [   8000ms]         20                            4
          [ NOP ]
   Pause [   1000ms]         16                            0
     BYE ---------->         16        0         0
     200 <----------         16        0                   0

------------------------------ Test Terminated --------------------------------

----------------------------- Statistics Screen ------- [1-4]: Change Screen –
Start Time | 2006-03-27 14:52:41
Last Reset Time | 2006-03-27 14:52:55
Current Time | 2006-03-27 14:52:55
-------------------------±--------------------------±-------------------------
Counter Name | Periodic value | Cumulative value
-------------------------±--------------------------±-------------------------
Elapsed Time | 00:00:00:189 | 00:00:14:303
Call Rate | 0.000 cps | 1.398 cps
-------------------------±--------------------------±-------------------------
Incoming call created | 0 | 0
OutGoing call created | 0 | 20
Total Call created | | 20
Current Call | 0 |
-------------------------±--------------------------±-------------------------
Successful call | 1 | 16
Failed call | 0 | 4
-------------------------±--------------------------±-------------------------
Response Time | 00:00:00:000 | 00:00:00:011
Call Length | 00:00:09:260 | 00:00:08:319
------------------------------ Test Terminated --------------------------------

2006-03-27 14:52:49: Aborting call on an unexpected BYE for call: 13-2755@192.168.0.143.
sipp: There were more errors, see scenarioname_pid_errors.log file


I am running Asterisk 1.2.5 and the extension for the targeted voicemail is as follows:


exten => vm,1,Voicemail(svm)
exten => vm,2,Hangup


Below is the CLI output -


-- Executing VoiceMail("SIP/5068-87851000", "svm") in new stack
-- Playing 'beep' (language 'en')
-- Executing VoiceMail("SIP/5068-8738c000", "svm") in new stack
-- Recording the message
-- x=0, open writing:  /var/spool/asterisk/voicemail/default/vm/INBOX/msg0016 format: gsm, 0x82cc8400
-- Playing 'beep' (language 'en')
-- Executing VoiceMail("SIP/5068-8be8f000", "svm") in new stack
-- Executing VoiceMail("SIP/5068-7e055000", "svm") in new stack
-- Executing VoiceMail("SIP/5068-7cd41000", "svm") in new stack
-- Recording the message
-- x=0, open writing:  /var/spool/asterisk/voicemail/default/vm/INBOX/msg0017 format: gsm, 0x82cc8600
-- Playing 'beep' (language 'en')
-- Executing VoiceMail("SIP/5068-826a8000", "svm") in new stack
-- Executing VoiceMail("SIP/5068-7de11000", "svm") in new stack
-- Recording the message
-- x=0, open writing:  /var/spool/asterisk/voicemail/default/vm/INBOX/msg0018 format: gsm, 0x82cc8800
-- Playing 'beep' (language 'en')
-- Executing VoiceMail("SIP/5068-89494000", "svm") in new stack
-- Executing VoiceMail("SIP/5068-7d175000", "svm") in new stack
-- Recording the message
-- x=0, open writing:  /var/spool/asterisk/voicemail/default/vm/INBOX/msg0019 format: gsm, 0x82cc8a00
-- Playing 'beep' (language 'en')
-- Executing VoiceMail("SIP/5068-8436a000", "svm") in new stack
-- Executing VoiceMail("SIP/5068-8bc85000", "svm") in new stack
-- Recording the message
-- x=0, open writing:  /var/spool/asterisk/voicemail/default/vm/INBOX/msg0020 format: gsm, 0x82cc8c00
-- Playing 'beep' (language 'en')
-- Executing VoiceMail("SIP/5068-8bc8b000", "svm") in new stack
-- Executing VoiceMail("SIP/5068-8688a000", "svm") in new stack
-- Recording the message
-- x=0, open writing:  /var/spool/asterisk/voicemail/default/vm/INBOX/msg0021 format: gsm, 0x82cc8e00
-- Playing 'beep' (language 'en')
-- Executing VoiceMail("SIP/5068-7e5a0000", "svm") in new stack
-- Executing VoiceMail("SIP/5068-8a004000", "svm") in new stack
-- Recording the message
-- x=0, open writing:  /var/spool/asterisk/voicemail/default/vm/INBOX/msg0022 format: gsm, 0x7ed5e000
-- Executing VoiceMail("SIP/5068-83c8e000", "svm") in new stack
-- Playing 'beep' (language 'en')
-- Executing VoiceMail("SIP/5068-8887a000", "svm") in new stack
-- Executing VoiceMail("SIP/5068-837d5000", "svm") in new stack
-- Recording the message
-- x=0, open writing:  /var/spool/asterisk/voicemail/default/vm/INBOX/msg0023 format: gsm, 0x7ed5e200
-- Playing 'beep' (language 'en')
-- Executing VoiceMail("SIP/5068-84474000", "svm") in new stack
-- Executing VoiceMail("SIP/5068-86b6b000", "svm") in new stack
-- Recording the message
-- x=0, open writing:  /var/spool/asterisk/voicemail/default/vm/INBOX/msg0024 format: gsm, 0x7ed5e400
-- Playing 'beep' (language 'en')
-- Recording the message
-- x=0, open writing:  /var/spool/asterisk/voicemail/default/vm/INBOX/msg0025 format: gsm, 0x7ed5e600

Mar 27 14:52:46 WARNING[21610]: app.c:1166 ast_lock_path: Failed to lock path ‘/var/spool/asterisk/voicemail/default/vm/INBOX’: File exists
– Playing ‘beep’ (language ‘en’)
Mar 27 14:52:47 ERROR[21610]: app_voicemail.c:5560 vm_exec: Could not leave voicemail. The path is already locked.
– Executing Hangup(“SIP/5068-89494000”, “”) in new stack
– Recording the message
– x=0, open writing: /var/spool/asterisk/voicemail/default/vm/INBOX/msg0027 format: gsm, 0x7ed5ea00
– Playing ‘beep’ (language ‘en’)
– Recording the message
– x=0, open writing: /var/spool/asterisk/voicemail/default/vm/INBOX/msg0028 format: gsm, 0x7ed5ec00
– Playing ‘beep’ (language ‘en’)
Mar 27 14:52:48 WARNING[21610]: app.c:1166 ast_lock_path: Failed to lock path ‘/var/spool/asterisk/voicemail/default/vm/INBOX’: File exists
Mar 27 14:52:48 ERROR[21610]: app_voicemail.c:5560 vm_exec: Could not leave voicemail. The path is already locked.
– Executing Hangup(“SIP/5068-8bc8b000”, “”) in new stack
Mar 27 14:52:48 WARNING[21610]: app.c:1166 ast_lock_path: Failed to lock path ‘/var/spool/asterisk/voicemail/default/vm/INBOX’: File exists
Mar 27 14:52:48 ERROR[21610]: app_voicemail.c:5560 vm_exec: Could not leave voicemail. The path is already locked.
– Executing Hangup(“SIP/5068-8688a000”, “”) in new stack
– Recording the message
– x=0, open writing: /var/spool/asterisk/voicemail/default/vm/INBOX/msg0029 format: gsm, 0x7ed5ee00
– Playing ‘beep’ (language ‘en’)
– Recording the message
– x=0, open writing: /var/spool/asterisk/voicemail/default/vm/INBOX/msg0030 format: gsm, 0x7f330000
– Playing ‘beep’ (language ‘en’)
– Recording the message
– x=0, open writing: /var/spool/asterisk/voicemail/default/vm/INBOX/msg0031 format: gsm, 0x7f330200
– User hung up
– User hung up
– User hung up
– User hung up
– User hung up
– User hung up
– User hung up
– User hung up
– User hung up
– User hung up
– User hung up
– User hung up
– User hung up
– User hung up
– User hung up
– User hung up


Appreciate any advice.

Regards