Modifier operation examples

The procedure for applying modifiers on incoming communications

The procedure for applying modifiers on outgoing communications

Objective 1

In the trunk group 0, perform the following modification for outgoing dialling matching with the mask (1х{4,6}) — remove the first digit, replace it with 34, leave other digits unchanged. 

Modification rule composition

This mask covers all 5-, 6- and 7-digit numbers beginning with 1. According to syntax, modification rule will be as follows: '.+34хххх??' ('.' character at the first position — deletion of the first digit, '+34' — insert digits 34 after it, 'хххх' — the next 4 digits will be always present and will not be modified, ‘??’ — the last 2 digits may be missing for a 5-digit number, but if the number consists of 6 or 7 digits, one of the digits will be present at these positions and they will not be modified). 

Commands used:

SMG> config // enter the configuration mode 

Entering configuration mode

SMG-[CONFIG]> new modifiers-table // create a new modifier table

NEW 'MOD-TABLE' [07]: successfully created  // Table no.7 has been created

SMG-[CONFIG]> modifiers table 7 // enter table no.7 configuration mode

Entering modifiers-table mode.

SMG-[CONFIG]-MODTABLE[7]> add (1x{4,6}) ".+34xxxx??" // Add number mask and modification rule

Mdifier. add
Modifier. Create: mask <(1x{4,6})>, cld-rule <.+34xxxx\?\?>, clg-rule <$>
NEW 'MODIFIER' [07]: successfully created
Modifier. Created with index [7].
'MODIFIER'    [07]: 
                          table:            7 
                          mask:             (1x{4,6}) 
                          numtype:          any 
                          AONcat:           any 
                          general-access:   no change 
                          general-numplan:  no change 

                          called-rule:      .+34xxxx?? 
                          called-type:      no change 
                          called-numplan:   no change 

                          calling-rule:     $ 
                          calling-type:     no change 
                          calling-numplan:  no change 
                          calling-present:  no change 
                          calling-screen:   no change 
                          calling-catAON:   no change

SMG-[CONFIG]-MODTABLE[7]> exit  // exit modifier table configuration mode

Back to configuration mode.

SMG-[CONFIG]> trunk 0 // enter the trunk group configuration mode

Entering trunk-mode

SMG-[CONFIG]-TRUNK[0]> modifiers table outgoing called 7 // add created modification table for CdPN number modification in the outgoing communications

Trunk[0]. Set oModCld '7'
'TRUNK GROUP' [00]: 
                         name:                TrunkGroup00
                         disable out:         no
                         disable in:          no
                         reserv trunk:        none
                         direct_pfx:          none
                         RADIUS-profile:      none
                         destination:         SIPT-Interface [3]
                         local:               no

                         Modifiers: 
                           incoming calling:  none
                           incoming called:   none
                           outgoing calling:  none
                           outgoing called:   7

Objective 2

In the trunk group 0, for the caller number received in the national format with area code 383, remove the area code and change the number type to 'subscriber'. 

Modification rule composition

Number in national format is 10-digit and begins with 383; given that values of the remaining 7 digits may vary, you should specify 'xxxxxxx' for them. Resulting mask is (383ххххххх). To remove the area code, i.e. the first 3 digits, remaining digits will be left unchanged, resulting modification rule as follows: '…ххххххх'. For category modification, use change command (in command example below, add command adds incoming modifier with the number 2, thus in change category modification command you should use modifier 2). 

Command used:

SMG> config // enter the configuration mode 

SMG-[CONFIG]> trunk 0 // enter the trunk group configuration mode 

SMG-[CONFIG]-TRUNK[0]> modifiers // enter the modifier configuration mode 

SMG-[CONFIG]-TRUNK[0]-MODIFIER> add incoming calling (383xxxxxxx) "...xxxxxxx" // add caller number modification rule in the incoming communication 

InModifier. Create: mask <(383xxxxxxx)>, rule <...xxxxxxx>
NEW 'TRUNK: IN-MODIFIER' [02]: successfully created
InModifier. Created with index [2].
'TRUNK: IN-MODIFIER' [02]: 
                          trunk:          0 
                          type:           calling 
                          mask:           (383xxxxxxx) 
                          rule:           ...xxxxxxx 
                          calling-type:   no change 
                          calling-pres:   no change 
                          calling-scrn:   no change 
                          calling-catAON: no change

SMG-[CONFIG]-TRUNK[0]-MODIFIER> change incoming clg_type 2 subscriber // change the caller number type in the modifier created by the previous command 

'TRUNK: IN-MODIFIER' [02]: 
                          trunk:          0 
                          type:           calling 
                          mask:           (383xxxxxxx) 
                          rule:           ...xxxxxxx 
                          calling-type:   subscriber 
                          calling-pres:   no change 
                          calling-scrn:   no change 
                          calling-catAON: no change

