Definition in file mod.h.
#include "../../sr_module.h"
#include "../../mem/shm_mem.h"
#include "../../mem/mem.h"
Go to the source code of this file.
Defines | |
| #define | M_NAME "S-CSCF" |
| #define | CSCF_RETURN_BREAK 0 |
| Return and break the execution of routing 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 | S_trans_in_processing (struct sip_msg *msg, char *str1, char *str2) |
| Checks if this transaction is already in processing. | |
| #define CSCF_RETURN_BREAK 0 |
| #define CSCF_RETURN_FALSE -1 |
| #define CSCF_RETURN_ERROR -2 |
| #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);\
}\
}\
}
| #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);\
}\
}\
}
| #define STR_APPEND | ( | dst, | |||
| src | ) |
| int S_trans_in_processing | ( | struct sip_msg * | msg, | |
| char * | str1, | |||
| char * | str2 | |||
| ) |
Checks if this transaction is already in processing.
| msg | - the SIP message | |
| str1 | - not used | |
| str2 | - not used |
Definition at line 842 of file mod.c.
References CSCF_RETURN_FALSE, and CSCF_RETURN_TRUE.
00843 { 00844 unsigned int hash, label; 00845 if (tmb.t_get_trans_ident(msg,&hash,&label)<0) 00846 return CSCF_RETURN_FALSE; 00847 return CSCF_RETURN_TRUE; 00848 }
1.5.2