I am an exchange student in Germany, with a type D visa for the length of the semester (around 5 months), however, I was offered an internship as well as I am applying for an intensive Germany course for the period of 7 months. I went to the Foreigners Office and they told me it is possible to apply for a residence permit if I provide them with a proof from the deutschkurse or the internship, proof of accomodation, and proof of subsistence. However, a friend of mine just came back from the same Foreigners' Office asking for the same thing and they told him that he would have to go back to our country of origin (Egypt) and then reapply for a new visa? I am a little worried now and I would like to know if I can actually get a residence permit in this condition or not? I have to decide soon. Thank you!