Category: VOIP ASTERISK LINKSYS TRIXBOX

DD-WRT VPN PIA

By , January 14, 2016 11:54 PM
I’ve read many users have trouble setting up the OpenVPN client on some DD-WRT flashed routers. There are DD-WRT builds that lack the ADVANCED OPTIONS button, here’s my solution:

1- Go to SETUP – BASIC SETUP – NETWORK ADDRESS SERVER SETTINGS (DHCP)
Set Static DNS 1 to: 8.8.8.8
Set Static DNS 2 to: 8.8.4.4
or any other DNS servers you want.
2- Set TIME SETTINGS to match your current location.
Click SAVE – Click APPLY SETTINGS
3- Go to SERVICES – VPN
Enable OpenVPN Server (Just click the enable button, do nothing else). This step you can skip. It only serves the purpose of enabling OPENVPN STATUS so that you can see the current state and log of PIA OPENVPN CLIENT.
Click APPLY SETTINGS
4- Go to ADMINISTRATION – COMMANDS
Copy – Paste the text from link below to commands, don’t forget to edit Your_PIA_Username and Your_PIA_Password with your own credentials, if you want you can change the remote regional-gateway (us-west…) too:
Click SAVE STARTUP
5- Go to ADMINISTRATION – MANAGEMENT
Click REBOOT ROUTER
6- That should do it, from now on every device that gets a IP address from your router will go through PIA’s VPN tunnel.
As you can see, we did nothing to the OpenVPN client in SERVICES – VPN. The script takes care of that for us.
ENJOY!!
PICK A LOCATION
#!/bin/sh

USERNAME="Your_PIA_Username"
PASSWORD="Your_PIA_Password"
PROTOCOL="udp"
# Add - delete - edit servers between ##BB## and ##EE##
REMOTE_SERVERS="
##BB##
# US - WEST
remote us-west.privateinternetaccess.com 1194
##EE##
"

#### DO NOT CHANGE below this line unless you know exactly what you're doing ####

CA_CRT='-----BEGIN CERTIFICATE-----
MIID2jCCA0OgAwIBAgIJAOtqMkR2JSXrMA0GCSqGSIb3DQEBBQUAMIGlMQswCQYD
VQQGEwJVUzELMAkGA1UECBMCT0gxETAPBgNVBAcTCENvbHVtYnVzMSAwHgYDVQQK
ExdQcml2YXRlIEludGVybmV0IEFjY2VzczEjMCEGA1UEAxMaUHJpdmF0ZSBJbnRl
cm5ldCBBY2Nlc3MgQ0ExLzAtBgk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llQlzAzFiIfabACTQn84QLeLOActKhK8hFJy2Gy6
-----END CERTIFICATE-----'

OPVPNENABLE=`nvram get openvpncl_enable | awk '$1 == "0" {print $1}'`

if [ "$OPVPNENABLE" != 0 ]; then
   nvram set openvpncl_enable=0
   nvram commit
fi

sleep 10
mkdir /tmp/pia; cd /tmp/pia
echo -e "$USERNAME\n$PASSWORD" > userpass.conf
echo "$CA_CRT" > ca.crt
echo "#!/bin/sh
iptables -t nat -I POSTROUTING -o tun0 -j MASQUERADE" > route-up.sh
echo "#!/bin/sh
iptables -t nat -D POSTROUTING -o tun0 -j MASQUERADE" > route-down.sh
chmod 644 ca.crt; chmod 600 userpass.conf; chmod 700 route-up.sh route-down.sh
sleep 10
echo "client
auth-user-pass /tmp/pia/userpass.conf
management 127.0.0.1 5001
management-log-cache 50
dev tun0
proto $PROTOCOL
comp-lzo adaptive
fast-io
script-security 2
mtu-disc yes
verb 4
mute 5
cipher bf-cbc
auth sha1
tun-mtu 1500
resolv-retry infinite
nobind
persist-key
persist-tun
tls-client
remote-cert-tls server
log-append piavpn.log
ca ca.crt
status-version 3
status status
daemon
$REMOTE_SERVERS" > pia.conf
ln -s /tmp/pia/piavpn.log /tmp/piavpn.log
ln -s /tmp/pia/status /tmp/status
(killall openvpn; openvpn --config /tmp/pia/pia.conf --route-up /tmp/pia/route-up.sh --down /tmp/pia/route-down.sh) &
exit 0

