Asterisk - The Open Source Telephony Project  GIT-master-932eae6
Data Fields
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 218 of file app_sms.c.

Field Documentation

◆ cli

char cli[20]

caller ID

Definition at line 240 of file app_sms.c.

Referenced by sms_exec(), and sms_handleincoming().

◆ da

char da[20]

◆ dcs

unsigned char dcs

data coding scheme

Definition at line 230 of file app_sms.c.

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

◆ err

unsigned char err

set for any errors

Definition at line 220 of file app_sms.c.

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

◆ framenumber

int framenumber

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

Definition at line 276 of file app_sms.c.

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

◆ hangup

unsigned char hangup

we are done...

Definition at line 219 of file app_sms.c.

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

◆ ibitc

unsigned char ibitc

bit run length count

Definition at line 262 of file app_sms.c.

Referenced by sms_process().

◆ ibith

unsigned char ibith

history of last bits

Definition at line 269 of file app_sms.c.

Referenced by sms_process().

◆ ibitl

unsigned char ibitl

last bit

Definition at line 261 of file app_sms.c.

Referenced by sms_process().

◆ ibitn

unsigned char ibitn

bit number in byte being received

Definition at line 264 of file app_sms.c.

Referenced by sms_process().

◆ ibitt

unsigned char ibitt

total of 1's in last 3 bytes

Definition at line 270 of file app_sms.c.

Referenced by sms_process().

◆ ibytec

unsigned char ibytec

byte checksum for message

Definition at line 267 of file app_sms.c.

Referenced by sms_process().

◆ ibytep

unsigned char ibytep

byte pointer in message

Definition at line 266 of file app_sms.c.

Referenced by sms_debug(), and sms_process().

◆ ibytev

unsigned char ibytev

byte value being received

Definition at line 265 of file app_sms.c.

Referenced by sms_process().

◆ idle

unsigned int idle

Definition at line 255 of file app_sms.c.

Referenced by sms_process().

◆ ierr

unsigned char ierr

error flag

Definition at line 268 of file app_sms.c.

Referenced by sms_process().

◆ imag

unsigned short imag

signal level

Definition at line 256 of file app_sms.c.

Referenced by sms_process().

◆ imc0

signed long long imc0

Definition at line 251 of file app_sms.c.

Referenced by sms_process().

◆ imc1

signed long long imc1

magnitude averages sin/cos 0/1

Definition at line 251 of file app_sms.c.

Referenced by sms_process().

◆ ims0

signed long long ims0

Definition at line 251 of file app_sms.c.

Referenced by sms_process().

◆ ims1

signed long long ims1

Definition at line 251 of file app_sms.c.

Referenced by sms_process().

◆ imsg

unsigned char imsg[250]

data buffer (in)

Definition at line 250 of file app_sms.c.

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

◆ ipc0

unsigned char ipc0

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

Definition at line 259 of file app_sms.c.

Referenced by sms_exec(), and sms_process().

◆ ipc1

unsigned char ipc1

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

Definition at line 260 of file app_sms.c.

Referenced by sms_exec(), and sms_process().

◆ iphasep

unsigned char iphasep

bit phase (0-79) for 1200 bps

Definition at line 263 of file app_sms.c.

Referenced by sms_process().

◆ ips0

unsigned char ips0

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

Definition at line 257 of file app_sms.c.

Referenced by sms_process().

◆ ips1

unsigned char ips1

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

Definition at line 258 of file app_sms.c.

Referenced by sms_process().

◆ mr

short mr

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

Definition at line 231 of file app_sms.c.

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

◆ nolog

unsigned char nolog

do not log plain text SMS content (privacy)

Definition at line 224 of file app_sms.c.

Referenced by sms_exec(), and sms_log().

◆ oa

char oa[20]

◆ obitp

unsigned char obitp

bit in byte

Definition at line 245 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

◆ obyte

unsigned char obyte

byte being sent

Definition at line 243 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

◆ obyten

unsigned char obyten

bytes in data

Definition at line 248 of file app_sms.c.

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

◆ obytep

unsigned char obytep

byte in data

Definition at line 247 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

◆ omsg

unsigned char omsg[256]

◆ opause

unsigned int opause

silent pause before sending (in sample periods)

Definition at line 244 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

◆ opause_0

int opause_0

initial delay in ms, p() option

Definition at line 273 of file app_sms.c.

Referenced by sms_exec(), and sms_messagetx().

◆ ophase

unsigned char ophase

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

Definition at line 241 of file app_sms.c.

Referenced by sms_generate().

◆ ophasep

unsigned char ophasep

phase (0-79) for 1200 bps

Definition at line 242 of file app_sms.c.

Referenced by sms_generate().

◆ oseizure

int oseizure

protocol 2: channel seizure bits to send

Definition at line 275 of file app_sms.c.

Referenced by sms_generate(), and sms_messagetx().

◆ osync

unsigned char osync

sync bits to send

Definition at line 246 of file app_sms.c.

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

◆ pid

unsigned char pid

protocol ID

Definition at line 229 of file app_sms.c.

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

◆ protocol

int protocol

ETSI SMS protocol to use (passed at app call)

Definition at line 274 of file app_sms.c.

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

◆ queue

char queue[30]

queue name

Definition at line 225 of file app_sms.c.

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

◆ rp

unsigned char rp

Reply Path

Definition at line 236 of file app_sms.c.

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

◆ rx

unsigned char rx

this is a received message

Definition at line 223 of file app_sms.c.

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

◆ scts

struct timeval scts

◆ sent_rel

unsigned char sent_rel

have sent REL message...

Definition at line 221 of file app_sms.c.

Referenced by sms_nextoutgoing(), and sms_process().

◆ smsc

unsigned char smsc

we are SMSC

Definition at line 222 of file app_sms.c.

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

◆ srr

unsigned char srr

Status Report request

Definition at line 234 of file app_sms.c.

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

◆ ud

unsigned short ud[SMSLEN]

◆ udh

unsigned char udh[SMSLEN]

user data header

Definition at line 239 of file app_sms.c.

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

◆ udhi

unsigned char udhi

User Data Header required, even if length 0

Definition at line 235 of file app_sms.c.

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

◆ udhl

int udhl

user data header length

Definition at line 233 of file app_sms.c.

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

◆ udl

int udl

◆ udtxt

char udtxt[SMSLEN]

user data (message), PLAIN text

Definition at line 277 of file app_sms.c.

Referenced by putdummydata_proto2(), and sms_readfile().

◆ vp

unsigned int vp

validity period in minutes, 0 for not set

Definition at line 237 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: