sipheader.c File Reference

#include <osp/osp.h>
#include <osp/ospb64.h>
#include "../../forward.h"
#include "../../parser/parse_from.h"
#include "../../parser/parse_rpid.h"
#include "../../parser/parse_rr.h"
#include "../../parser/parse_uri.h"
#include "../../data_lump.h"
#include "../../mem/mem.h"
#include "osp_mod.h"
#include "sipheader.h"

Include dependency graph for sipheader.c:

Go to the source code of this file.

Functions

int ospAddOspHeader (struct sip_msg *msg, unsigned char *token, unsigned int tokensize)
static int ospAppendHeader (struct sip_msg *msg, str *header)
void ospCopyStrToBuffer (str *source, char *buffer, int buffersize)
int ospGetCallId (struct sip_msg *msg, OSPTCALLID **callid)
int ospGetFromUserpart (struct sip_msg *msg, char *fromuser, int buffersize)
void ospGetNextHop (struct sip_msg *msg, char *nexthop, int buffersize)
int ospGetOspHeader (struct sip_msg *msg, unsigned char *token, unsigned int *tokensize)
int ospGetRouteParameters (struct sip_msg *msg, char *routeparameters, int buffersize)
int ospGetRpidUserpart (struct sip_msg *msg, char *rpiduser, int buffersize)
int ospGetSourceAddress (struct sip_msg *msg, char *sourceaddress, int buffersize)
int ospGetToUserpart (struct sip_msg *msg, char *touser, int buffersize)
int ospGetUriUserpart (struct sip_msg *msg, char *uriuser, int buffersize)
int ospRebuildDestionationUri (str *newuri, char *called, char *dest, char *port, int format)
static void ospSkipPlus (char *e164)

Variables

int _osp_use_rpid


Function Documentation

int ospAddOspHeader ( struct sip_msg msg,
unsigned char *  token,
unsigned int  tokensize 
)

static int ospAppendHeader ( struct sip_msg msg,
str header 
) [static]

void ospCopyStrToBuffer ( str source,
char *  buffer,
int  buffersize 
)

int ospGetCallId ( struct sip_msg msg,
OSPTCALLID **  callid 
)

int ospGetFromUserpart ( struct sip_msg msg,
char *  fromuser,
int  buffersize 
)

void ospGetNextHop ( struct sip_msg msg,
char *  nexthop,
int  buffersize 
)

int ospGetOspHeader ( struct sip_msg msg,
unsigned char *  token,
unsigned int *  tokensize 
)

int ospGetRouteParameters ( struct sip_msg msg,
char *  routeparameters,
int  buffersize 
)

int ospGetRpidUserpart ( struct sip_msg msg,
char *  rpiduser,
int  buffersize 
)

int ospGetSourceAddress ( struct sip_msg msg,
char *  sourceaddress,
int  buffersize 
)

int ospGetToUserpart ( struct sip_msg msg,
char *  touser,
int  buffersize 
)

int ospGetUriUserpart ( struct sip_msg msg,
char *  uriuser,
int  buffersize 
)

int ospRebuildDestionationUri ( str newuri,
char *  called,
char *  dest,
char *  port,
int  format 
)

Definition at line 487 of file sipheader.c.

References _str::len, LM_DBG, LM_ERR, NULL, pkg_malloc, and _str::s.

Referenced by ospPrepareDestination().

static void ospSkipPlus ( char *  e164  )  [static]


Variable Documentation

Definition at line 58 of file globals.c.

Referenced by ospDumpParameters(), and ospGetRpidUserpart().


Generated on Thu May 24 12:00:42 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6