* 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 */
| 1090 | * return MODULE_RETURNCODE_TRUE success, MODULE_RETURNCODE_FALSE failure |
| 1091 | */ |
| 1092 | int 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 |
nothing calls this directly
no test coverage detected