Hacking MagicJack for the sip infomation

By , December 23, 2010 8:11 PM

Definition:
Magicjack is really a simple device that uses the standard SIP protocol to make inbound and outbound calls.
Thus if we know the details of this we can put it an Asterisk server or sipphone, eg iphone etc.

MagicJack uses standard SIP, so once you determine your SIP information (username/password/etc), you can use your MagicJack service with any standard VoIP device.
The easiest way to uncover your MagicJack SIP information is to use Fiddler.
Since all MagicJack passwords are very simple, you could also very easily brute force them using cain, although this technique is a bit more involved than using fiddler.

MagicJack Voip settings you will need to put into your device:
Voip Settings:

Username:
Password:
sip port: 5070
proxy: proxy1.yourcityname.talk4free.com:5070
register: yes
make call without reg: yes
answer call without reg: no
register expires: 3600
display name: your phone number

Replace EXXXXXXXXXX01 with your MJ number. Include E and 01.
Replace the proxy proxy1.Atlanta.talk4free.com:5070 with the proxy your MJ registers to and change host=67.90.138.70 to host=YourProxyIPHere.

OTHER METHOD

1. download pmdump from http://magicjackhacks.com/downloads/pmdump.exe
2. follow tutorial on how to create a dump file on this page http://magicjackhacks.com/ using pmdump.
3. download “hex workshop” its free. search on google for it. or use any other free hex editor.
4. open the dump file in the hex editor.
5. search for “ProxyUserName”
6. search for “ProxyUserPassword”
7. search for “SIPProxyURI”

the user name will be your phone number with a leading E and ending 01
password is 20 digits
sipproxy is an IP address

First download pmdump and hexeditor

http://magicjackhacks.com <–pmdump
http://www.hexworkshop.com/
cmd(enter) and then connect your magicjack.

The rest with hexeditor is simple, just drag the created file and search the two strings, it worked for me at the 4th try.
My last post is incomplete. Here is what i missed.
It is just the WHEN you are dumping the memory, it should be done inmediatly (5 seconds) after connecting magicjack, and executing the application. It worked for me at the 3th try.
I suggest to keep open CMD while magicjack is loading that way you will have the chance to do it quick.
pmdump -list (after magicjack has begin to run)
pmdump PID anyfilename (3 seconds after)
Then it’ll work.

FILES YOU MAY NEED:
http://www.megaupload.com/?d=SJ6V5SPF
http://rapidshare.com/#!download|221tl|181798719|MagicJack_Utilities_v1.6.zip|3513
http://rapidshare.com/#!download|492tl|196998576|MJInfo.exe|456

REF:
http://www.bauer-power.net/2010/05/how-to-hack-your-magicjack-to-make.html

Siemens Gigaset SIPPHONE Gizmo5 Settings

By , December 23, 2010 7:23 PM

I have searched numerous forums and cannot find any decente
sipphone settings for the Siemens Gigaset Phone for Sipphone / Gizmo5

The setup:

Personal Provider Data
* Authentication Name:  1747xxxxx what ever your gizmo5 number is
* Authentication password: password what ever yours is
* Username:     1747xxxxxx what ever your gizmo5 number is
* Display name:  1747xxxxxx what ever your gizmo5 number is

General Provider Data
* Domain:   proxy01.sipphone.com
* Proxy server address: proxy01.sipphone.com
* Proxy server port:     5060
* Registration Server: proxy01.sipphone.com
* Registrar server port: 5060
* Registration refresh time: 180

Network
* STUN enabled: YES
* STUN server: stun01.sipphone.com
* STUN port: 3478
* STUN refresh time: 240
* NAT refresh time: 20
* Outbound proxy mode: Never (can anyone confirm?)
* Outbound proxy: EMPTY
* Outbound proxy port: 5060

If you are having trouble with missing one part of the audio on a call ie cant hear the other person speaking but can hear and speak
fine otherwise then you should enable STUN.     (can anyone confirm?)
Gizmo5 does not provide an outbound proxy, so you should leave that field blank.

