Section 5. (a) A person who obtains the name, residential address or telephone number of a consumer from published telephone directories or from any other source and republishes or compiles such information, electronically or otherwise, and sells or offers to sell such publication or compilation to telephone solicitors for marketing or sales solicitation purposes shall, in accordance with this chapter, exclude from any such publication or compilation and from any database used exclusively for marketing or sales solicitation purposes, the name, address and telephone number of a consumer whose name and telephone number appears in the then current quarterly no sales solicitation calls listing made available by the office under section 2.

(b) This section shall not apply to: (i) a telephone company, subject to the authority of the department of telecommunications and energy, for the sole purpose of compiling, publishing or distributing telephone directories or causing the compilation, publication or distribution of telephone directories or providing directory assistance; and (ii) a person, for the sole purpose of compiling, publishing or distributing telephone directories for such telephone company pursuant to an agreement or other arrangement with such telephone company.