Hi,

You have several ways to do it.
1. Through a Travel Agency
2. Hotels in Qatar
3. There is an Immigration near the Qatar Airport - you can ask you friend

Hope this helps.
Good luck