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
unsigned char nolog:1
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
struct timeval scts
unsigned char sent_rel:1
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 220 of file app_sms.c.


Field Documentation

char cli[20]

caller ID

Definition at line 242 of file app_sms.c.

Referenced by sms_exec(), and sms_handleincoming().

char da[20]

unsigned char dcs

data coding scheme

Definition at line 232 of file app_sms.c.

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

unsigned char err

set for any errors

Definition at line 222 of file app_sms.c.

Referenced by sms_messagerx(), and sms_process().

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

Definition at line 278 of file app_sms.c.

Referenced by sms_messagetx(), and sms_process().

unsigned char hangup

we are done...

Definition at line 221 of file app_sms.c.

Referenced by sms_messagerx(), sms_messagerx2(), and sms_process().

unsigned char ibitc

bit run length count

Definition at line 264 of file app_sms.c.

Referenced by sms_process().

unsigned char ibith

history of last bits

Definition at line 271 of file app_sms.c.

Referenced by sms_process().

unsigned char ibitl

last bit

Definition at line 263 of file app_sms.c.

Referenced by sms_process().

unsigned char ibitn

bit number in byte being received

Definition at line 266 of file app_sms.c.

Referenced by sms_process().

unsigned char ibitt

total of 1's in last 3 bytes

Definition at line 272 of file app_sms.c.

Referenced by sms_process().

unsigned char ibytec

byte checksum for message

Definition at line 269 of file app_sms.c.

Referenced by sms_process().

unsigned char ibytep

byte pointer in message

Definition at line 268 of file app_sms.c.

Referenced by sms_debug(), and sms_process().

unsigned char ibytev

byte value being received

Definition at line 267 of file app_sms.c.

Referenced by sms_process().

unsigned int idle

Definition at line 257 of file app_sms.c.

Referenced by sms_process().

unsigned char ierr

error flag

Definition at line 270 of file app_sms.c.

Referenced by sms_process().

unsigned short imag

signal level

Definition at line 258 of file app_sms.c.

Referenced by sms_process().

signed long long imc0

Definition at line 253 of file app_sms.c.

Referenced by sms_process().

signed long long imc1

magnitude averages sin/cos 0/1

Definition at line 253 of file app_sms.c.

Referenced by sms_process().

signed long long ims0

Definition at line 253 of file app_sms.c.

Referenced by sms_process().

signed long long ims1

Definition at line 253 of file app_sms.c.

Referenced by sms_process().

unsigned char imsg[250]

data buffer (in)

Definition at line 252 of file app_sms.c.

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

unsigned char ipc0

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

Definition at line 261 of file app_sms.c.

Referenced by sms_exec(), and sms_process().

unsigned char ipc1

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

Definition at line 262 of file app_sms.c.

Referenced by sms_exec(), and sms_process().

unsigned char iphasep

bit phase (0-79) for 1200 bps

Definition at line 265 of file app_sms.c.

Referenced by sms_process().

unsigned char ips0

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

Definition at line 259 of file app_sms.c.

Referenced by sms_process().

unsigned char ips1

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

Definition at line 260 of file app_sms.c.

Referenced by sms_process().

short mr

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

Definition at line 233 of file app_sms.c.

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

unsigned char nolog

do not log plain text SMS content (privacy)

Definition at line 226 of file app_sms.c.

Referenced by sms_exec(), and sms_log().

char oa[20]

unsigned char obitp

bit in byte

Definition at line 247 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

unsigned char obyte

byte being sent

Definition at line 245 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

unsigned char obyten

bytes in data

Definition at line 250 of file app_sms.c.

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

unsigned char obytep

byte in data

Definition at line 249 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

unsigned char omsg[256]

unsigned int opause

silent pause before sending (in sample periods)

Definition at line 246 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

int opause_0

initial delay in ms, p() option

Definition at line 275 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 243 of file app_sms.c.

Referenced by sms_generate().

unsigned char ophasep

phase (0-79) for 1200 bps

Definition at line 244 of file app_sms.c.

Referenced by sms_generate().

int oseizure

protocol 2: channel seizure bits to send

Definition at line 277 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

unsigned char osync

sync bits to send

Definition at line 248 of file app_sms.c.

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

unsigned char pid

protocol ID

Definition at line 231 of file app_sms.c.

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

int protocol

ETSI SMS protocol to use (passed at app call)

Definition at line 276 of file app_sms.c.

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

char queue[30]

queue name

Definition at line 227 of file app_sms.c.

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

unsigned char rp

Reply Path

Definition at line 238 of file app_sms.c.

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

unsigned char rx

struct timeval scts [read]

unsigned char sent_rel

have sent REL message...

Definition at line 223 of file app_sms.c.

Referenced by sms_nextoutgoing(), and sms_process().

unsigned char smsc

we are SMSC

Definition at line 224 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 236 of file app_sms.c.

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

unsigned short ud[SMSLEN]

user data (message), UCS-2 coded

Definition at line 240 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 241 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 237 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 235 of file app_sms.c.

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

int udl

char udtxt[SMSLEN]

user data (message), PLAIN text

Definition at line 279 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 239 of file app_sms.c.

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


The documentation for this struct was generated from the following file:

Generated on Thu Apr 16 06:37:36 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6