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

Function ospPrepareRoute

modules/osp/orig_transaction.c:1092–1104  ·  view source on GitHub ↗

* Prepare OSP route * This function only works in branch route block. * This function is only for OpenSIPS. * param msg SIP message * param ignore1 * param ignore2 * return MODULE_RETURNCODE_TRUE success, MODULE_RETURNCODE_FALSE failure */

Source from the content-addressed store, hash-verified

1090 * return MODULE_RETURNCODE_TRUE success, MODULE_RETURNCODE_FALSE failure
1091 */
1092int ospPrepareRoute(
1093 struct sip_msg* msg,
1094 char* ignore1,
1095 char* ignore2)
1096{
1097 int tmp = 0;
1098 int result = MODULE_RETURNCODE_TRUE;
1099
1100 /* The first parameter will be ignored */
1101 result = ospPrepareDestination(msg, OSP_FIRST_ROUTE, OSP_BRANCH_ROUTE, 0, &tmp);
1102
1103 return result;
1104}
1105
1106/*
1107 * Prepare response

Callers

nothing calls this directly

Calls 1

ospPrepareDestinationFunction · 0.85

Tested by

no test coverage detected