| The Following 5 Users Say Thank You to rajil.s For This Useful Post: | ||
|
|
2010-07-16
, 04:03
|
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#2
|
|
|
2010-07-16
, 04:35
|
|
Posts: 22 |
Thanked: 17 times |
Joined on Jan 2010
@ IDN
|
#3
|
|
|
2011-01-07
, 18:08
|
|
Posts: 1 |
Thanked: 0 times |
Joined on Jan 2011
|
#4
|
|
|
2011-01-07
, 22:06
|
|
Posts: 440 |
Thanked: 203 times |
Joined on May 2010
|
#6
|
|
|
2011-04-08
, 15:50
|
|
Posts: 3 |
Thanked: 0 times |
Joined on Mar 2011
|
#7
|
I have finally a working sip over openvpn today and wanted to post about it for everybodys benefit. I have tested this both on 3g (using three UK) and wifi. Here are the following files needed. All these files go in /etc/openvpn.
First the client config
# cat nokia.up #!/bin/bash case $script_type in up) for optionname in ${!foreign_option_*} ; do option="${!optionname}" echo $option part1=$(echo "$option" | cut -d " " -f 1) if [ "$part1" == "dhcp-option" ] ; then part2=$(echo "$option" | cut -d " " -f 2) part3=$(echo "$option" | cut -d " " -f 3) if [ "$part2" == "DNS" ] ; then IF_DNS_NAMESERVERS="$IF_DNS_NAMESERVERS $part3" fi if [ "$part2" == "DOMAIN" ] ; then IF_DNS_SEARCH="$part3" fi fi done R="" if [ "$IF_DNS_SEARCH" ] ; then R="${R}search $IF_DNS_SEARCH\n" fi for NS in $IF_DNS_NAMESERVERS ; do R="${R}nameserver $NS\n" done if [ ! -f /etc/resolv.conf.prevpn ] ; then mv /etc/resolv.conf /etc/resolv.conf.prevpn fi echo -e "$R" > /etc/resolv.conf ;; down) if [ -f /etc/resolv.conf.prevpn ] ; then mv /etc/resolv.conf.prevpn /etc/resolv.conf fi ;; esac 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#cat nokia.down #!/bin/bash case $script_type in up) for optionname in ${!foreign_option_*} ; do option="${!optionname}" echo $option part1=$(echo "$option" | cut -d " " -f 1) if [ "$part1" == "dhcp-option" ] ; then part2=$(echo "$option" | cut -d " " -f 2) part3=$(echo "$option" | cut -d " " -f 3) if [ "$part2" == "DNS" ] ; then IF_DNS_NAMESERVERS="$IF_DNS_NAMESERVERS $part3" fi if [ "$part2" == "DOMAIN" ] ; then IF_DNS_SEARCH="$part3" fi fi done R="" if [ "$IF_DNS_SEARCH" ] ; then R="${R}search $IF_DNS_SEARCH\n" fi for NS in $IF_DNS_NAMESERVERS ; do R="${R}nameserver $NS\n" done if [ ! -f /etc/resolv.conf.prevpn ] ; then mv /etc/resolv.conf /etc/resolv.conf.prevpn fi echo -e "$R" > /etc/resolv.conf ;; down) if [ -f /etc/resolv.conf.prevpn ] ; then mv /etc/resolv.conf.prevpn /etc/resolv.conf fi ;; esac 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 doneOk. The above issue is sorted. I use a Linksys WRT54GL router running dd-wrt. I had to simply add an extra arguement to dnsmasq as
------------------------------------------------------------------
Voice choppy on sip calls
Please vote for bug number 10388
Last edited by rajil.s; 2010-07-16 at 22:23. Reason: Fixed dnsmasq in the router