I have seen that the HC05 will not pair with another device if it is in master mode.
I wrote a tutorial for putting the HC05 into AT mode. >> Setting HC05 (ZS-040) to AT mode
With help of Martyn Currie' pages. >> Arduino with HC-05 (ZS-040) Bluetooth module – AT MODE | Martyn Currey
Change to slave mode with AT+ROLE=0
Lots of info about the HC05 from Martyn Currie. >> HC-05 | Martyn Currey