Hello, friend!
The receive gain of POTS is from the DSP, not from the phone set to the POTS port, and the transmit gain is from the DSP, not from the phone set to the phone set.
Similarly, the output gain of the DSP is sent to the POTS, and the input gain is received from the POTS side.
Thanks!