.. _ios_gateway_manual_configuration:

IOS Gateway Manual Configuration
--------------------------------

This procedure adds a PRI Trunk to connect to the PSTN. 

VOSS-4-UC does not generate any controller, interface, or dial peer commands for
the gateway. This has to be manually added after the command builder has generated
the gateway configuration.



**Perform these steps**:

1. Configure PRI on a channelized E1 or T1 controller with the following commands:

   a. controller <T1 or E1><slot/port>

      where slot/port is the controller location in the gateway

   b. framing <esf | sf or crc4 | non crc4>

      esf/sf for T1 and crc4/non crc4 for E1

   c. linecode <b8zs | ami or bdb3 | ami>

      b8zs/ami for T1 and hdb3/ami for E1

   d. clock source <internal/line>
   e. pri-group timeslots <1-24 | 1-31>

      Use all channel on the trunk 1-24 for T1 and 1-31 for E1

2. Configure Serial Interface with the following commands:

   a. interface serial <slot/port>:<23 | 15>

      slot/port similar to the above for controller and use 23 for T1
      and 15 for E1

   b. no ip address
   c. encapsulation hdlc
   d. isdn protocol-emulate <network | user>
   e. isdn switch-type <switch-type>

      See IOS documentation for supported switch types.

   f. isdn incoming-voice voice
   g. isdn bchan-number-order <ascending | descending>
   h. no cdp enable
   
3. Configure POTS dial peer with the following commands:

   a. dial-peer voice 95 pots
   b. translation-profile incoming <91XX>

      For incoming call:

      * use 9111 when both called and calling number have NOA
      * use 9121 when called number does not have NOA but Calling number has NOA
      * use 9112 when calling number does not have NOA but Called number has NOA
      * use 9122 when both called and calling number do not have NOA

   c. translation-profile outgoing <90XX>

      For outgoing call:

      * use 9111 when both called and calling number have NOA
      * use 9121 when called number does not have NOA but Calling number has NOA
      * use 9112 when calling number does not have NOA but Called number has NOA
      * use 9122 when both called and calling number do not have NOA

   d. destination-pattern 90[1-9]T
   e. incoming called-number .
   f. no digit-strip
   g. direct-inward-dial
   h. port <slot/port>:<23 | 15>

      Similar to what is configured for serial interface

   i. no register e164

Example IOS gateway manual configuration
........................................

::
  
    controller T1 0/0/0
    framing esf
    linecode b8zs
    clock source line
    pri-group timeslots 1-24

    interface serial 0/0/0:23
    no ip address
    encapsulation hdlc
    isdn protocol-emulate user
    isdn switch-type  primary-net5
    isdn incoming-voice voice
    isdn bchan-number-order descending
    no cdp enable

    dial-peer voice 95 pots
    translation-profile incoming 9111
    translation-profile outgoing 9011
    destination-pattern 90[1-9]T
    incoming called-number .
    no digit-strip
    direct-inward-dial
    port 0/0/0:23
    no register e164