When the warrant of arrest is executed in any county other than the one in which it is issued and is for a felony, or when for a misdemeanor and the defendant is not bailed according to the provisions of Sections 15-7-20 and 15-7-21, he must be brought before the judge or magistrate issuing the warrant or, if such judge or magistrate is unable to attend or his office is vacant, before some other judge or magistrate of the county in which such warrant is issued, and the warrant, with a proper return thereof, must be delivered to such judge or magistrate.
Ala. Code § 15-10-12 (1975)