Cal. Penal Code § 313.1
(a) Every person who, with knowledge that a person is a minor, or who fails to exercise reasonable care in ascertaining the true age of a minor, knowingly sells, rents, distributes, sends, causes to be sent, exhibits, or offers to distribute or exhibit by any means, including, but not limited to, live or recorded telephone messages, any harmful matter to the minor shall be punished as specified in Section 313.4.
It does not constitute a violation of this section for a telephone corporation, as defined by Section 234 of the Public Utilities Code, to carry or transmit messages described in this chapter or to perform related activities in providing telephone services.
(c)
(g) It shall be a defense in any prosecution for a violation of subdivision (a) by a person who knowingly distributed any harmful matter by the use of telephones or telephone facilities to any person under the age of 18 years that the defendant has taken either of the following measures to restrict access to the harmful matter by persons under 18 years of age:
(h) It shall be a defense in any prosecution for a violation of paragraph (2) of subdivision (c) that the defendant has taken either of the following measures to restrict access to the harmful matter by persons under 18 years of age: