In instances in which the surety or sureties have in their possession a bondsman's process for the defendant and the surety wishes to place a detainer against the defendant with the officer having custody of the defendant, all law enforcement officers of the State of Alabama, or its subdivisions, who have custody of any defendant under bail within the terms of this chapter, shall accept the bondsman's process as a detainer and hold the defendant in custody until the case pending against the defendant in the jurisdiction having custody, has been discharged or until the defendant is authorized to be released from custody by other means set out by law. Upon discharge or release, the officer having custody shall notify the surety that the defendant is ready to be released and the surety shall arrest the defendant and return the defendant to the court of jurisdiction. After the officer has given the surety notice of the release, the surety shall appear before the officer to receive the defendant within 24 hours or the defendant shall be released and detainer cancelled.
Ala. Code § 15-13-122 (1975)