sudo openvpn --config server.conf 01-5548000 1800-804444 ssh 80.93.22.22 'sudo /usr/sbin/asterisk -rx "database put GAME passcode 1234"' 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"' ssh 80.93.22.22 'sudo /usr/sbin/asterisk -rx "database put GAME statuscode 1234"' ssh 80.93.22.22 'sudo /usr/sbin/asterisk -rx "queue show gameQ"' ssh 80.93.22.22 'sudo /usr/sbin/asterisk -rx "hangup request Local/9999@default-00000039;2" Changing GAME to NOT_INUSE gameQ has 1 calls (max unlimited) in 'rrmemory' strategy (8s holdtime, 50s talktime), W:0, C:38, A:26, SL:36.8% within 0s Members: Game AGI (Local/9999@default) with penalty 1 (In use) has taken 31 calls (last was 5333 secs ago) Callers: 1. SIP/sip_proxy-00000045 (wait: 0:06, prio: 0) 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