The call is not recorded entirely

The recording starts only after the answer, and we need to record completely from the moment the call starts. The result is wav files with a size of 44 bytes instead of a record phone dial tone. Tell me how it can be corrected please.