[asterisk-bugs] [Asterisk 0018855]: Asterisk hangs when generating SIP calls with sipp
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Feb 21 07:20:12 CST 2011
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18855
======================================================================
Reported By: nbhatti
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18855
Category: Core/General
Reproducibility: always
Severity: major
Priority: normal
Status: new
Asterisk Version: 1.6.2.16.1
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2011-02-21 03:59 CST
Last Modified: 2011-02-21 07:20 CST
======================================================================
Summary: Asterisk hangs when generating SIP calls with sipp
Description:
Hello, I have the following specs:
=============
Linux voip 2.6.32-4-pve https://issues.asterisk.org/view.php?id=1 SMP Wed Dec 15
14:04:31 CET 2010 x86_64
GNU/Linux
# cat /etc/debian_version
6.0
# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 19096
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
=============
Asterisk 1.6.2.16.1
and also have tried with 1.8.2.3, both reported the same results.
Asterisk hangs when I try to generate calls with sipp. I am using simple
UAC testing with a max call limit of 20, sipp -sn uac -d 2000 -s 2005
192.168.1.100 -l 20. After a few seconds Asterisk simply hangs. (or if
there is any better word to describe the situation). In this state, it
won't accept any SIP calls, now core or sip command will work through CLI.
Even, core restart now won't result in any action. The only solution would
be a kill -9. I reproduced this many times same environment. My asterisk
configuration is very simple and minimal.
======================
cat sip_additional.conf
[sipp]
type=friend
context=sipp
host=dynamic
port=6000
user=sipp
canreinvite=no
disallow=all
allow=ulaw
======================
cat extensions.conf
[sipp]
exten => 2005,1,Answer
exten => 2005,2,SetMusicOnHold(default)
exten => 2005,3,WaitMusicOnHold(10)
exten => 2005,4,Hangup
======================
cat sip.conf
[general]
context=from-sip-external
callerid=Unknown
notifyhold=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
alwaysauthreject=yes
useragent=MyAgent(1.0)
disallow=all
allow=g723
allow=g729
callevents=no
jbenable=no
maxexpiry=3600
defaultexpiry=120
minexpiry=60
allowguest=yes
srvlookup=no
registerattempts=0
registertimeout=6
g726nonstandard=no
t38pt_udptl=no
videosupport=no
maxcallbitrate=384
canreinvite=no
rtptimeout=7
notifyhold=yes
rtpkeepalive=0
notifyringing=yes
checkmwi=10
rtpholdtimeout=50
nat=yes
tcpenable=no
preferred_codec_only=yes
language=en
===============
If someone would like to login at the time of crash if this is not
reproducible on your machine, I am help with that as well. Let me know if
any more information is required.
======================================================================
----------------------------------------------------------------------
(0132234) loloski (reporter) - 2011-02-21 07:20
https://issues.asterisk.org/view.php?id=18855#c132234
----------------------------------------------------------------------
Confirmed on Ubuntu Lucid, 10.04 with slight modification on the dialplan
of original reporter.
[sipp]
exten => 9999,1,Progress
same => n,Ringing
same => n,Answer
same => n,SetMusicOnHold(default)
same => n,WaitMusicOnHold(10)
same => n,Hangup
root at pbx:/usr/src/1.6.2# sipp -sn uac -d 20000 -s 9999 192.168.0.101 -l 10
-r 2
Resolving remote host '192.168.0.101'... Done.
------------------------------ Scenario Screen -------- [1-9]: Change
Screen --
Call-rate(length) Port Total-time Total-calls Remote-host
2.0(20000 ms)/1.000s 5061 82.11 s 70
192.168.0.101:5060(UDP)
0 new calls during 0.000 s period 0 ms scheduler resolution
0 calls (limit 10) Peak was 10 calls, after 5 s
0 Running, 3 Paused, 0 Woken up
0 dead call msg (discarded) 0 out-of-call msg (discarded)
1 open sockets
Messages Retrans Timeout
Unexpected-Msg
INVITE ----------> 70 0 0
100 <---------- 70 0 0 0
180 <---------- 70 0 0 0
183 <---------- 70 0 0 0
200 <---------- E-RTD1 70 0 0 0
ACK ----------> 70 0
Pause [ 20.0s] 70 70
BYE ----------> 0 0 0
200 <---------- 0 0 0 0
------------------------------ Test Terminated
--------------------------------
----------------------------- Statistics Screen ------- [1-9]: Change
Screen --
Start Time | 2011-02-21 21:14:17:271 1298294057.271347
Last Reset Time | 2011-02-21 21:15:39:421 1298294139.421655
Current Time | 2011-02-21 21:15:39:422 1298294139.422035
-------------------------+---------------------------+--------------------------
Counter Name | Periodic value | Cumulative value
-------------------------+---------------------------+--------------------------
Elapsed Time | 00:00:00:000 | 00:01:22:150
Call Rate | 0.000 cps | 0.852 cps
-------------------------+---------------------------+--------------------------
Incoming call created | 0 | 0
OutGoing call created | 0 | 70
Total Call created | | 70
Current Call | 0 |
-------------------------+---------------------------+--------------------------
Successful call | 0 | 0
Failed call | 0 | 70
-------------------------+---------------------------+--------------------------
Response Time 1 | 00:00:00:000 | 00:00:00:012
Call Length | 00:00:00:000 | 00:00:11:021
------------------------------ Test Terminated
--------------------------------
2011-02-21 21:15:39:419 1298294139.419697: Aborting call on an unexpected
BYE for call: 70-15431 at 127.0.1.1.
sipp: There were more errors, enable -trace_err to log them.
Issue History
Date Modified Username Field Change
======================================================================
2011-02-21 07:20 loloski Note Added: 0132234
======================================================================
More information about the asterisk-bugs
mailing list