Default blocked in offline mode (mobile network)

Hello everyone .
My phone is blocked in offline mode.
The phone sees the cellular network , scans the cellular's networks , logged in them, reads the contacts of the sim , but can not call .
Probably because I flashed a ROM with the fly mode enabled, moreover, the instructions did not say anything about it . I tried to do everything from recovery , I did reset everything, and I fixed the permissions , but nothing. I had change sim card too.
What can I do ? My phone is samsung galaxy fame, is rooting, and can boot on cwm recovery .