How to send RightFax faxes through Lync?

I have Rightfax working through my AudioCodes gateway but I would like to send the calls through Lync and then to AudioCodes so Lync will log the fax in the Monitoring Reports.

I added our fax DID into Lync using the command:

New-CsAnalogDevice -AnalogFax $True -Gateway 192.168.X.XXX -LineUri tel:+1678208XXX -DisplayName RighFax Service -DisplayNumber "(678) 208-XXX" -SipAddress "sip:RightFax@sipdomain.com" -DN
"cn=Rightfax,ou=Service Account,dc=domain,dc=local -RegistrarPool lyncfepool.sipdomain.com

Current call flow: 

Inbound: PSTN -> AudioCodes -> RightFax

Outbound: RightFax -> AudioCodes -> PSTN

New Call Flow:

Inbound: PSTN -> AudioCodes -> Lync -> RightFax

Outbound: RightFax -> Lync -> AudioCodes -> PSTN

Has anyone found a way to make this work?  In can see inbound calls making it to Lync but it says Gateway responded with "404 user not found".  Outbound calls from Rightfax never make it to Lync and I think its because Rightfax wants to talk UDP SIP and Lync is only TCP SIP.

August 14th, 2012 9:00pm

I have Rightfax working through my AudioCodes gateway but I would like to send the calls through Lync and then to AudioCodes so Lync will log the fax in the Monitoring Reports.

I added our fax DID into Lync using the command:

New-CsAnalogDevice -AnalogFax $True -Gateway 192.168.X.XXX -LineUri tel:+1678208XXX -DisplayName RighFax Service -DisplayNumber "(678) 208-XXX" -SipAddress "sip:RightFax@sipdomain.com" -DN
"cn=Rightfax,ou=Service Account,dc=domain,dc=local -RegistrarPool lyncfepool.sipdomain.com

Current call flow: 

Inbound: PSTN -> AudioCodes -> RightFax

Outbound: RightFax -> AudioCodes -> PSTN

New Call Flow:

Inbound: PSTN -> AudioCodes -> Lync -> RightFax

Outbound: RightFax -> Lync -> AudioCodes -> PSTN

Has anyone found a way to make this work?  In can see inbound calls making it to Lync but it says Gateway responded with "404 user not found".  Outbound calls from Rightfax never make it to Lync and I think its because Rightfax wants to talk UDP SIP and Lync is only TCP SIP.


Lync does not support T.38 protocol so you would have hard time getting faxes through Lync. Lync supports only analog devices for FAXes and it works only if you got media bypass working as well.
Free Windows Admin Tool Kit Click here and download it now
August 15th, 2012 8:39am

I have Rightfax working through my AudioCodes gateway but I would like to send the calls through Lync and then to AudioCodes so Lync will log the fax in the Monitoring Reports.

I added our fax DID into Lync using the command:

New-CsAnalogDevice -AnalogFax $True -Gateway 192.168.X.XXX -LineUri tel:+1678208XXX -DisplayName RighFax Service -DisplayNumber "(678) 208-XXX" -SipAddress "sip:RightFax@sipdomain.com" -DN
"cn=Rightfax,ou=Service Account,dc=domain,dc=local -RegistrarPool lyncfepool.sipdomain.com

Current call flow: 

Inbound: PSTN -> AudioCodes -> RightFax

Outbound: RightFax -> AudioCodes -> PSTN

New Call Flow:

Inbound: PSTN -> AudioCodes -> Lync -> RightFax

Outbound: RightFax -> Lync -> AudioCodes -> PSTN

Has anyone found a way to make this work?  In can see inbound calls making it to Lync but it says Gateway responded with "404 user not found".  Outbound calls from Rightfax never make it to Lync and I think its because Rightfax wants to talk UDP SIP and Lync is only TCP SIP.


Lync does not support T.38 protocol so you would have hard time getting faxes through Lync. Lync supports only analog devices for FAXes and it works only if you got media bypass working as well.
August 15th, 2012 8:39am

It is not possible.

Lync will not route faxcalls.

If your route all calls to Lync and Lync detect a faxnumber, configured in Lync as analog fax, the call will be route directly back to the same Gateway.

So, to monitor the calls for Rightfax is only possible directly on the Audiocodes GW.

Free Windows Admin Tool Kit Click here and download it now
August 15th, 2012 9:10am

I just got this working last week. I doubt this is supported by Microsoft, Audiocodes or OpenText but it works.

Incoming

PSTN - > Audiocodes -> Lync (Call tracing/logging information captured)

                     |--------> Media Bypass -> RightFax

Outgoing

RightFax -> Lync (Call tracing/logging information captured)

                     |--------> Media Bypass -> Audiocodes -> PSTN

I am using the following configuration

RightFax: 9.40 Enterprise (w/SP1 SR4)

Brooktrout: TRxStream Board (Driver 6.2.0.4)

Using the Brooktrout Configuration Tool, I configured the board as follows

Call Control Parameters\Module

     Call Control: IP

     IP Call Control Module: SIP (with IP information defined)

