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

Function tran_is_completed

modules/tm/t_reply.c:862–871  ·  view source on GitHub ↗

Quick and harmless test to see if the transaction still has pending branches */

Source from the content-addressed store, hash-verified

860/* Quick and harmless test to see if the transaction still has
861 pending branches */
862static inline int tran_is_completed( struct cell *t )
863{
864 int i;
865
866 for( i=t->first_branch ; i<t->nr_of_outgoings ; i++ )
867 if ( TM_BRANCH(t,i).last_received<200 )
868 return 0;
869
870 return 1;
871}
872
873
874/* This is the neurological point of reply processing -- called

Callers 1

t_should_relay_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected