Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
I have the same problem. Did you solve this issue?

Original comment by [email protected] on 25 Jun 2009 at 2:57

from red5phone.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Seems like I'm hitting also the same problem. Are you running on Linux/Ubuntu?

For me, everything works fine when Red5 is on Windows. But when I move it to 
Ubuntu, 
REGISTER works but when I make a call I get the following,

====
SIPUser register
RegisterAgent: Registering contact <sip:[email protected]:5070> (it expires in 
3600 
secs)
RegisterAgent: Attempt to set renew time above original renew. Attempted=3600 
origrenew=600
Response=SIP/2.0 200 OK
Via: SIP/2.0/UDP 
127.0.0.1:5070;branch=z9hG4bK34861;received=192.168.0.184;rport=5070
From: "Richard Test" <sip:[email protected]>;tag=z9hG4bK85257171
To: "Richard Test" <sip:[email protected]>;tag=as6bdc5114
Call-ID: [email protected]
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Expires: 3600
Contact: <sip:[email protected]:5070>;expires=3600
Date: Fri, 26 Jun 2009 14:44:25 GMT
Content-Length: 0


RegisterAgent: Registration success:
SIP Registration success 200 OK
SIPUser Calling 600
RTMPUser startStream
[DEBUG] [NioProcessor-1] org.red5.server.net.rtmp.BaseRTMPClientHandler - 
connect 
server: localhost port 1935 application sip connectCallback 
org.red5.server.webapp.sip.RTMPUser@1497b1
[DEBUG] [NioProcessor-1] org.red5.server.net.rtmp.BaseRTMPClientHandler - 
connect 
server: localhost port 1935 connectionParams {objectEncoding=0, app=sip, 
flashVer=WIN 9,0,115,0, fpad=false, tcUrl=rtmp://localhost:1935/sip, 
audioCodecs=1639, videoFunction=1, pageUrl=null, path=sip, capabilities=15, 
swfUrl=null, videoCodecs=252} connectCallback 
org.red5.server.webapp.sip.RTMPUser@1497b1 conectCallArguments null

===

600 is my echo test application....I just hear ringing but on my Asterisk 
console, I 
can't see the call coming in.

It seems that Red5 hangs when the RTMPClient tries to connect back (loopback) 
into 
the sip application.

After a while, Red5 disconnects the RTMPConnection...

====

[WARN] [Red5_Scheduler_Worker-11] org.red5.server.net.rtmp.RTMPConnection - 
Closing 
RTMPMinaConnection from 192.168.0.199 : 63374 to 192.168.0.184 (in: 3590 out 
3370 ), 
with id 15164472, due to too much inactivity (60999ms), last ping sent 1000ms 
ago
[INFO] [Red5_Scheduler_Worker-11] 
org.red5.server.adapter.MultiThreadedApplicationAdapter - W3C 
x-category:session x-
event:disconnect c-ip:192.168.0.199 c-client-id:0
SIPUser close1
SIPUser hangup
SIPUser closeStreams
RTMPUser stopStream
[DEBUG] [Red5_Scheduler_Worker-11] 
org.red5.server.net.rtmp.BaseRTMPClientHandler - 
disconnect
SIPUser unregister
RegisterAgent: Unregistering contact <sip:[email protected]:5070>
[DEBUG] [NioProcessor-2] org.red5.server.net.rtmp.BaseRTMPClientHandler - 
connectionClosed
RegisterAgent: Registration success:
SIP Registration success 200 OK
SipUserAgent - hangup -> Init...
SipUserAgent - closeMediaApplication -> Init...
SIPUser provider.halt
=====

And Red5 server hangs/dies...can't connect any client to it anymore.

Anybody care to share there experiences/findings?

Original comment by [email protected] on 26 Jun 2009 at 3:06

from red5phone.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
I'm running on Open SUSE Linux, but on Windows it works fine.

Original comment by [email protected] on 26 Jun 2009 at 8:20

from red5phone.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
I rebuilt Red5 and Red5Phone on Linux SUSE and Ubuntu, but I'm still facing this
problem. 

Original comment by [email protected] on 3 Jul 2009 at 6:30

from red5phone.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
I think the problem is here starting in line 142 of RTMPUser


        try {
            connect( host, port, app, this );

            //while ( !startPublish ) {
            //   Thread.yield();
            //}
        }
        catch ( Exception e ) {
            logger.error( "RTMPUser startStream exception " + e );
        }

There is no need to wait anymore after a connect.


Original comment by [email protected] on 11 Jul 2009 at 10:05

from red5phone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.