zhqiyi / webrtc2sip

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

webrtc2sip initial service setup #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installation of webrtc2sip on linux ubuntu server 12.04 using this guide 
http://linux.autostatic.com/installing-webrtc2sip-on-ubuntu-1204

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

I have two nic installed on the server. One with a private address and the 
other one which is connected to Internet with PPPoE.  I see that (netstat 
-natup) webrtc2sip daemon listen only on the private address and not also on 
the public ip address negotiated trough PPPoE connection. How to bind the 
daemon also with the public ip address? Just another question about: how to 
start the service on startup?

Thanks.

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

Latest version of webrtc2sip using SVN. Ubuntu Server 12.04 with all recent 
updates

Please provide any additional information below.

Original issue reported on code.google.com by labh...@gmail.com on 9 May 2013 at 3:19

GoogleCodeExporter commented 9 years ago
This is a support question, not an issue report. I'd suggest to ask your 
questions on the Doubango Google group: 
https://groups.google.com/forum/#!forum/doubango

Regards,

Jeremy

Original comment by autosta...@gmail.com on 15 May 2013 at 8:33

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 24 May 2013 at 1:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello I also had this problem. What you need to do is change the following 
lines in the config lines
Say your ip address is 111.222.333.444, you should change from:

  <transport>udp;*;10060</transport>
  <transport>ws;*;10060</transport>
  <transport>wss;*;10062</transport>
  <transport>tcp;*;10063</transport>
  <transport>tls;*;10064</transport>

 TO 

  <transport>udp;111.222.333.444;10060</transport>
  <transport>ws;111.222.333.444;10060</transport>
  <transport>wss;111.222.333.444;10062</transport>
  <transport>tcp;111.222.333.444;10063</transport>
  <transport>tls;111.222.333.444;10064</transport>
  <transport>tls;111.222.333.444;10064</transport>

From the docs:

<transport />
Each entry defines a protocol, local IP address and port to bind to.
Format: proto-value;local-ip-value;local-port-value
..
..
local-ip-value: Use star (*) to let the server choose the best 
local IP address to bind to. 

http://webrtc2sip.org/technical-guide-1.0.pdf

Original comment by vodaldr...@gmail.com on 2 Sep 2014 at 12:47

GoogleCodeExporter commented 9 years ago
As for the start script I use the following code ( using screen to maintain 
webrtc2sip running )

#!/bin/bash
screen -r webrtc2sip  #trying to resume screen ...
if [ $? -ne 0 ]; then # if no screen then:
    cd /opt/webrtc2sip
    screen -dmS webrtc2sip /opt/webrtc2sip/sbin/webrtc2sip --config=/opt/webrtc2sip/sbin/config.xml 
    screen -r webrtc2sip
fi

To get out of the screen use Ctrl+a+d

Original comment by vodaldr...@gmail.com on 2 Sep 2014 at 12:50