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

Function t_get_trans_ident

modules/tm/t_lookup.c:1181–1199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1179}
1180
1181int t_get_trans_ident(struct sip_msg* p_msg, unsigned int* hash_index,
1182 unsigned int* label)
1183{
1184 struct cell* t;
1185 if(t_check(p_msg,0) != 1){
1186 LM_ERR("no transaction found\n");
1187 return -1;
1188 }
1189 t = get_t();
1190 if(!t){
1191 LM_ERR("transaction found is NULL\n");
1192 return -1;
1193 }
1194
1195 *hash_index = t->hash_index;
1196 *label = t->label;
1197
1198 return 1;
1199}
1200
1201
1202/* Looks for the transaction with the given coordinates (index/label).

Callers 1

assemble_msgFunction · 0.85

Calls 2

t_checkFunction · 0.85
get_tFunction · 0.85

Tested by

no test coverage detected