End of Life Products and Features - Breaking Off DID's for FXS (FAX) within Express for Lync 2.0

End of Life Products and Features - Breaking Off DID's for FXS (FAX) within Express for Lync 2.0

The DID's can be routed directly to the FXS ports or they can be routed in and out of Lync. The reason you would want to route the DID's in and out of Lync is for CDR purposes. As well the reason for routing calls to the FXS ports is to connect with analog fax machines. 


 

Routing DID's Directly to FXS Ports

The only change that needs to be done here is to the routing rules. To edit the routing rules go to Configuration->Routing Rules and there you will see the XML routing rules. Below is the TWO rules that you will need to add along with a description of each. 
 

The purpose of this rule is to send calls coming in from the FXS (FAX) out to the PSTN with the correct caller ID.

-> The line <condition param="pstn.in.channelName" expr=".*A200.*ai1.*"/> indicates that this rule is for port 1. The port 1 is indicating by the ai1 in the expression field. Change this to ai2 for port 2.
-> The line <param name="pstn.out.callerName" expr="Sangoma Fax"/> sets the caller ID name for the port to Sangoma Fax
-> The line <param name="pstn.out.ani" expr="9054749223"/> sets the caller ID number to 9054741990.

Note: The rule Name field has to be unique for each rule. Also it should be a quick description of what the rule is doing. 

<rule name="fax_out" outbound_interface="pstn" qvalue="0.1">  <condition param="transfer" expr="false"/>  <condition param="pstn.in.channelName" expr=".*A200.*ai1.*"/>  <condition param="pstn.in.dnis" expr="(.*)"/>  <condition param="pstn.in.ani" expr="(.*)"/>  <condition param="pstn.in.callerName" expr="(.*)"/>  <out_leg name="" media_type="sendrecv">  <param name="pstn.out.channelGroup" expr="default"/>   <param name="pstn.out.callerName" expr="Sangoma Fax"/>  <param name="pstn.out.ani" expr="9054749223"/>  <param name="pstn.out.phoneNumber" expr="%0"/>   <param name="pstn.out.ani.type" expr="0"/>   <param name="pstn.out.ani.numberingPlan" expr="1"/>  <param name="pstn.out.phoneNumber.type" expr="0"/>   <param name="pstn.out.phoneNumber.numberingPlan" expr="1"/>  </out_leg>  </rule>

 

The purpose of this rule is to send calls coming in from the PSTN to the correct FXS (FAX) port. 

-> The line <condition param="pstn.in.dnis" expr="9223"/> picks out the 9054749223 DID when the call comes in on PRI. Normally the telco only sends the last 4 digits. 
-> The line <param name="pstn.out.channelGroup" expr="1001"/> sends the call to FXS port 1. If you would like to send the call to FXS port 2 change the expression to 1002

Note: The rule Name field has to be unique for each rule. Also it should be a quick description of what the rule is doing.  

 <rule name="to_9054749223" outbound_interface="pstn" qvalue="0.1">  <condition param="transfer" expr="false"/>  <condition param="pstn.in.channelName" expr=".*"/>  <condition param="pstn.in.dnis" expr="9223"/>  <condition param="pstn.in.ani" expr="(.*)"/>  <condition param="pstn.in.callerName" expr="(.*)"/>  <out_leg name="" media_type="sendrecv">  <param name="pstn.out.channelGroup" expr="1001"/>   <param name="pstn.out.callerName" expr="%1"/>  <param name="pstn.out.ani" expr="%0"/>  <param name="pstn.out.phoneNumber" expr="1111"/>   </out_leg>  </rule>