Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    VoIP / Asterisk / rtcomm

    Reply
    Page 3 of 3 | Prev |   1     2   3 |
    djf_jeff | # 21 | 2008-07-14, 03:29 | Report

    Hi,

    I restart this old thread for just one small question.

    If I did the mc-account trick, it work all good. But, how do I restore it to the default after I close the openvpn link?

    Do I redo the line with my wlan0 ip?

    Thank you.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    jimhoy | # 22 | 2008-07-16, 01:28 | Report

    Originally Posted by gochito View Post
    mc-account set sip0 string:local-ip-address=10.x.x.x
    Thank's for the tip. FYI, I've setup my openvpn network scripts to do this automatically for me. In my case, I only have one VPN connection, and only one SIP server I ever wish to talk to; as such, this may not be applicable to more complex setups.

    /etc/network/if-up.d/openvpn:


    #!/bin/sh

    OPENVPN=/etc/init.d/openvpn

    if [ ! -x $OPENVPN ]; then
    exit 0
    fi

    if [ -n "$ICD_CONNECTION_ID" ]; then
    $OPENVPN restart $IF_OPENVPN
    sleep 5
    VPN_INT="tun0"
    VPN_IP=`ifconfig $VPN_INT 2> /dev/null | sed -n 's/.*inet[adr: ]*\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*/\1/p'`
    mc-account set sip0 string:local-ip-address=$VPN_IP
    fi


    I'm using the /etc/network/if-down.d/openvpn script from http://www.internettablettalk.com/fo...ad.php?t=18434

    NOTE: I'm using "restart" instead of "start" to avoid problems caused by two openvpn instances running (one started at boot, one started when the wlan interface comes up)

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to jimhoy For This Useful Post:
    gochito

     
    qole | # 23 | 2008-07-29, 05:55 | Report

    I see asterisk is installable in Debian, I wonder what it would be like to run an asterisk server on the tablet...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    gochito | # 24 | 2008-08-18, 22:30 | Report

    JimHoy:

    Nice! I am thinking into something like your script but to have it run ONLY when openvpn runs... Otherwise I need the local-ip to be kept to the wlan0, since it won't work for me inside mi corporate LAN.

    Will see what i get..

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mikkov | # 25 | 2008-08-18, 23:03 | Report

    up parameter in openvpn config most likely what you are looking for

    Edit | Forward | Quote | Quick Reply | Thanks

     
    gochito | # 26 | 2008-08-19, 21:37 | Report

    I just used a part of the script and was able to get it working calling them with the up and down openvpn params! Now it connects to the OPenVPn server with the aid of the Openvpn Applet and assigns the tun0 ip to the sip0 account (useful since I also have yahoo, msn, etc) and when the vpn closes reverts the ip to the wlan0!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 3 of 3 | Prev |   1     2   3 |
vBulletin® Version 3.8.8
Normal Logout