maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Question for peope with sip with openvpn working. (https://talk.maemo.org/showthread.php?t=49765)

rajil.s 2010-04-11 20:09

Question for people with sip with openvpn working.
 
Guys,
I have N900 talking nicely to the openvpn server. The traffic for web/email go through tun0 but i can still see Sip register going over wlan0 (using wireshark).

I have setup the nokia.up and nokia.down scripts as specified in famous bug 1860. My question to you guys is that do you need to change your sip uri in voip settings from public address to private address say from 10@xx.dyndns.org to 10@10.8.0.1. I suppose the outbound proxy has to be blank.

This is my client.conf
Code:

client
script-security 2
up /etc/openvpn/nokia.up
down /etc/openvpn/nokia.down
ipchange /etc/openvpn/add_default_route.sh
up /etc/openvpn/maemo-update-resolvconf
plugin /opt/openvpn/lib/openvpn/openvpn-down-root.so "script_type=down /etc/openvpn/maemo-update-resolvconf"
dev tun
proto udp
remote xx.dyndns.org 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
comp-lzo
verb 3

The sip settings are as follows:
Code:

#mc-tool show sofiasip/sip/_xx_2edyndns_2eorg0
    Account: sofiasip/sip/_xx_2edyndns_2eorg0
Display Name: 20@xx.dyndns.org
  Normalized: sip:20@xx.dyndns.org
    Enabled: enabled
    Connects: automatically
    Nickname: 20@xx.dyndns.org
  Automatic: available
    Current: offline
  Requested: available

      (string) password = something
      (string) account = 20@xx.dyndns.org
        (bool) discover-binding = false
        (bool) discover-stun = true
      (string) keepalive-mechanism = register
      (string) transport = udp
        (uint) keepalive-interval = 30
        (uint) port = 5065
        (bool) loose-routing = false

I dont see the local ip attached to the account which nokia.up should have done. Is it because there are two up scripts in client.conf?

rajil.s 2010-04-11 20:27

Re: Question for peope with sip with openvpn working.
 
ah! i merged the two up scripts /etc/openvpn/maemo-update-resolvconf and /etc/openvpn/nokia.up into a single up script. mc-tool now adds the local ip address as follows:
Code:

      (bool) discover-binding = false
        (bool) discover-stun = true
      (string) keepalive-mechanism = register
      (string) transport = udp
        (uint) keepalive-interval = 30
        (uint) port = 5065
        (bool) loose-routing = false
      (string) local-ip-address = 10.8.0.6

Using wireshark on wlan0 i can still see Request : REGISTER sip:xx.dyndns.org and sip connection is not successful.

any ideas?


All times are GMT. The time now is 21:50.

vBulletin® Version 3.8.8