Fri Jun 19 12:11:05 2009

Asterisk developer's documentation


sms_s Struct Reference


Data Fields

char cli [20]
char da [20]
unsigned char dcs
unsigned char err
int framenumber
unsigned char hangup
unsigned char ibitc
unsigned char ibith
unsigned char ibitl
unsigned char ibitn
unsigned char ibitt
unsigned char ibytec
unsigned char ibytep
unsigned char ibytev
unsigned int idle
unsigned char ierr
unsigned short imag
signed long long imc0
signed long long imc1
signed long long ims0
signed long long ims1
unsigned char imsg [250]
unsigned char ipc0
unsigned char ipc1
unsigned char iphasep
unsigned char ips0
unsigned char ips1
short mr
char oa [20]
unsigned char obitp
unsigned char obyte
unsigned char obyten
unsigned char obytep
unsigned char omsg [256]
unsigned int opause
int opause_0
unsigned char ophase
unsigned char ophasep
int oseizure
unsigned char osync
unsigned char pid
int protocol
char queue [30]
unsigned char rp:1
unsigned char rx:1
timeval scts
unsigned char smsc:1
unsigned char srr:1
unsigned short ud [SMSLEN]
unsigned char udh [SMSLEN]
unsigned char udhi:1
int udhl
int udl
char udtxt [SMSLEN]
unsigned int vp

Detailed Description

Definition at line 190 of file app_sms.c.


Field Documentation

char cli[20]

caller ID

Definition at line 210 of file app_sms.c.

Referenced by sms_exec(), and sms_handleincoming().

char da[20]

destination address

Definition at line 197 of file app_sms.c.

Referenced by sms_compose1(), sms_compose2(), sms_handleincoming(), sms_handleincoming_proto2(), sms_log(), sms_nextoutgoing(), sms_readfile(), and sms_writefile().

unsigned char dcs

data coding scheme

Definition at line 200 of file app_sms.c.

Referenced by sms_compose1(), sms_exec(), sms_handleincoming(), and sms_readfile().

unsigned char err

set for any errors

Definition at line 192 of file app_sms.c.

Referenced by sms_messagerx(), and sms_process().

int framenumber

protocol 2: frame number (for sending ACK0 or ACK1)

Definition at line 246 of file app_sms.c.

Referenced by sms_messagetx().

unsigned char hangup

we are done...

Definition at line 191 of file app_sms.c.

Referenced by sms_messagerx(), and sms_process().

unsigned char ibitc

bit run length count

Definition at line 232 of file app_sms.c.

unsigned char ibith

history of last bits

Definition at line 239 of file app_sms.c.

unsigned char ibitl

last bit

Definition at line 231 of file app_sms.c.

unsigned char ibitn

bit number in byte being received

Definition at line 234 of file app_sms.c.

unsigned char ibitt

total of 1's in last 3 bytes

Definition at line 240 of file app_sms.c.

unsigned char ibytec

byte checksum for message

Definition at line 237 of file app_sms.c.

unsigned char ibytep

byte pointer in message

Definition at line 236 of file app_sms.c.

Referenced by sms_debug().

unsigned char ibytev

byte value being received

Definition at line 235 of file app_sms.c.

unsigned int idle

Definition at line 225 of file app_sms.c.

Referenced by sms_process().

unsigned char ierr

error flag

Definition at line 238 of file app_sms.c.

unsigned short imag

signal level

Definition at line 226 of file app_sms.c.

Referenced by sms_process().

signed long long imc0

Definition at line 221 of file app_sms.c.

signed long long imc1

magnitude averages sin/cos 0/1

Definition at line 221 of file app_sms.c.

signed long long ims0

Definition at line 221 of file app_sms.c.

signed long long ims1

Definition at line 221 of file app_sms.c.

unsigned char imsg[250]

data buffer (in)

Definition at line 220 of file app_sms.c.

Referenced by sms_debug(), sms_handleincoming(), sms_handleincoming_proto2(), sms_messagerx(), and sms_messagerx2().

unsigned char ipc0

phase sin for bit 1, start at 0 inc by 13 mod 80

Definition at line 229 of file app_sms.c.

Referenced by sms_exec().

unsigned char ipc1

phase cos for bit 1, start at 20 inc by 13 mod 80

Definition at line 230 of file app_sms.c.

Referenced by sms_exec().

unsigned char iphasep

bit phase (0-79) for 1200 bps

Definition at line 233 of file app_sms.c.

unsigned char ips0

phase sin for bit 0, start at 0 inc by 21 mod 80

Definition at line 227 of file app_sms.c.

unsigned char ips1

phase cos for bit 0, start at 20 inc by 21 mod 80

Definition at line 228 of file app_sms.c.

short mr

message reference - actually a byte, but use -1 for not set

Definition at line 201 of file app_sms.c.

Referenced by sms_compose1(), sms_handleincoming(), sms_log(), and sms_readfile().

char oa[20]

originating address

