Notices


Reply
Thread Tools
Posts: 16 | Thanked: 0 times | Joined on Mar 2010
#11
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.


Originally Posted by heavyt View Post
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's Avatar
Posts: 708 | Thanked: 125 times | Joined on Jan 2007 @ Too Close To D.C
#12
Originally Posted by jitusj View Post
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 ) .
__________________
N810-WiMAX
 
Posts: 19 | Thanked: 47 times | Joined on Nov 2010
#13
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.)

Last edited by birefringence; 2010-12-03 at 19:43.
 
Posts: 2 | Thanked: 0 times | Joined on Dec 2010
#14
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.
 
Posts: 16 | Thanked: 0 times | Joined on Mar 2010
#15
[QUOTE=birefringence;888641]Just for reference: On the N900 the following works with vpnc:

Can you show us exact steps please.
 
Posts: 306 | Thanked: 106 times | Joined on Feb 2010
#16
Originally Posted by Valdo_23 View Post
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?
__________________
------------------------------------------------------------------
Voice choppy on sip calls
Please vote for bug number 10388
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:54.