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

Function get_min_interval

time_rec.c:1280–1292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1278}
1279
1280static inline int get_min_interval(tmrec_p _trp)
1281{
1282 if(_trp->freq == FREQ_DAILY || _trp->byday || _trp->bymday || _trp->byyday)
1283 return FREQ_DAILY;
1284 if(_trp->freq == FREQ_WEEKLY || _trp->byweekno)
1285 return FREQ_WEEKLY;
1286 if(_trp->freq == FREQ_MONTHLY || _trp->bymonth)
1287 return FREQ_MONTHLY;
1288 if(_trp->freq == FREQ_YEARLY)
1289 return FREQ_YEARLY;
1290
1291 return FREQ_NOFREQ;
1292}
1293
1294
1295int check_recur_itv(struct tm *x, struct tm *bgn, struct tm *end,

Callers 2

check_min_unitFunction · 0.85
_tmrec_parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected