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

Function tr_parse_tz

time_rec.c:546–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546int tr_parse_tz(tmrec_p _trp, char *_in)
547{
548 if (!_trp || !_in)
549 return -1;
550
551 if (*_in < 'A' || *_in > 'Z')
552 return 1;
553
554 if (_trp->flags & PKG_ALLOC)
555 _trp->tz = pkg_strdup(_in);
556 else
557 _trp->tz = shm_strdup(_in);
558
559 if (!_trp->tz) {
560 LM_ERR("oom\n");
561 return -1;
562 }
563
564 return 0;
565}
566
567int tr_parse_dtstart(tmrec_p _trp, char *_in)
568{

Callers

nothing calls this directly

Calls 2

pkg_strdupFunction · 0.85
shm_strdupFunction · 0.85

Tested by

no test coverage detected