mod.h File Reference


Detailed Description

Proxy-CSCF - SER module interface.

Author:
Dragos Vingarzan vingarzan -at- fokus dot fraunhofer dot de

Definition in file mod.h.

#include "../../sr_module.h"

Go to the source code of this file.

Defines

#define M_NAME   "P-CSCF"
#define CSCF_RETURN_BREAK   0
 Return and break the execution of routng script.
#define CSCF_RETURN_TRUE   1
 Return true in the routing script.
#define CSCF_RETURN_FALSE   -1
 Return false in the routing script.
#define CSCF_RETURN_ERROR   -2
 Return error in the routing script.
#define STR_SHM_DUP(dest, src, txt)
#define STR_PKG_DUP(dest, src, txt)
#define STR_APPEND(dst, src)
#define ANSI_GRAY   "\033[01;30m"
#define ANSI_BLINK_RED   "\033[00;31m"
#define ANSI_RED   "\033[01;31m"
#define ANSI_GREEN   "\033[01;32m"
#define ANSI_YELLOW   "\033[01;33m"
#define ANSI_BLUE   "\033[01;34m"
#define ANSI_MAGENTA   "\033[01;35m"
#define ANSI_CYAN   "\033[01;36m"
#define ANSI_WHITE   "\033[01;37m"

Functions

int P_trans_in_processing (struct sip_msg *msg, char *str1, char *str2)
 Checks if the transaction is in processing.

Variables

unsigned long(*) get_tls_session_hash (struct sip_msg *msg)


Define Documentation

#define M_NAME   "P-CSCF"

Definition at line 161 of file mod.h.

#define CSCF_RETURN_BREAK   0

Return and break the execution of routng script.

Definition at line 164 of file mod.h.

#define CSCF_RETURN_TRUE   1

Return true in the routing script.

Definition at line 166 of file mod.h.

#define CSCF_RETURN_FALSE   -1

Return false in the routing script.

Definition at line 168 of file mod.h.

#define CSCF_RETURN_ERROR   -2

Return error in the routing script.

Definition at line 170 of file mod.h.

#define STR_SHM_DUP ( dest,
src,
txt   ) 

Value:

{\
    if ((src).len==0) {\
        (dest).s=0;\
        (dest).len=0;\
    }else {\
        (dest).s = shm_malloc((src).len);\
        if (!(dest).s){\
            LOG(L_ERR,"ERR:"M_NAME":"txt": Error allocating %d bytes\n",(src).len);\
            (dest).len = 0;\
            goto out_of_memory;\
        }else{\
            (dest).len = (src).len;\
            memcpy((dest).s,(src).s,(src).len);\
        }\
    }\
}

Definition at line 174 of file mod.h.

#define STR_PKG_DUP ( dest,
src,
txt   ) 

Value:

{\
    if ((src).len==0) {\
        (dest).s=0;\
        (dest).len=0;\
    }else {\
        (dest).s = pkg_malloc((src).len);\
        if (!(dest).s){\
            LOG(L_ERR,"ERRL:"M_NAME":"txt": Error allocating %d bytes\n",(src).len);\
            (dest).len = 0;\
            goto out_of_memory;\
        }else{\
            (dest).len = (src).len;\
            memcpy((dest).s,(src).s,(src).len);\
        }\
    }\
}

Definition at line 192 of file mod.h.

#define STR_APPEND ( dst,
src   ) 

Value:

{memcpy((dst).s+(dst).len,(src).s,(src).len);\
    (dst).len = (dst).len + (src).len;}

Definition at line 210 of file mod.h.

#define ANSI_GRAY   "\033[01;30m"

Definition at line 215 of file mod.h.

#define ANSI_BLINK_RED   "\033[00;31m"

Definition at line 216 of file mod.h.

#define ANSI_RED   "\033[01;31m"

Definition at line 217 of file mod.h.

#define ANSI_GREEN   "\033[01;32m"

Definition at line 218 of file mod.h.

#define ANSI_YELLOW   "\033[01;33m"

Definition at line 219 of file mod.h.

#define ANSI_BLUE   "\033[01;34m"

Definition at line 220 of file mod.h.

#define ANSI_MAGENTA   "\033[01;35m"

Definition at line 221 of file mod.h.

#define ANSI_CYAN   "\033[01;36m"

Definition at line 222 of file mod.h.

#define ANSI_WHITE   "\033[01;37m"

Definition at line 223 of file mod.h.


Function Documentation

int P_trans_in_processing ( struct sip_msg *  msg,
char *  str1,
char *  str2 
)

Checks if the transaction is in processing.

Parameters:
msg - the SIP message to check
str1 - not used
str2 - not used
Returns:
CSCF_RETURN_TRUE if the transaction is already in processing, CSCF_RETURN_FALSE if not

Definition at line 875 of file mod.c.

References CSCF_RETURN_FALSE, CSCF_RETURN_TRUE, and tmb.

00876 {
00877     unsigned int hash, label;
00878     if (tmb.t_get_trans_ident(msg,&hash,&label)<0)
00879         return CSCF_RETURN_FALSE;
00880     return CSCF_RETURN_TRUE;    
00881 }


Variable Documentation

unsigned long(* ) get_tls_session_hash(struct sip_msg *msg)

Definition at line 225 of file mod.h.

Referenced by mod_init(), P_is_integrity_protected(), P_security_200(), and tls_get_session_hash().


Generated on Thu Oct 23 04:14:40 2008 for Open IMS Core CSCFs by  doxygen 1.5.2