' **********************************************************************
' * Script name:   Voice Call from the server                          *
' * Description:   The unit execute the voice call command sent from   *
' *                the server, answer manually, with command ATA and   *
' *                hangup with the command ath                         *
' * Responsible:   Ramiro Sanchez                                      *
' * Date:          03/01/2011                                          *
' **********************************************************************

' --------------------------------------------------------------------
' General configuration
' --------------------------------------------------------------------
AT&F
AT+GSN
AT$PKG?
AT$MDMID?
at+cgatt=0
at+cgdcont=1,"IP","internet3.voicestream.com"
at$friend=1,1,"209.42.60.137"
at$udpapi=,1720

at$event=10,0,12,1,1
at$event=10,3,40,10,3674318
at$event=10,3,60,10,3674318


at$vselect=3

at$vgt=12
at$vlvl=5
at$vgr=24

at+cgatt=1
at$areg=2

at&w
