Often discussions around stopping irregular migration and on the use of detention to this end refer to transit and destination countries.
This interesting article looks at the case of the Maghreb and considers whether in fact so called transit countries are increasingly becoming destination countries:  Final destination Maghreb (The compass blog)
An interesting consideration for the upcoming EE/AU discussions on irregular migration in Brussels in April, where the two bodies will seek to agree on plan of action against irregular migration and trafficking of people in a summit on April 2 and 3 in Brussels. More details.