In the great asterisk11 (11.15.0-1) as available from the raspbx repository, there's a terrible bug between chan-unistim and asterisk. This is NOT with asterisk11 itself.
When using a single, or many Nortel i2002 (or i2004) sets, the rtp port settings as in rtp.conf are utilised. I note the setting "rtptimeout=10" is used in this test.
When any set which uses chan_unistim.so (unistim.conf) (Nortel i2002's in this case) is finished with it's session or call etc, the two UDP ports used for RTP+RTCP are NOT released when the call is finished, and are always left with data still in the queue.
These UDP port pairs are never released (until an asterisk stop-start,) eventually depleting the available port range. This can be demonstrated by setting the range to something low like rtpstart=10000 and rtpend=10064, and repeatedly dialing voicemail and releasing the call.. the sets eventually lose all audio as the UDP ports are all hung.
This behaviour can be reproduced over and over. netstat -l on the system shows the suspect ports sitting around.
I note the timeout works as expected for SIP calls out to a SIP provider in my case, and these port-pairs are immediately released after call tear-down.
I believe this to be an issue with the chan_unistim.so module.
I have tried to contact the unistim maintainer to no avail sadly.
Nortel i2002, i2004, i2007 etc. which are supported by this driver are increasingly ppearing in the second hand market, and are immensely superior for audio and build quality over sets costing hundreds more. It's sad that nobody seems to have seen or commented on this yet, as these and Asterisk make a serious hard-wearing system which rivals the Nortel BCM50 we currently use in so many ways.
If anyone has any ideas..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Jason,
I setup raspbx with Asterisk 11.17.0 and i d'nt see unstim.conf any more and also debug for unistim in asreisk console. Previously, 2 years ago i was able to connect 1140 sets with unistim without any problem.
I just check that to duplicate the problem of RTP port not release because i am interested in using asterisk as a backup of cS1000E (BCM etc..) pbx.
What is my mistake?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The latest image with FreePBX 12 does no longer provide some of the Asterisk sample config files, including unistim.conf. There was an issue with FreePBX 12 so I had to delete them. The files will be provided again in a different directory with the next Asterisk version update. In the meantime you can download this archive: http://repo.raspbx.org/download/configs.zip
Unpack the archive, rename unistim.conf.sample to unistim.conf any copy it to /etc/asterisk.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the great asterisk11 (11.15.0-1) as available from the raspbx repository, there's a terrible bug between chan-unistim and asterisk. This is NOT with asterisk11 itself.
When using a single, or many Nortel i2002 (or i2004) sets, the rtp port settings as in rtp.conf are utilised. I note the setting "rtptimeout=10" is used in this test.
When any set which uses chan_unistim.so (unistim.conf) (Nortel i2002's in this case) is finished with it's session or call etc, the two UDP ports used for RTP+RTCP are NOT released when the call is finished, and are always left with data still in the queue.
These UDP port pairs are never released (until an asterisk stop-start,) eventually depleting the available port range. This can be demonstrated by setting the range to something low like rtpstart=10000 and rtpend=10064, and repeatedly dialing voicemail and releasing the call.. the sets eventually lose all audio as the UDP ports are all hung.
This behaviour can be reproduced over and over. netstat -l on the system shows the suspect ports sitting around.
I note the timeout works as expected for SIP calls out to a SIP provider in my case, and these port-pairs are immediately released after call tear-down.
I believe this to be an issue with the chan_unistim.so module.
I have tried to contact the unistim maintainer to no avail sadly.
Nortel i2002, i2004, i2007 etc. which are supported by this driver are increasingly ppearing in the second hand market, and are immensely superior for audio and build quality over sets costing hundreds more. It's sad that nobody seems to have seen or commented on this yet, as these and Asterisk make a serious hard-wearing system which rivals the Nortel BCM50 we currently use in so many ways.
If anyone has any ideas..
Jason,
I setup raspbx with Asterisk 11.17.0 and i d'nt see unstim.conf any more and also debug for unistim in asreisk console. Previously, 2 years ago i was able to connect 1140 sets with unistim without any problem.
I just check that to duplicate the problem of RTP port not release because i am interested in using asterisk as a backup of cS1000E (BCM etc..) pbx.
What is my mistake?
The latest image with FreePBX 12 does no longer provide some of the Asterisk sample config files, including unistim.conf. There was an issue with FreePBX 12 so I had to delete them. The files will be provided again in a different directory with the next Asterisk version update. In the meantime you can download this archive:
http://repo.raspbx.org/download/configs.zip
Unpack the archive, rename unistim.conf.sample to unistim.conf any copy it to /etc/asterisk.