mondain / red5phone

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

Failed to establish a call between Red5Phone and X-Lite SIP Phone #195

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Both Red5Phone user and X-Lite user are registered successfully on Asterisk. 
(sip.conf and extensions.conf have been configured.)
2. When dialing from Red5Phone to an X-Lite user, it does not get through. 
3. When dialing from X-Lite to a Red5Phone user, the incoming call is received, 
and when "answer" button is clicked, the button turns "transfer", and call 
failed to establish.

What is the expected output? What do you see instead?
1. I expect to establish a call between Red5Phone and X-Lite in both directions.
2. I got failed to establish a call error. (Log errors are provided below.)

What version of the product are you using? On what operating system?
1. Asterisk 1.6.2.24 
2. CentOS 5.8
3. Red5 1.0.1
4. Red5SIP server - red5_1.0_compatibility
5. Red5Phone Client - /svn/branch/improvements/sip/flex

Please provide any additional information below.

1. Log error when dialing on Red5Phone (4002) to call X-Lite (4003) user
   (No ringing signal at X-Lite)
    a. red5.log
2013-07-08 11:32:25,777 [NioProcessor-2] INFO  
o.r.c.n.rtmp.BaseRTMPClientHandler - Connection was null
2013-07-08 11:32:25,777 [NioProcessor-2] INFO  
o.red5.sip.net.rtmp.RTMPRoomClient - service call result: Service: null Method: 
getPublicSID No params
2013-07-08 11:32:25,777 [NioProcessor-2] INFO  
o.red5.sip.net.rtmp.RTMPRoomClient - getPublicSID
2013-07-08 11:32:25,777 [NioProcessor-2] INFO  
o.r.c.n.rtmp.BaseRTMPClientHandler - Connection was null
2013-07-08 11:32:25,777 [NioProcessor-2] INFO  
o.red5.sip.net.rtmp.RTMPRoomClient - service call result: Service: null Method: 
getBroadCastId No params
2013-07-08 11:32:25,777 [NioProcessor-2] INFO  
o.red5.sip.net.rtmp.RTMPRoomClient - getBroadCastId

   b.sip.log

2013-07-08 11:33:22,187 [NioProcessor-2] INFO  org.red5.sip.webapp.Application 
- Red5SIP Call 4003
2013-07-08 11:33:22,187 [NioProcessor-2] INFO  org.red5.sip.webapp.Application 
- Red5SIP Call found user 7CCE681D-13E6-A137-D4D0-BBD252DB48A2 making call to 
4003
2013-07-08 11:33:22,187 [NioProcessor-2] DEBUG org.red5.sip.SIPTransport - 
Calling 4003
2013-07-08 11:33:22,188 [NioProcessor-2] DEBUG org.red5.sip.SIPTransport - 
call: Exception:>
java.lang.NullPointerException

     c. asterisk debug
       --- no debug info ----

2. Log error when dialing on X-Lite(4003) to call Red5Phone(4002) user
   (Red5Phone rings, and when "answer" button is clicked, it turns to "transfer", and failed to establish a call error is shown on X-Lite.)

   a. red5.log

2013-07-08 11:47:08,276 [NioProcessor-3] INFO  
o.r.s.n.r.codec.RTMPProtocolDecoder - Action _result
2013-07-08 11:47:21,622 [NioProcessor-3] INFO  
o.r.s.n.r.codec.RTMPProtocolDecoder - Action accept
2013-07-08 11:47:21,623 [NioProcessor-3] INFO  
o.r.c.n.rtmp.BaseRTMPClientHandler - Connection was null
2013-07-08 11:47:21,623 [NioProcessor-3] INFO  
o.red5.sip.net.rtmp.RTMPRoomClient - service call result: Service: null Method: 
getPublicSID No params
2013-07-08 11:47:21,623 [NioProcessor-3] INFO  
o.red5.sip.net.rtmp.RTMPRoomClient - getPublicSID
2013-07-08 11:47:21,623 [NioProcessor-3] INFO  
o.r.c.n.rtmp.BaseRTMPClientHandler - Connection was null
2013-07-08 11:47:21,623 [NioProcessor-3] INFO  
o.red5.sip.net.rtmp.RTMPRoomClient - service call result: Service: null Method: 
getBroadCastId No params
2013-07-08 11:47:21,623 [NioProcessor-3] INFO  
o.red5.sip.net.rtmp.RTMPRoomClient - getBroadCastId

  b. sip.log

2013-07-08 11:48:37,248 [Thread-61] DEBUG org.red5.sip.SIPTransport - 
onUaCallIncoming sip:4003@1xx.1xx.0xx.1xx sip:4002@127.0.0.1:5071
2013-07-08 11:48:46,153 [NioProcessor-3] INFO  org.red5.sip.webapp.Application 
- Red5SIP Accept
2013-07-08 11:48:46,153 [NioProcessor-3] DEBUG org.red5.sip.SIPTransport - 
accept
2013-07-08 11:48:46,153 [NioProcessor-3] DEBUG org.red5.sip.SIPTransport - 
accept - Exception:>
java.lang.NullPointerException

  c. asterisk debug 

  == Using SIP RTP CoS mark 5
    -- Executing [4002@users:1] Dial("SIP/4003-00000014", "SIP/4002,20") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 4002
    -- SIP/4002-00000015 is ringing
    -- Nobody picked up in 20000 ms
    -- Auto fallthrough, channel 'SIP/4003-00000014' status is 'NOANSWER'

Can anybody please direct me any misconfiguration or a solution to this 
problem? 

Thank you.

Original issue reported on code.google.com by ajber...@gmail.com on 8 Jul 2013 at 2:52