Mike's PBX Cookbook

CS1K SIP/H323 Trunks

Steps to build SIP and H323 IP trunks, for use with NRS:

  1. LD 17: Create a virtual D channel (one only)
  2. LD 97: Create a virtual superloop for the trunks
  3. LD 117: Configure a bandwidth zone for IP trunks
  4. LD 16: Build two routes: one for SIP, and one for H323
  5. LD 14: Build IP trunks on the virtual superloop for each route
  6. LD 32: Diagnostics / STATus

CDP is used to send calls to the appropriate route:

See Building a Co-ordinated Dialing Plan (CDP) for these steps (LD 86 & 87).
Endpoints must be registered with the NRS, with the appropriate routing entries.

Procedure:

Only significant prompts (Rel. 7.5) are shown, terminal input is bold, notes are in blue.


1Build D channel, Virtual loop, and Zone:

LD 17 - Build a DCH

REQ  chg
TYPE adan
ADAN new dch 252
CTYP dcip             D-channel over IP
DES  VTRK
IFC  sl1
SSRC
OTBF
RLS  25
RCAP nd2 mwi tat      names & anti-tromboning
RCAP
H323
  OVLR
  OVLS
MBGA
NASA yes
TIMR

:
ADAN DATA SAVED
LD 97 - Add virtual superloop

REQ  chg
TYPE supl               
SUPL v252            v for virtual
WRAP UP SUPL 252  (NEW)  ..OK
LD 117 - Add a zone

=> new zone 10 1000000 bq 1000000 bq vtrk
Zone 10 added. Total number of zones = 2


2Build 2 Routes: one for SIP, and one for H323.

LD 16 - SIP route

REQ  new
TYPE rdb
CUST 0
ROUT 10               SIP route number
DES  SIP
TKTP tie              trunk type is TIE
M911P
ESN
CNVT
SAT
RCLS
VTRK yes              virtual trunk route
ZONE 10               the new vtrk zone
PCID sip              protocol ID is SIP
CRID
NODE 3175             CS1000 Node ID
ISDN YES
MODE isld             ISDN Signaling Link
DCH 252               associated D channel
IFC  sl1              SL-1 protocol            
PNI  1                identifier for site
NCNA yes              Network Calling Name
NCRD yes              Network Call Redirection
TRO  yes              Trunk Route Optimization
FALT
:
IANI
ICOG iao              in and outbound
TRMB yes              tromboning allowed
STEP
ACOD 590010           access Code for testing
CLEN
TCPP
:
LD 16 - H323 route

REQ  new
TYPE rdb
CUST 0
ROUT 11               H323 route number
DES  H323
TKTP tie
M911P
ESN
CNVT
SAT
RCLS
VTRK yes
ZONE 10
PCID h323             protocol ID is H323
CRID
NODE 3175
ISDN YES
MODE isld
DCH 252               same D channel
IFC  sl1
PNI  1
NCNA yes
NCRD yes
TRO  yes
FALT
:
IANI
ICOG iao
TRMB yes
STEP
ACOD 590011
CLEN
TCPP
:


3Build trunks: 32 SIP, and 32 H323

LD 14 - Build SIP trunks

REQ  new 32          build 32...
TYPE ipti            IP TIE trunks
TN  252 0 0 0
DES  SIP
XTRK VTRK
CUST 0
NCOS 7
RTMB 10 1            the SIP route
CHID 1               start at ch.1
INC
MNDN
TGAR 0
LDOP
TIMP
AUTO_BIMP
STRI imm
STRO imm
SUPN yes
AST
CLS  unr dtn
TKID

NEW TRK  TN 252 0 00 00  RT 10 MB 1  CHID  01
:
LD 14 - Build H323 trunks

REQ  new 32
TYPE ipti
TN  252 0 1 0
DES  H323
XTRK VTRK
CUST 0
NCOS 7
RTMB 11 1            the H323 route
CHID 33              start at ch.33 
INC
MNDN
TGAR 0
LDOP
TIMP
AUTO_BIMP
STRI imm
STRO imm
SUPN yes
AST
CLS  unr dtn
TKID

NEW TRK  TN 252 0 01 00  RT 11 MB 1  CHID  33
:

List Trunk Members (LD 21: LTM) for each route to see all 32 members.

LD 21 - List Trunk Members

REQ: ltm
CUST 0
ROUT 10              the SIP route

TYPE TLST
TKTP TIE
ROUT 10
DES  SIP
TN  252 0 00 00 MBER  1  SIP
TN  252 0 00 01 MBER  2  SIP
:
TN  252 0 00 30 MBER  31  SIP
TN  252 0 00 31 MBER  32  SIP
LD 21 - List Trunk Members

REQ: ltm
CUST 0
ROUT 11              the H323 route

TYPE TLST
TKTP TIE
ROUT 11
DES  H323
TN  252 0 01 00 MBER  1  H323
TN  252 0 01 01 MBER  2  H323
:
TN  252 0 01 30 MBER  31  H323
TN  252 0 01 31 MBER  32  H323


4Diagnostics:

IP trunks should establish, and be active.
If the DCH is 'stuck', try RST DCH 252 (reset) in LD 96. It should immediately re-establish.

LD 32 - STAT SIP trunks

.stat 252 0 0
00 = UNIT 00 = IDLE (ISL TRK)(TIE IP IMM /IMM )
    D-CH 252  EST  ACTV

01 = UNIT 01 = IDLE (ISL TRK)(TIE IP IMM /IMM )
    D-CH 252  EST  ACTV

:

30 = UNIT 30 = IDLE (ISL TRK)(TIE IP IMM /IMM )
    D-CH 252  EST  ACTV

31 = UNIT 31 = IDLE (ISL TRK)(TIE IP IMM /IMM )
    D-CH 252  EST  ACTV
LD 32 - STAT H323 trunks

.stat 252 0 1
00 = UNIT 00 = IDLE (ISL TRK)(TIE IP IMM /IMM )
    D-CH 252  EST  ACTV

01 = UNIT 01 = IDLE (ISL TRK)(TIE IP IMM /IMM )
    D-CH 252  EST  ACTV

:

30 = UNIT 30 = IDLE (ISL TRK)(TIE IP IMM /IMM )
    D-CH 252  EST  ACTV

31 = UNIT 31 = IDLE (ISL TRK)(TIE IP IMM /IMM )
    D-CH 252  EST  ACTV