libsms_putsms.c File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <syslog.h>
#include "sms_funcs.h"
#include "libsms_charset.h"
#include "libsms_modem.h"

Include dependency graph for libsms_putsms.c:

Go to the source code of this file.

Functions

int ascii2pdu (char *ascii, int asciiLength, char *pdu, int cs_convert)
int binary2pdu (char *binary, int length, char *pdu)
int fetch_sms_id (char *answer)
int make_pdu (struct sms_msg *msg, struct modem *mdm, char *pdu)
int putsms (struct sms_msg *sms_messg, struct modem *mdm)
void swapchars (char *string, int len)

Variables

static char hexa [16]
int sms_report_type


Function Documentation

int ascii2pdu ( char *  ascii,
int  asciiLength,
char *  pdu,
int  cs_convert 
)

Definition at line 54 of file libsms_putsms.c.

References ascii2sms(), and hexa.

Referenced by make_pdu().

int binary2pdu ( char *  binary,
int  length,
char *  pdu 
)

Definition at line 98 of file libsms_putsms.c.

References hexa.

int fetch_sms_id ( char *  answer  )  [inline]

Definition at line 159 of file libsms_putsms.c.

References id.

Referenced by putsms().

int make_pdu ( struct sms_msg msg,
struct modem mdm,
char *  pdu 
)

int putsms ( struct sms_msg sms_messg,
struct modem mdm 
)

void swapchars ( char *  string,
int  len 
)

Definition at line 36 of file libsms_putsms.c.

Referenced by make_pdu(), split_type_0(), split_type_2(), and splitpdu().


Variable Documentation

char hexa[16] [static]

Initial value:

 {
   '0','1','2','3','4','5','6','7',
   '8','9','A','B','C','D','E','F'
   }

Definition at line 30 of file libsms_putsms.c.

Referenced by ascii2pdu(), and binary2pdu().

Definition at line 28 of file libsms_putsms.c.


Generated on Wed May 23 18:00:41 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6