CLI device configuration example

Objective

Configure SS7-SIPT transit. 

Source data

Stream from the opposite PBX is physically connected to the E1 stream 0 at the SMG connector. 

SS7 signalling parameters:

SIP-T signalling parameters:

Routing:

Configuration via CLI

SS7 signalling parameters configuration

SMG> config // enter the configuration mode

SMG-[CONFIG]> new linkset // create a new link set

NEW 'LINKSET' [00]: successfully created

SMG-[CONFIG]> linkset 0 // enter the linkset configuration mode

Entering Linkset-mode.

SMG-[CONFIG]-LINKSET[0]> chan_order even_successive_forward // select the channel engagement order — sequential forward even 

Linkset[0]. Set chan_order '6'

SMG-[CONFIG]-LINKSET[0]> DPC 32 // define destination point code 

Linkset[0]. Set DPC '32'

SMG-[CONFIG]-LINKSET[0]> OPC 67 // define the originating point code 

Linkset[0]. Set OPC '67'

SMG-[CONFIG]-LINKSET[0]> init group-reset // select channel initialization mode during signalling channel establishment 

Linkset[0]. Set init '7'

SMG-[CONFIG]-LINKSET[0]> net_ind national // define the network identifier — local network 

Linkset[0]. Set net_ind '3'
'LINKSET' [00]: 
                      
                         Name:        Linkset00
                         Trunk:       1
                         Access cat:  0
                         OPC:         67
                         DPC:         32
                         init:       'group reset'
                         china:       n
                         chan_order: 'even_successive_forward'
                         netw_ind:    national
                         satellite:   override_no_satellite
                         interwork:   no change
                         TMR:         speech
                         alarm ind:   no
                         CCI:         off
                         CCI_freq:    3

SMG-[CONFIG]-LINKSET[0]> exit // exit the linkset configuration mode 

Leaving Linkset mode

SMG-[CONFIG]> e1 0 // Enter the Е1 stream 0 configuration mode 

Entering E1-stream mode

SMG-[CONFIG]-E1[0]> enabled // put Е1 stream into operation 

E1[0]. Set line 'on'

SMG-[CONFIG]-E1[0]> signaling SS7 // select SS7 signalling protocol for a stream 

E1[0]. Set Signaling 3
'E1: PHYS' [00]: 
                          line          'on'
                          code          'hdb3'
                          eq            'off'
                          crc           'off'
                          sig           'SIG_SS7' (3)
                          alarm_ind     'off'
                          rem_alarm_ind 'off'

SMG-[CONFIG]-E1[0]> ss7 // enter the SS7 protocol configuration mode 

E1[0]. Signaling is SS7

SMG-[CONFIG]-E1[0]-[SS7]> CIC fill 0 1 // assign channel numbering from 0 in increments of 1 

E1-SS7[0]. Fill CIC: start [0], step [1]

SMG-[CONFIG]-E1[0]-[SS7]> Dchan 1 // select channel 1 as a signal channel 

E1-SS7[0]. Set Dchan 1

SMG-[CONFIG]-E1[0]-[SS7]> SLC 1 // assign code 1 for the created signalling channel 

E1-SS7[0]. Set SLC 1

SMG-[CONFIG]-E1[0]-[SS7]> linkset 0 // assign linkset 0 for a stream 

E1-SS7[0]. Set Linkset 0
'E1: SS7' [00]: 
       			 			 stream:     0
                        	 linkset:    0
                        	 SLC:        1

                         CICs: 
                        00: --- | 01: -D- | 02: 002 | 03: 003 | 
                        04: 004 | 05: 005 | 06: 006 | 07: 007 | 
                        08: 008 | 09: 009 | 10: 010 | 11: 011 | 
                        12: 012 | 13: 013 | 14: 014 | 15: 015 | 
                        16: 016 | 17: 017 | 18: 018 | 19: 019 | 
                        20: 020 | 21: 021 | 22: 022 | 23: 023 | 
                        24: 024 | 25: 025 | 26: 026 | 27: 027 | 
                        28: 028 | 29: 029 | 30: 030 | 31: 031 |

SMG-[CONFIG]-E1[0]-[SS7]> exit // exit the SS7 protocol configuration mode 

Leaving SS7-signaling mode

SMG-[CONFIG]-E1[0]> exit // exit the E1 stream 0 configuration mode 

Leaving E1-stream mode 

SIP-T signalling parameters configuration

Session continued.

SMG-[CONFIG]> new sipt-interface // create a new SIP-T interface 

NEW 'SIPT INTERFACE' [00]: successfully created

SMG-[CONFIG]> sip interface 0 // enter the created SIP-T interface configuration mode 

