* Check value of parameters */
| 127 | * Check value of parameters |
| 128 | */ |
| 129 | static 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 | |
| 154 | static inline unsigned int dlg2hash( dlg_t* dlg ) |
no outgoing calls
no test coverage detected