maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   VOIP fails over VPN tunnels (https://talk.maemo.org/showthread.php?t=30654)

jitusj 2010-04-17 19:37

Re: VOIP fails over VPN tunnels
 
Hi heavyt

I am using N900. I am facing the same problem
/etc/openvpn/nokia.up tun0 1500 1542 10.9.170.78 10.9.170.77 init
script failed: could not execute external program
Exitng


I added these 3 lines to my .ovpn file

script-security 2

up /etc/openvpn/nokia.up

down /etc/openvpn/nokia.down


My nokia.up script

#!/bin/sh

source /etc/osso-af-init/af-defines.sh

for acct in `mc-tool list | grep sofiasip/sip`; do
mc-tool update $acct string:local-ip-address=$4
done



My nokia.down script

#!/bin/sh

source /etc/osso-af-init/af-defines.sh

for acct in `mc-tool list | grep sofiasip/sip`; do
mc-tool update $acct clear:local-ip-address
done

I have tried doing "chmod 755 /etc/openvpn/nokia.up /etc/openvpn/nokia.down" to
set the execute-allowed bits.

What is missing? Please help.


Quote:

Originally Posted by heavyt (Post 445547)
Having no luck in getting voip/sip to work over openvpn (N810).
I read the posts in https://bugs.maemo.org/show_bug.cgi?id=1860 and applied the work arounds, outline in #25 and also #29 and #31. Here is the error read out I get when I run a test in Openvpn Gui test option:
Code:

/etc/openvpn/nokia.up tun0 1500 1542 192.168.66.6 192.168.66.5 init
script failed: could not execute external program
Exitng

Here is my nokia.up script file in /etc/openvpn
Code:

#!/bin/sh

for acct in $(ls -d /var/lib/gconf/apps/telepathy/mc/accounts/sip* | while read
i; do echo $(basename $i); done); do\

  # Force the VPN SIP account to bind itself to the
  # VPN address we have just been allocated.
  mc-account set $acct string:local-ip-address=$4

  # Use the VPN host's address as the SIP proxy,
  # since we can't count on any other being reachable.
  #mc-account set $acct string:proxy-host=vpn-host.example.com

done

Looking for help, thanks


heavyt 2010-04-17 23:35

Re: VOIP fails over VPN tunnels
 
Quote:

Originally Posted by jitusj (Post 615132)
Hi heavyt

I am using N900. I am facing the same problem......

What is missing? Please help.

I have a N810 not a N900 so my up and down scripts are different from yours.

Have you tried to run the scripts in emelFM2 to see if it (emelFM2 as root) displays any errors? I found that my scripts had format errors (you have to be careful with copy and paste :) ) .

birefringence 2010-12-03 19:30

Re: VOIP fails over VPN tunnels
 
Just for reference: On the N900 the following works with vpnc:

Code:

/etc/vpnc/vpnc-script-post-connect-action
----------
#!/bin/sh

source /etc/osso-af-init/af-defines.sh

for acct in `mc-tool list | grep sofiasip/sip`; do
        mc-tool update $acct \
string:local-ip-address=$INTERNAL_IP4_ADDRESS
done
----------

/etc/vpnc/vpnc-script-post-disconnect-action
----------
#!/bin/sh

source /etc/osso-af-init/af-defines.sh

for acct in `mc-tool list | grep sofiasip/sip`; do
        mc-tool update $acct clear:local-ip-address
done
---------

(The backslash is only there, because the forum won't let me enter a line that is long enough. You can also delete the backslash and join it with the next line into one long line.)

Valdo_23 2010-12-04 23:06

Re: VOIP fails over VPN tunnels
 
Hi rajil and heavyt
Could you please help me about this sip audio problem with N900? My phone conects and calls but no voice. I can't hear them and they can't hear me. Help please.

jitusj 2010-12-05 05:09

Re: VOIP fails over VPN tunnels
 
[QUOTE=birefringence;888641]Just for reference: On the N900 the following works with vpnc:

Can you show us exact steps please.

rajil.s 2010-12-05 08:21

Re: VOIP fails over VPN tunnels
 
Quote:

Originally Posted by Valdo_23 (Post 889403)
Hi rajil and heavyt
Could you please help me about this sip audio problem with N900? My phone conects and calls but no voice. I can't hear them and they can't hear me. Help please.

So your sip calls work without vpn but fail when using vpn?


All times are GMT. The time now is 23:40.

vBulletin® Version 3.8.8