Patent ID: 8891743

Claim:
A method comprising: establishing, by a gateway, a communication session between a first endpoint and a second endpoint, the communication session including an analog voice signal; forwarding the analog voice signal of the communication session using an initial gain level; converting, by a digital signal processor embedded in the gateway, the analog voice signal to a digital voice signal; detecting a clipping level in the digital voice signal at the digital signal processor; detecting a state transition in the communication session at the digital signal processor, wherein the state transition indicates the analog voice signal has been identified as an analog fax signal; selectively adjusting, by the digital signal processor, the initial gain level due to detection of the state transition, according to the detected clipping level of the digital voice signal; converting, by the digital signal processor, the analog fax signal to a digital fax signal subsequent to the selective adjustment of the initial gain level; and forwarding the digital fax signal using the selectively adjusted gain level.