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

Function ospIsToReportUsage

modules/osp/destination.c:458–469  ·  view source on GitHub ↗

* Check destination status for reporting usage * param code Destination status * return 1 should report, 0 should not report */

Source from the content-addressed store, hash-verified

456 * return 1 should report, 0 should not report
457 */
458static 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

Callers 1

ospRecordEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected