summaryrefslogtreecommitdiff
path: root/vpn/notes.txt
blob: 9d3d2981df4fed73907cb108cc547295fe83af3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
sudo openvpn --config server.conf
01-5548000
1800-804444
ssh 80.93.22.22 'sudo /usr/sbin/asterisk -rx "database put GAME passcode 89889"'
ssh 80.93.22.22 'sudo /usr/sbin/asterisk -rx "database put GAME ip 4.4.4.4"'
ssh 80.93.22.22 'sudo /usr/sbin/asterisk -rx "devstate change Custom:GAME NOT_INUSE"'

1 -download the source of asterisk from the server including the patch
2 -make && sudo make install
	Make install samples  # created default config files
3 -copy the configuration you have set up, tweak it i.e. send the UDP
packet to a local address

	Copy /etc/asterisk from server to new server
	copy  /var/lib/asterisk/agi/gameif to new server and edit script
changing PeerHost => '10.10.10.2',  to new value. 

4 -fire up asterisk
	From command line type "asterisk" this start the daemon, use
"asterisk -rvvvv" to get to asterisk CLI
	Copy sound files /var/lib/asterisk/sounds to new server 
	When you wish to dequeue a call , at the asterisk cli enter "
devstate change Custom:GAME NOT_INUSE "

5 -connect a softphone
		Dial #99 to test
6 -check DTMF latency