' **********************************************************************
' * Script name:   Api_Opt_Header                                      *
' * Description:   The device will send a message with special header  *
' * Responsible:   Ramiro Sanchez                                      *
' * Date:          02/24/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$APIOPT=1,1,4

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

' Use the following commandos to test
' AT$APIOPT=1,0,0
' AT$APIOPT=1,1,0
' AT$APIOPT=1,1,4

at+cgatt=1

at$evtim1=5

at$areg=2

at&w

