If the child is born here in Qatar, and the mother has different sponsor with the father, the mother will be the sponsor and the baby will first get visit visa, then you will have to go and open the visa at 3 with the passport photo, international passport and RP form.

There, they will check at if the child has not overstayed. If so, you will have to pay the fine, and the visa will be converted to USED INSIDE COUNTRY, then you will pay for RP and get residence for the child.