sipheader.h File Reference

#include <osp/osp.h>
#include "../../parser/msg_parser.h"

Include dependency graph for sipheader.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define OSP_HEADER_SIZE   strlen(OSP_TOKEN_HEADER)
#define OSP_TOKEN_HEADER   "P-OSP-Auth-Token: "

Functions

int ospAddOspHeader (struct sip_msg *msg, unsigned char *token, unsigned int tokensize)
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 *routeparams, int buffersize)
int ospGetRpidUserpart (struct sip_msg *msg, char *fromuser, 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 *touser, int buffersize)
int ospRebuildDestionationUri (str *newuri, char *called, char *dest, char *port, int format)


Define Documentation

#define OSP_HEADER_SIZE   strlen(OSP_TOKEN_HEADER)

Definition at line 38 of file sipheader.h.

Referenced by ospGetOspHeader().

#define OSP_TOKEN_HEADER   "P-OSP-Auth-Token: "

Definition at line 37 of file sipheader.h.

Referenced by ospAddOspHeader(), and ospGetOspHeader().


Function Documentation

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

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 *  routeparams,
int  buffersize 
)

int ospGetRpidUserpart ( struct sip_msg msg,
char *  fromuser,
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 *  touser,
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().


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