MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / check_params

Function check_params

modules/tm/uac.c:129–151  ·  view source on GitHub ↗

* Check value of parameters */

Source from the content-addressed store, hash-verified

127 * Check value of parameters
128 */
129static inline int check_params(str* method, str* to, str* from, dlg_t** dialog)
130{
131 if (!method || !to || !from || !dialog) {
132 LM_ERR("invalid parameter value\n");
133 return -1;
134 }
135
136 if (!method->s || !method->len) {
137 LM_ERR("invalid request method\n");
138 return -2;
139 }
140
141 if (!to->s || !to->len) {
142 LM_ERR("invalid To URI\n");
143 return -4;
144 }
145
146 if (!from->s || !from->len) {
147 LM_ERR("invalid From URI\n");
148 return -5;
149 }
150 return 0;
151}
152
153
154static inline unsigned int dlg2hash( dlg_t* dlg )

Callers 2

req_outsideFunction · 0.85
requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected