* Check destination status for reporting usage * param code Destination status * return 1 should report, 0 should not report */
| 456 | * return 1 should report, 0 should not report |
| 457 | */ |
| 458 | static int ospIsToReportUsage( |
| 459 | int code) |
| 460 | { |
| 461 | int istime = 0; |
| 462 | |
| 463 | LM_DBG("code '%d'\n", code); |
| 464 | if (code >= 200) { |
| 465 | istime = 1; |
| 466 | } |
| 467 | |
| 468 | return istime; |
| 469 | } |
| 470 | |
| 471 | /* |
| 472 | * Report call setup usage for both client and server side |