Entering SIPT-mode.

SMG-[CONFIG]-SIP/SIPT/SIPI-INTERFACE[0]> ipaddr 192.168.16.7 // define IP address of the communicating gateway 

SIPT-Interface[0]. Set ipaddr '192.168.16.7'

SMG-[CONFIG]-SIPT-INTERFACE[0]> port 5060 // define UDP port of the communicating gateway used for SIP signalling operation 

SIPT-Interface[0]. Set port '5060'

SMG-[CONFIG]-SIP/SIPT/SIPI-INTERFACE[0]> codec set 0 G.711-a // define the codec 

SIPT-Interface[0]. Set codec '0'

SMG-[CONFIG]-SIP/SIPT/SIPI-INTERFACE[0]> codec pte 0 30 // define packetization time 30ms for
G.711 codec
 

SIPT-Interface[0]. Set pte '30'

SMG-[CONFIG]-SIPT-INTERFACE[0]> max_active 25 // define the quantity of simultaneous sessions 

SIPT-Interface[0]. Set max_active '25'

SMG-[CONFIG]-SIPT-INTERFACE[0]> DTMF mode RFC2833 // select DTMF – RFC2833 transmission method 

SIPT-Interface[0]. Set DTMF_type '1'

SMG-[CONFIG]-SIPT-INTERFACE[0]> DTMF payload 101 // select payload type 101 for RFC2833 

SIPT-Interface[0]. Set DTMF_PT '101'
'SIP/SIPT INTERFACE' [00]:   id[00]  
                          name:             SIP-interface00 
                          mode:             SIP-T 
                          trunk:            0 
                          access category:  0 
                          ip:port:          192.168.16.7:5060
                          login / password:   <not set> / <not set> 

                          codecs:
                                 0 :
                                     codec:   G.711-A
                                     ptype:   8
                                     pte:     30

                          max active:       25

                          VAD/CNG:          no
                          Echo cancel:      voice (default)

                          DSCP RTP:         0
                          DSCP SIG:         0
                          RTCP period:      0
                          RTCP control:     0
                          RTP loss timeout: off

                          DTMF MODE:        RFC2833
                          DTMF PType:       101
                          DTMF MIMETYPE:    application/dtmf


                          CCI:              off
                          Redirect (302):   disabled
                          REFER:            disabled
                          Session Expires:  1800
                          Min SE:           90
                          Refresher:        uac
                          Rport:            disabled
                          Options:          disabled:0

                          FAX-detect:       no detecting
                          FAX-mode:         none
 
                          VBD:              disabled

                          Jitter buffer adaptive mode
                            minimum size:          0 ms
                            initial size:          0 ms
                            maximum size:          200 ms
                            deletion mode:         soft
                            deletion threshold:    500 ms
                            adaptation period:     10000 ms
                            adjustment mode:       non-immediate
                            size for VBD:          0

SMG-[CONFIG]-SIPT-INTERFACE[0]> exit // Exit the SIP-T interface configuration mode 

Leaving SIPT mode

Routing configuration:

Session continued.

SMG-[CONFIG]> new trunk // сreate the trunk group for SS7 link set 

NEW 'TRUNK GROUP' [00]: successfully created

SMG-[CONFIG]> new trunk // сreate the trunk group for operation via SIP-T interf 

NEW 'TRUNK GROUP' [01]: successfully created

SMG-[CONFIG]> new prefix // сreate the prefix for transition to SS7 direction 

NEW 'PREFIX' [00]: successfully created

SMG-[CONFIG]> new prefix // сreate the prefix for transition to SIP-T direction 

NEW 'PREFIX' [01]: successfully created

SMG-[CONFIG]> trunk 0 // enter the trunk group configuration mode for SS7 link set 

Entering trunk-mode

SMG-[CONFIG]-TRUNK[0]> destination SS7 0 // associate the trunk group 0 with SS7 link set 0 

Trunk[0]. Set destination '2'
Trunk[0]. Same destination
'TRUNK GROUP' [00]: 
                         name:           TrunkGroup00
                         disable out:    no
                         disable in:     no
                         reserv trunk:   none
                         direct_pfx:     none
                         RADIUS-profile: none
                         destination:    Linkset [0]

SMG-[CONFIG]-TRUNK[0]> exit // exit the trunk group configuration mode for SS7 link set 

Leaving TRUNK mode

SMG-[CONFIG]> trunk 1 // enter the trunk group configuration mode for SIP-T interface 

Entering trunk-mode

SMG-[CONFIG]-TRUNK[1]> destination SIPT 0 // associate trunk group 1 with SIP-T interface 0 

