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

Function ospPrepareResponse

modules/osp/orig_transaction.c:1114–1130  ·  view source on GitHub ↗

* Prepare response * This function does not work in branch route block. * param msg SIP message * param ignore1 * param ignore2 * return 300 or 380 success, MODULE_RETURNCODE_FALSE failure */

Source from the content-addressed store, hash-verified

1112 * return 300 or 380 success, MODULE_RETURNCODE_FALSE failure
1113 */
1114int ospPrepareResponse(
1115 struct sip_msg* msg,
1116 char* ignore1,
1117 char* ignore2)
1118{
1119 int tmp;
1120 int rsptype = 0;
1121 int result = MODULE_RETURNCODE_TRUE;
1122
1123 for(result = ospPrepareDestination(msg, OSP_FIRST_ROUTE, OSP_MAIN_ROUTE, 1, &rsptype);
1124 result == MODULE_RETURNCODE_TRUE;
1125 result = ospPrepareDestination(msg, OSP_NEXT_ROUTE, OSP_MAIN_ROUTE, 1, &tmp))
1126 {
1127 }
1128
1129 return rsptype;
1130}
1131
1132/*
1133 * Prepare all OSP routes

Callers

nothing calls this directly

Calls 1

ospPrepareDestinationFunction · 0.85

Tested by

no test coverage detected