The screen shot:

siemens gigaset sipphone gizmo5 setup

The codecs:

Codecs:
GSM — fixed bit rate, not loss tolerant, narrow band (8khz sampling rate).
iSAC — variable bit rate, loss tolerant, narrow and wideband (8 to 16khz). Varies based on Bandwidth, packet loss, delay
iLBC — variable bit rate, loss tolerant, narrow
PCMA — fixed bit rate (8kHz sampling rate)
PCMU — fixed bit rate (8kHz sampling rate, high band width)
IPCMWB — 16 kHz sampling rate
EG711 (enhanced g711) — fixed bit rate, loss tolerant, narrowband
iPCM — fixed bit rate, loss tolerant, wide band.

I would recommend that you enable
ulaw u711
alaw a711
GSM
iLBC
g729

and disable
g722 (wideband)

I believe but have no confirmation that it does g729 in passthu mode only. (can anyone confirm?)

DTMF

In-band
Incoming stream delivers DTMF signals in-audio independently of codecs

Out-of-band
Incoming stream delivers DTMF signals out-of-audio using either SIP-INFO or RFC-2833 mechanism,
independently of codecs – in this case the DTMF signals are sent separately from the actual audio stream.

SIP-INFO is not recommended for DTMF delivery, since it cannot deliver strokes synchronously with the audio stream, introducing timing artifacts (mainly because it’s delivered using SIP, which is not a real-time mechanism for delivering media). It is very common for public services to NOT support SIP INFO, and it seems unlikely that such services will improve support for this delivery mechanism.

We want to use rfc2833

3102 Faxing

By , September 4, 2010 6:40 PM

HERE ARE THE AUSTRALIAN SETTINGS FOR THE LINKSYS 3102

AND ALSO THE FAX SETTINGS TO MAKE FAXING WORK ON VOIP

AUSTRALIAN SETTINGS

Dial tone: 400@-19,425@-19,450@-19;10(*/0/1+2+3)

Busy Tone: 425@-19;10(.375/.375/1)

Reorder Tone: 425@-19,425@-29;60(.375/.375/1,.375/.375/2)

Ring Back Tone: 400@-19,425@-19,450@-19;*(.4/.2/1+2+3,.4/2/1+2+3)

MWI Dial Tone: 400@-19,425@-19,450@-19;2(.1/.1/1+2);10(*/0/1+2)

Ring1 Cadence: 60(.4/.2,.4/2)

 

FXS Port Impedence: 220+820||115nF
DTMF Playback Length: .25
Time Zone: GMT+10:00

PSTN

Disconnect Tone: 425@-30,425@-30;1(.375/.375/1+2)

 FXO Port Impedance: 220+820||120nF
 PSTN to SPA Gain: 3
 On-Hook Speed: 26ms (Australia)

DIAL PLAN
JUST A NOTE NOT DIAL PLAN NO WORKIE

([2-79]11<:@gw0>|xx.|*xx.|**xx.|<#,:>xx.<:@gw0>|<#,:>*xx<:@gw0>)


FAX 3102 SETTINGS

a) Network Jitter Level – Very High (was medium)
b) Jitter Buffer Adjustment – Disable (was up down)

c) “Call Waiting Serv” : Set this to No
d) “Three Way Call Serv” : Set this to No as well.

a) Set the PreferredCodec to G711u
b) Set “Silence Suppression Enable” to No
c) Make sure that the option FAX Enable T38 is set to Yes. (Default setting is Yes)
d) “Echo Canc Enable” should be set to No
e) Set the option “Fax Passthru Method” to REINVITES.

more infro

https://docs.google.com/View?docid=dmqx96v_3qk8phn

TRIXBOX on your NETWORK, Trixbox and Samba

By , August 14, 2010 7:57 PM

[global]
log file = /var/log/samba/log.%m
load printers = no
smb passwd file = /etc/samba/smbpasswd
browseable = no
server string = trixbox PBX
path = /
workgroup = workgroup
os level = 2000
username map = /etc/samba/smbusers
preferred master = no
max log size = 50

[share]
browseable = yes
writeable = yes
write list = root
comment = server
valid users = root
path = /
public = yes

Thomas Challenger Thomas Challenger