Definition at line 196 of file app_sms.c.

Referenced by sms_compose1(), sms_compose2(), sms_handleincoming(), sms_handleincoming_proto2(), sms_log(), sms_nextoutgoing(), sms_readfile(), and sms_writefile().

unsigned char obitp

bit in byte

Definition at line 215 of file app_sms.c.

Referenced by sms_messagetx().

unsigned char obyte

byte being sent

Definition at line 213 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

unsigned char obyten

bytes in data

Definition at line 218 of file app_sms.c.

Referenced by sms_generate(), sms_messagetx(), and sms_process().

unsigned char obytep

byte in data

Definition at line 217 of file app_sms.c.

Referenced by sms_messagetx().

unsigned char omsg[256]

data buffer (out)

Definition at line 219 of file app_sms.c.

Referenced by adddata_proto2(), sms_compose1(), sms_compose2(), sms_debug(), sms_messagerx(), sms_messagetx(), and sms_nextoutgoing().

unsigned int opause

silent pause before sending (in sample periods)

Definition at line 214 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

int opause_0

initial delay in ms, p() option

Definition at line 243 of file app_sms.c.

Referenced by sms_exec(), and sms_messagetx().

unsigned char ophase

phase (0-79) for 0 and 1 frequencies (1300Hz and 2100Hz)

Definition at line 211 of file app_sms.c.

Referenced by sms_generate().

unsigned char ophasep

phase (0-79) for 1200 bps

Definition at line 212 of file app_sms.c.

Referenced by sms_generate().

int oseizure

protocol 2: channel seizure bits to send

Definition at line 245 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

unsigned char osync

sync bits to send

Definition at line 216 of file app_sms.c.

Referenced by sms_generate(), sms_messagetx(), and sms_process().

unsigned char pid

protocol ID

Definition at line 199 of file app_sms.c.

Referenced by sms_compose1(), sms_exec(), sms_handleincoming(), and sms_readfile().

int protocol

ETSI SMS protocol to use (passed at app call)

Definition at line 244 of file app_sms.c.

Referenced by sms_exec(), sms_messagerx(), sms_messagetx(), and sms_nextoutgoing().

char queue[30]

queue name

Definition at line 195 of file app_sms.c.

Referenced by sms_exec(), sms_log(), sms_nextoutgoing(), and sms_writefile().

unsigned char rp

Reply Path

Definition at line 206 of file app_sms.c.

Referenced by sms_compose1(), sms_handleincoming(), and sms_readfile().

unsigned char rx

this is a received message

Definition at line 194 of file app_sms.c.

Referenced by sms_handleincoming(), sms_log(), sms_nextoutgoing(), sms_readfile(), and sms_writefile().

struct timeval scts

time stamp, UTC

Definition at line 198 of file app_sms.c.

Referenced by sms_compose1(), sms_compose2(), sms_handleincoming(), sms_handleincoming_proto2(), sms_readfile(), and sms_writefile().

unsigned char smsc

we are SMSC

Definition at line 193 of file app_sms.c.

Referenced by sms_compose1(), sms_compose2(), sms_exec(), sms_handleincoming(), sms_log(), sms_nextoutgoing(), and sms_writefile().

unsigned char srr

Status Report request

Definition at line 204 of file app_sms.c.

Referenced by sms_compose1(), sms_exec(), sms_handleincoming(), and sms_readfile().

unsigned short ud[SMSLEN]

user data (message), UCS-2 coded

Definition at line 208 of file app_sms.c.

Referenced by sms_compose1(), sms_handleincoming(), sms_handleincoming_proto2(), sms_log(), sms_readfile(), and sms_writefile().

unsigned char udh[SMSLEN]

user data header

Definition at line 209 of file app_sms.c.

Referenced by sms_compose1(), sms_handleincoming(), sms_readfile(), and sms_writefile().

unsigned char udhi

User Data Header required, even if length 0

Definition at line 205 of file app_sms.c.

Referenced by sms_compose1(), sms_handleincoming(), sms_readfile(), and sms_writefile().

int udhl

user data header length

Definition at line 203 of file app_sms.c.

Referenced by sms_compose1(), sms_handleincoming(), sms_readfile(), and sms_writefile().

int udl

user data length

Definition at line 202 of file app_sms.c.

Referenced by putdummydata_proto2(), sms_compose1(), sms_handleincoming(), sms_handleincoming_proto2(), sms_log(), sms_readfile(), and sms_writefile().

char udtxt[SMSLEN]

user data (message), PLAIN text

Definition at line 247 of file app_sms.c.

Referenced by putdummydata_proto2(), and sms_readfile().

unsigned int vp

validity period in minutes, 0 for not set

Definition at line 207 of file app_sms.c.

Referenced by sms_compose1(), sms_handleincoming(), and sms_readfile().


The documentation for this struct was generated from the following file:
Generated on Fri Jun 19 12:11:05 2009 for Asterisk - the Open Source PBX by  doxygen 1.4.7