You need to provide more information, such as the type of trunks you are using. You do have more that one trunk (one for the incoming call, and a second for the outgoing), correct?
The 3CX log will show the reason it's not working. If you don't understand what it's telling you, then post a copy.