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

Function env_set_code_status

modules/acc/acc_logic.c:250–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248
249
250static 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
269static inline void env_set_comment(struct acc_param *accp)

Callers 2

on_missedFunction · 0.85
acc_onreplyFunction · 0.85

Calls 2

int2bstrFunction · 0.85
error_textFunction · 0.85

Tested by

no test coverage detected