| 248 | |
| 249 | |
| 250 | static inline void env_set_code_status( int code, struct sip_msg *reply) |
| 251 | { |
| 252 | static char code_buf[INT2STR_MAX_LEN]; |
| 253 | |
| 254 | acc_env.code = code; |
| 255 | if (reply==FAKED_REPLY || reply==NULL) { |
| 256 | /* code */ |
| 257 | acc_env.code_s.s = |
| 258 | int2bstr((unsigned long)code, code_buf, &acc_env.code_s.len); |
| 259 | /* reason */ |
| 260 | acc_env.reason.s = error_text(code); |
| 261 | acc_env.reason.len = strlen(acc_env.reason.s); |
| 262 | } else { |
| 263 | acc_env.code_s = reply->first_line.u.reply.status; |
| 264 | acc_env.reason = reply->first_line.u.reply.reason; |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | |
| 269 | static inline void env_set_comment(struct acc_param *accp) |
no test coverage detected