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

Function t_was_cancelled

modules/tm/tm.c:1240–1252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1238
1239
1240static int t_was_cancelled(struct sip_msg* msg)
1241{
1242 struct cell *t;
1243
1244 /* first get the transaction */
1245 t = get_t();
1246 if ( t==0 || t==T_UNDEFINED ) {
1247 LM_ERR("failed to check cancel flag for a reply"
1248 " without a transaction\n");
1249 return -1;
1250 }
1251 return was_cancelled(t)?1:-1;
1252}
1253
1254
1255static int w_t_reply(struct sip_msg* msg, unsigned int code, str* text)

Callers

nothing calls this directly

Calls 1

get_tFunction · 0.85

Tested by

no test coverage detected