destination.c File Reference

#include <string.h>
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "../../str.h"
#include "../../dprint.h"
#include "../../usr_avp.h"
#include "destination.h"
#include "usage.h"

Include dependency graph for destination.c:

Go to the source code of this file.

Functions

int ospCheckOrigDestination (void)
void ospConvertAddress (char *src, char *dst, int buffersize)
void ospDumpAllDestination (void)
void ospDumpDestination (osp_dest *dest)
osp_destospGetLastOrigDestination (void)
osp_destospGetNextOrigDestination (void)
osp_destospGetTermDestination (void)
osp_destospInitDestination (osp_dest *dest)
static int ospIsToReportUsage (int code)
static void ospRecordCode (int code, osp_dest *dest)
void ospRecordEvent (int clientcode, int servercode)
static int ospSaveDestination (osp_dest *dest, const str *name)
int ospSaveOrigDestination (osp_dest *dest)
int ospSaveTermDestination (osp_dest *dest)

Variables

const str OSP_ORIGDEST_NAME = {"_osp_orig_dests_", 16}
const str OSP_TERMDEST_NAME = {"_osp_term_dests_", 16}


Function Documentation

int ospCheckOrigDestination ( void   ) 

void ospConvertAddress ( char *  src,
char *  dst,
int  buffersize 
)

Definition at line 428 of file destination.c.

References snprintf.

Referenced by ospBuildUsageFromDestination(), ospReportUsageFromCookie(), and ospRequestRouting().

void ospDumpAllDestination ( void   ) 

void ospDumpDestination ( osp_dest dest  ) 

osp_dest* ospGetLastOrigDestination ( void   ) 

osp_dest* ospGetNextOrigDestination ( void   ) 

osp_dest* ospGetTermDestination ( void   ) 

osp_dest* ospInitDestination ( osp_dest dest  ) 

static int ospIsToReportUsage ( int  code  )  [static]

Definition at line 325 of file destination.c.

References LM_DBG.

Referenced by ospRecordEvent().

static void ospRecordCode ( int  code,
osp_dest dest 
) [static]

void ospRecordEvent ( int  clientcode,
int  servercode 
)

static int ospSaveDestination ( osp_dest dest,
const str name 
) [static]

Definition at line 76 of file destination.c.

References add_avp(), AVP_NAME_STR, AVP_VAL_STR, _str::len, LM_DBG, LM_ERR, and _str::s.

Referenced by ospSaveOrigDestination(), and ospSaveTermDestination().

int ospSaveOrigDestination ( osp_dest dest  ) 

Definition at line 105 of file destination.c.

References ospSaveDestination().

Referenced by ospLoadRoutes().

int ospSaveTermDestination ( osp_dest dest  ) 

Definition at line 116 of file destination.c.

References ospSaveDestination().

Referenced by ospValidateHeader().


Variable Documentation

const str OSP_ORIGDEST_NAME = {"_osp_orig_dests_", 16}

Definition at line 43 of file destination.c.

const str OSP_TERMDEST_NAME = {"_osp_term_dests_", 16}

Definition at line 44 of file destination.c.


Generated on Tue May 22 16:00:38 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6