IP Call Control Modules\SIP

     IP Parameters

          Primary Gateway: Points at the audiocodes box, port 5060

          From Value: <sip:[E.164_PHONENUMBER]@[RIGHTFAX_IPADDRESS]:5060>

                          This has to be set to a valid phone number in Lync, otherwise Lync will   not accept it. You can SIP enable the RightFax service account and use that. Note that the RIGHTFAX_IPADDRESS value should be the server IP address, not the IP assigned to the fax board.

     T.38 Parameters

          Fax Transporting Protocol: G.711 Pass-through only (note that you may have to stop the DocTransport Module in order to make this field accessible).

           Max Bit Rate, bps:  14400 (cannot be set any higher with Audiocodes integration)

Everything else is set to defaults

Audiocodes configuration
Fax/Modem/CID Settings
 Fax Transport Mode: RelayEnable
 Fax CNG Mode: Doesnt send T.38 Re-INVITE
 CNG Detector Mode: Disable
 Fax Relay Max Rate (bps): 14400bps
 Fax/Modem Bypass Coder Type: G711Mulaw
 
Create an entry for the RightFax server in the IP Group Table and the Proxy Sets Table
 
VoIP > SIP Definitions > General Parameters
 Fax Signaling Method: G.711 Transport
 Detect Fax on Answer Tone: Initiate T.38 on Preamble

VoIP > GW and IP to IP > Routing > Tel to IP Routing
 1. If the Src IP Group ID is the RightFax index number from the IP Group Table, send it to the Lync server with the proper protcol (we use TLS)
    2. It the destination phone number is a Fax phone number send it to the RightFax server with the UDP protocol


VoIP > GW and IP to IP > Routing > IP to Trunk Group Routing
 1. If the Source IP address is the RightFax server IP address, send to Trunk group -1, set the Source IP to the RightFax server based on the IP Group table value

Using the above configuration I have been able to send and recieve all faxes I have tested.


  • Edited by Eddie Berge Monday, October 22, 2012 4:29 PM
  • Proposed as answer by Alba Yang Friday, January 10, 2014 3:38 AM
October 22nd, 2012 7:13pm

I just got this working last week. I doubt this is supported by Microsoft, Audiocodes or OpenText but it works.

Incoming

PSTN - > Audiocodes -> Lync (Call tracing/logging information captured)

                     |--------> Media Bypass -> RightFax

Outgoing

RightFax -> Lync (Call tracing/logging information captured)

                     |--------> Media Bypass -> Audiocodes -> PSTN

I am using the following configuration

RightFax: 9.40 Enterprise (w/SP1 SR4)

Brooktrout: TRxStream Board (Driver 6.2.0.4)

Using the Brooktrout Configuration Tool, I configured the board as follows

Call Control Parameters\Module

     Call Control: IP

     IP Call Control Module: SIP (with IP information defined)

IP Call Control Modules\SIP

     IP Parameters

          Primary Gateway: Points at the audiocodes box, port 5060

          From Value: <sip:[E.164_PHONENUMBER]@[RIGHTFAX_IPADDRESS]:5060>

                          This has to be set to a valid phone number in Lync, otherwise Lync will   not accept it. You can SIP enable the RightFax service account and use that. Note that the RIGHTFAX_IPADDRESS value should be the server IP address, not the IP assigned to the fax board.

     T.38 Parameters

          Fax Transporting Protocol: G.711 Pass-through only (note that you may have to stop the DocTransport Module in order to make this field accessible).

           Max Bit Rate, bps:  14400 (cannot be set any higher with Audiocodes integration)

Everything else is set to defaults

Audiocodes configuration
Fax/Modem/CID Settings
 Fax Transport Mode: RelayEnable
 Fax CNG Mode: Doesnt send T.38 Re-INVITE
 CNG Detector Mode: Disable
 Fax Relay Max Rate (bps): 14400bps
 Fax/Modem Bypass Coder Type: G711Mulaw
 
Create an entry for the RightFax server in the IP Group Table and the Proxy Sets Table
 
VoIP > SIP Definitions > General Parameters
 Fax Signaling Method: G.711 Transport
 Detect Fax on Answer Tone: Initiate T.38 on Preamble

VoIP > GW and IP to IP > Routing > Tel to IP Routing
 1. If the Src IP Group ID is the RightFax index number from the IP Group Table, send it to the Lync server with the proper protcol (we use TLS)
    2. It the destination phone number is a Fax phone number send it to the RightFax server with the UDP protocol


VoIP > GW and IP to IP > Routing > IP to Trunk Group Routing
 1. If the Source IP address is the RightFax server IP address, send to Trunk group -1, set the Source IP to the RightFax server based on the IP Group table value

Using the above configuration I have been able to send and recieve all faxes I have tested.


  • Edited by Eddie Berge Monday, October 22, 2012 4:29 PM
  • Proposed as answer by Alba Yang Friday, January 10, 2014 3:38 AM
Free Windows Admin Tool Kit Click here and download it now
October 22nd, 2012 7:13pm

What Versions of Lync are you using?  Server/Client
January 13th, 2014 9:00am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics