JagannathS / webrtc2sip

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

wrong RTP/RTCP Manager binding #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Everyone,

1) Here is my network configuration:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue 
state UNKNOWN
    link/void
    inet 127.0.0.2/32 scope host venet0
    inet 184.75.xx.xx/32 scope global venet0:0

2) Here is extract from my webrtc2sip config:
  <debug-level>INFO</debug-level>
  <transport>udp;184.75.242.85;10060</transport>
  <transport>ws;184.75.242.85;10060</transport>

3) Here is the full initial screen after I run webrtc2sip:

*******************************************************************
Copyright (C) 2012-2013 Doubango Telecom <http://www.doubango.org>
PRODUCT: webrtc2sip
HOME PAGE: http://webrtc2sip.org
LICENCE: GPLv3 or proprietary
VERSION: 2.5.0
'quit' to quit the application.
*******************************************************************

SSL is enabled :)
DTLS supported: yes
DTLS-SRTP supported: yes
*INFO: transport = udp://184.75.xx.xx:10060
*INFO: transport = ws://184.75.xx.xx:10060
*INFO: enable-rtp-symetric = yes
*INFO: enable-100rel = no
*INFO: enable-media-coder = no
*INFO: enable-videojb = no
*INFO: video-size-pref = vga
*INFO: rtp-buffsize = 65535
*INFO: avpf-tail-length = [100-400]
*INFO: srtp-mode = optional
*INFO: srtp-type = sdes;dtls
*INFO: codecs = gsm;pcma;pcmu
*INFO: Stack running in SERVER mode
*INFO: tsk_timer_manager_start
*INFO: tnet_transport_prepare()
*INFO: pipeR fd=5
*INFO: Socket added[SIP transport]: fd=5, tail.count=1
*INFO: master fd=3
*INFO: Socket added[SIP transport]: fd=3, tail.count=2
*INFO: tnet_transport_prepare()
*INFO: pipeR fd=7
*INFO: Socket added[SIP transport]: fd=7, tail.count=1
*INFO: master fd=4
*INFO: Socket added[SIP transport]: fd=4, tail.count=2
*INFO: SIP STACK -- START
*INFO: Timer manager run()::enter
*INFO: SIP STACK::run -- START
*INFO: Transport::run() - enter
*INFO: Transport::run() - enter
*INFO: TIMER MANAGER -- START
*INFO: Starting [SIP transport] server with IP {184.75.xx.xx} on port {10060} 
using fd {3} with type {2}...
*INFO: Starting [SIP transport] server with IP {184.75.xx.xx} on port {10060} 
using fd {4} with type {64}...

4) here is the running service:
tcp        0      0 184.75.xx.xx:10060     0.0.0.0:*               LISTEN      
8023/webrtc2sip
udp        0      0 184.75.xx.xx:10060     0.0.0.0:*                           
8023/webrtc2sip

5) So, the actual issue - when I initiate a call trough the SIPML.js, I get on 
the webrtc2sip log:
*INFO: Socket added[RTP/RTCP Manager]: fd=15, tail.count=1
*INFO: master fd=10
*INFO: Socket added[RTP/RTCP Manager]: fd=10, tail.count=2
warning: The VAD has been replaced by a hack pending a complete rewrite
*INFO: State machine: ICE_Any_2_Started_X_Cancel
*INFO: ICE callback: Cancelled
***ERROR: function: "tnet_sockfd_sendto()"
file: "src/tnet_utils.c"
line: "1469"
MSG: sendto() failed
***ERROR: function: "tnet_sockfd_sendto()"
file: "src/tnet_utils.c"
line: "1469"
MSG: (SYSTEM)NETWORK ERROR ==>Invalid argument
*INFO: Transport::run() - enter
*INFO: Starting [RTP/RTCP Manager] server with IP {127.0.0.2} on port {56054} 
using fd {10} with type {3}...
***ERROR: function: "tnet_sockfd_sendto()"
file: "src/tnet_utils.c"
line: "1469"
MSG: sendto() failed
***ERROR: function: "tnet_sockfd_sendto()"
file: "src/tnet_utils.c"
line: "1469"
MSG: (SYSTEM)NETWORK ERROR ==>Invalid argument
***ERROR: function: "tnet_sockfd_sendto()"

I don't have anywhere 127.0.0.2 as an IP that should be in use from webrtc2sip. 
As result, my calls does not handle properly the SIP communication (the remote 
side rings, but the SDP does not hit back to the browser) nor I have any 
RTP(audio) at all.

Any suggestion would be much appreciated.

Thank you for your time.
-- Kamen

Original issue reported on code.google.com by kamen.pe...@gmail.com on 28 May 2013 at 9:50

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 31 May 2013 at 6:56

GoogleCodeExporter commented 9 years ago
I have same issue ;
my ipaddress:
[root@AY1208291020207770306 webrtc2sip]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3E:02:0E:18  
          inet addr:10.200.190.xx  Bcast:10.200.191.255  Mask:255.255.248.0

eth1      Link encap:Ethernet  HWaddr 00:16:3E:02:0E:12  
          inet addr:42.121.87.134  Bcast:42.121.87.255  Mask:255.255.248.0

webrtc2sip pick first ipaddress for rtp/rtcp when  Starting [RTP/RTCP]

Original comment by dingdang...@gmail.com on 14 Oct 2013 at 9:24