Cal. Penal Code § 25585
Section 25400 does not apply to, or affect, the transportation of a firearm by a person for the purpose of obtaining an identification number or mark assigned to that firearm from the Department of Justice pursuant to Section 23910.