Trunk[1]. Set destination '3'
Trunk[1]. Same destination
'TRUNK GROUP' [01]:
name:         TrunkGroup01
                         disable out:    no
                         disable in:     no
                         reserv trunk:   none
                         direct_pfx:     none
                         RADIUS-profile: none
                         destination:    SIPT-Interface [0]

SMG-[CONFIG]-TRUNK[1]> exit // exit the trunk group configuration mode for SIP-T interface 

Leaving TRUNK mode

SMG-[CONFIG]> prefix 0 // enter the prefix configuration mode for transition to trunk group 0 

Entering Prefix-mode

SMG-[CONFIG]-PREFIX[0]> type trunk // define the prefix type — 'transition to trunk group' 

Prefix[0]. Set type '1'

SMG-[CONFIG]-PREFIX[0]> trunk 0 // define the transition to the trunk group 0 by prefix 

Prefix[0]. Set idx '0'

SMG-[CONFIG]-PREFIX[0]> mask edit // enter the dialling mask editing and caller number analysis mode 

Entering Prefix-Mask mode

SMG-[CONFIG]-PREFIX[0]-MASK> add ([67]xxxxxx|9[1-3]xxxxx) // add dialling mask according to the objective 

PrefixMask. add
NEW 'PREFIX-MASK' [00]: successfully created
PrefixMask. Created with index [00].
'PREFIX-MASK' [00]: 
                          mask:         ([67]xxxxxx|9[1-3]xxxxx) 
                          prefix:       0  
                          type:         called  
                          Ltimer:       10
                          Stimer:       5
                          Duration:     30

SMG-[CONFIG]-PREFIX[0]-MASK> exit // exit the dialling mask editing and caller number analysis mode 

Leaving Prefix-Mask mode

SMG-[CONFIG]-PREFIX[0]> called transit // define the transit for caller number type 

Prefix[0]. Set called '5'
'PREFIX' [00]: 
                          type:         'to trunk' 
                          idx:           1 
                          access cat:    0 [no check] 
                          direction:    'local' 
                          called type:  'transit' 
                          getCID:        n 
                          needCID:       n 
                          dial_mode:     enblock 
                          priority:      100 
                          Stimer:        5 
                          duration:      30 
         Mask for prefix [00]:                         
                         [000]  –    ([67]xxxxxx|9[1-3]xxxxx) [called]
                            Ltimer:   10
                            Stimer:   5
                            Duration: 30 

SMG-[CONFIG]-PREFIX[0]> exit // exit the prefix configuration mode 

Leaving Prefix mode

SMG-[CONFIG]> prefix 1 // enter the prefix configuration mode for transition to trunk group 1 

 Entering Prefix-mode

SMG-[CONFIG]-PREFIX[1]> type trunk // define the prefix type — 'transition to trunk group' 

Prefix[1]. Set type '1'

SMG-[CONFIG]-PREFIX[1]> trunk // define the transition to the trunk group 1 by prefix 

Prefix[1]. Set idx '1'

SMG-[CONFIG]-PREFIX[1]> mask edit // enter the dialling mask editing and caller number analysis mode 

Entering Prefix-Mask mode

SMG-[CONFIG]-PREFIX[1]-MASK> add ([1-3]xxxxxx) // add dialling mask according to the objective 

PrefixMask. add
NEW 'PREFIX-MASK' [01]: successfully created
PrefixMask. Created with index [01].
'PREFIX-MASK' [01]: 
                          mask:         ([1-3]xxxxxx) 
                          prefix:       1  
                          type:         called  
                          Ltimer:       10
                          Stimer:       5
                          Duration:     30

SMG-[CONFIG]-PREFIX[1]-MASK> exit // exit the dialling mask editing and caller number analysis mode 

Leaving Prefix-Mask mode

SMG-[CONFIG]-PREFIX[1]> called transit // define the transit for caller number type 

Prefix[1]. Set called '5'
'PREFIX' [01]: 
                          type:         'to trunk' 
                          idx:           1 
                          access cat:    0 [no check] 
                          direction:    'local' 
                          called type:  'transit' 
                          getCID:        n 
                          needCID:       n 
                          dial_mode:     enblock 
                          priority:      100 
                          Stimer:        5 
                          duration:      30 
         Mask for prefix [01]: 
                         [001]  –    ([1-3]xxxxxx) [called]
                            Ltimer:   10
                            Stimer:   5
                            Duration: 30                         

SMG-[CONFIG]-PREFIX[1]> exit // exit the prefix configuration mode 

Leaving Prefix mode 

Saving configuration and device restart

Session continued.

SMG-[CONFIG]> copy running_to_startup // save the configuration

tar: removing leading '/' from member names

**********

*****Saved successful

SMG-[CONFIG]> exit

Leaving configuration mode.

SMG> reboot yes // restart device