Routing inbound calls (ss7->sip) based on the E1/T1 port

 

Syntax:

<condition field="${freetdm_span_number}" expression="X" break="never">     <action application="bridge" data="sofia/internal/${destnumber}@<ip address>:<port>"/>                       <action application="hangup" data="${originate_disposition}"/> </condition>

 

Detailed description:

 In the above dialplan  replace  ‘X’ with the E1/T1 port you want to target.

 Also replace <ip address>:<port> with IP address and port of the sip end point you want to send the traffic to

  

Below is an example of traffic from port 2 that routes to softswitch 1.2.3.4:5060 and port 3 that routes to softswitch 5.6.7.8:5060: 

<condition field="${freetdm_span_number}" expression="2" break="never">      <action application="bridge" data="sofia/internal/${destnumber}@1.2.3.4:5060"/>     <action application="hangup" data="${originate_disposition}"/>          </condition>
<condition field="${freetdm_span_number}" expression="3" break="never">      <action application="bridge" data="sofia/internal/${destnumber}@5.6.7.8:5060"/>     <action application="hangup" data="${originate_disposition}"/>          </condition>

 

 Where to place these condition statements

 The above dialplan examples must be placed within the <context name="from-pstn-to-sip">> and above the ‘bridge’ line (which is line that routes the call)

 

 

dialplan.png

 

 

 

Return to Documentation Home I Return to Sangoma Support