CS Context Overview
187
Software Configuration Guide, Revision 1.03
SN(cfg)#
port isdn 2 0
SN(sys)#
exit
SN(cfg)#
Configure Call Routing
Next we create the PSTN interfaces and configure call routing:
SN(cfg)#
context cs
SN(ctx-cs)[switch]#
interface pstn PBX
SN(if-pstn)[PBX]#
routing
dest-table calledNumberRouting
SN(if-pstn)[PBX]#
fallback dest-interface PublicPSTN
SN(if-pstn)[PBX]#
exit
SN(ctx-cs)[switch]#
interface pstn PublicPSTN
SN(if-pstn)[PublicP~]#
routing dest-table calledNumberRouting
SN(if-pstn)[PublicP~]#
exit
SN(ctx-cs)[switch]#
In addition we create the two H.323 interfaces and configure call routing:
SN(ctx-cs)[switch]#
interface h323 CompanyOfficeA
SN(if-h323)[Company~]#
routing dest-table calledNumberRouting
SN(if-h323)[Company~]#
remoteip 146.86.130.11
SN(if-h323)[Company~]#
exit
SN(ctx-cs)[switch]#
interface h323 CompanyOfficeB
SN(if-h323)[Company~]#
routing dest-table calledNumberRouting
SN(if-h323)[Company~]#
remoteip 146.86.130.24
SN(if-h323)[Company~]#
exit
SN(ctx-cs)[switch]#
Last we configure the Session Router:
SN(ctx-cs)[switch]#
called-party CalledNumberRouting 1 dest-interface
CompanyOfficeA
SN(ctx-cs)[switch]#
called-party CalledNumberRouting 2 dest-interface
CompanyOfficeB
SN(ctx-cs)[switch]#
called-party CalledNumberRouting 5 dest-interface
PBX
SN(ctx-cs)[switch]#
called-party CalledNumberRouting default dest-
interface PublicPSTN
SN(ctx-cs)[switch]#
exit
SN(cfg)#
Configure Voice over IP Settings
Because we need G.723 as codec we enable DTMF relay:
SN(cfg)#
profile voip H323VoIPProfile
SN(pf-voip)[H323VoI~]#
dtmf-relay
SN(pf-voip)[H323VoI~]#
exit
SN(cfg)#
Configure ISDN Ports
Next step is to configure the ISDN ports: