* 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 */
| 1112 | * return 300 or 380 success, MODULE_RETURNCODE_FALSE failure |
| 1113 | */ |
| 1114 | int 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 |
nothing calls this directly
no test coverage detected