sksushilkumar / red5phone

Automatically exported from code.google.com/p/red5phone
0 stars 0 forks source link

RED5 doesn't properly Unregister peers from SIP proxy #126

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I setup a testing environment to test red5phone with many peers.
I created a self-reloading webpage (30 seconds) with a javascript red5phone on 
it, which auto-logins and registers with a dynamic peer name.
(fon1 - fon100). Every 30 seconds a new red5phone was generated, logged in, 
registered and dialed an extension on asterisk. After one night of testing 
(about 8 hours) registration fails for many of the 100 peers, because asterisk 
thinks, they are still registered. (actuaslly there was only one single 
red5phone 1-100 active all time) there are even many calls active to not 
existent red5phones.

What is the expected output? What do you see instead?

server part of red5phone should unregister a peer when the corresponding 
red5phone is not there anymore.

What version of the product are you using? On what operating system?

latest r40 (javascript)
latest red5 (0.9.1)

Please provide any additional information below.

Attached are some logs from asterisk after 8 hours

Original issue reported on code.google.com by g1dan...@googlemail.com on 9 Sep 2010 at 9:47

Attachments:

GoogleCodeExporter commented 9 years ago
This is the output from RED5:

[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
RegisterAgent: Registering contact <sip:fon72@127.0.1.1:5924> (it expires in 
3600 secs)
RegisterAgent: Registering contact <sip:fon73@127.0.1.1:5926> (it expires in 
3600 secs)
RegisterAgent: Registering contact <sip:fon73@127.0.1.1:5926> (it expires in 
3600 secs)
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
RegisterAgent: Registering contact <sip:fon76@127.0.1.1:5932> (it expires in 
3600 secs)
RegisterAgent: Registering contact <sip:fon77@127.0.1.1:5934> (it expires in 
3600 secs)
RegisterAgent: Registering contact <sip:fon77@127.0.1.1:5934> (it expires in 
3600 secs)
RegisterAgent: Registering contact <sip:fon78@127.0.1.1:5936> (it expires in 
3600 secs)
RegisterAgent: Registering contact <sip:fon78@127.0.1.1:5936> (it expires in 
3600 secs)
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
RegisterAgent: Registering contact <sip:fon80@127.0.1.1:5940> (it expires in 
3600 secs)
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
RegisterAgent: Registering contact <sip:fon81@127.0.1.1:5942> (it expires in 
3600 secs)
RegisterAgent: Registering contact <sip:fon82@127.0.1.1:5944> (it expires in 
3600 secs)
RegisterAgent: Registering contact <sip:fon82@127.0.1.1:5944> (it expires in 
3600 secs)
RegisterAgent: Registering contact <sip:fon82@127.0.1.1:5944> (it expires in 
3600 secs)
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
RegisterAgent: Registration failure: No response from server.
RegisterAgent: Failed Registration stop try.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.
RegisterAgent: Registration failure: No response from server.
[SIPUser] SIP Registration failure Timeout
RegisterAgent: Failed Registration stop try.

Original comment by g1dan...@googlemail.com on 9 Sep 2010 at 10:15

GoogleCodeExporter commented 9 years ago
And here the asterisk sip peers....

[fon1]
type=friend   
username=fon1  
secret=1
nat=no
host=dynamic
canreinvite=no
context=soft-in
dtmfmode=rfc2833
qualify=yes

.
.
.

[fon100]
type=friend   
username=fon100 
secret=100
nat=no
host=dynamic
canreinvite=no
context=soft-in
dtmfmode=rfc2833
qualify=yes

I can provide further details when needed. Would be very cool to point me to a 
solution for this issue, as it makes red5phone unstable and unusable for a 
larger setup.

Original comment by g1dan...@googlemail.com on 9 Sep 2010 at 10:18

GoogleCodeExporter commented 9 years ago
I did some further research and found the Red5 Error log flooded with messages 
like these:

2010-09-09 11:30:43,200 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:30:55,443 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:31:08,332 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:31:20,571 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:31:33,455 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:31:44,728 [NioProcessor-1] ERROR 
o.r.server.net.rtmp.RTMPHandshake - Unable to validate client
2010-09-09 11:31:58,708 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:32:11,074 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:32:22,668 [NioProcessor-1] ERROR 
o.r.server.net.rtmp.RTMPHandshake - Unable to validate client
2010-09-09 11:32:35,964 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:32:48,862 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:33:03,495 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:33:16,019 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:33:29,152 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:33:42,180 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:33:55,671 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:34:10,618 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:34:23,429 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:34:36,699 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:34:49,595 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:35:02,705 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:35:15,759 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:35:25,221 [NioProcessor-1] ERROR 
o.r.server.net.rtmp.RTMPHandshake - Unable to validate client
2010-09-09 11:35:44,817 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:35:57,006 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:36:09,427 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:36:22,152 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:36:34,352 [NioProcessor-1] ERROR 
o.r.server.net.rtmp.RTMPHandshake - Unable to validate client
2010-09-09 11:36:47,308 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:36:59,712 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:37:12,464 [NioProcessor-1] ERROR 
org.red5.server.webapp.sip.RTMPUser - RTMPUser stopStream exception 
java.lang.NullPointerException
2010-09-09 11:37:24,102 [NioProcessor-1] ERROR 
o.r.server.net.rtmp.RTMPHandshake - Unable to validate client
2010-09-09 11:37:39,521 [Red5_Scheduler_Worker-4] WARN  
o.r.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from 
192.168.0.5 : 46547 to null (in
2010-09-09 15:46:56,717 [NioProcessor-1] ERROR 
o.r.server.net.rtmp.RTMPHandshake - Unable to validate client
2010-09-09 15:47:28,011 [NioProcessor-1] ERROR 
o.r.server.net.rtmp.RTMPHandshake - Unable to validate client
2010-09-09 15:49:15,187 [NioProcessor-1] ERROR 
o.r.server.net.rtmp.RTMPHandshake - Unable to validate client

Original comment by g1dan...@googlemail.com on 15 Sep 2010 at 12:54

GoogleCodeExporter commented 9 years ago
Attached are the events.log and messages.log from one failing session, also 
with many Java Exceptions.....

Original comment by g1dan...@googlemail.com on 15 Sep 2010 at 1:03

Attachments:

GoogleCodeExporter commented 9 years ago
Hi. Did you solve it? I have the same
[ERROR] [NioProcessor-1] org.red5.server.net.rtmp.RTMPHandshake - Unable to 
validate client
error.
Thanks.

Original comment by pozsarba...@gmail.com on 11 Nov 2010 at 6:25