12.3. LCS - Last Calling number Service

This service is useful to route a call received by a sim inserted in UMTS BOX, toward the last number which called the calling number.

Suppose to have this situation:

LCS is configurable through:

12.3.1. LCSG - Last Calling number Group

LCSG is useful to manage lcs groups. The managing is made following the classic Abilis sintax: a/c/s/d lcsg <parameter:parameter>.

LCSG configuration holds all the rules required to manipulate the TON for CD and CG.

[10:35:38] ABILIS_CPX:d lcsg

----+--------------------------------------------------------------------------
ID: |[DESCR:]
    |CPS-LIST:              NAT-PREFIX:            INT-PREFIX:    COUNTRY-CODE:
    |CB-PERMIT-CD:
    |CB-UNK-CDO:            CB-NAT-CDO:            CB-INT-CDO:
    |CB-SDO:                CB-SGO:                CB-CDO-DFT:
    |[CTI Ports, CTI Clusters, IAX users, SIP users]
----+--------------------------------------------------------------------------
                         *** NO LCS GROUPs DEFINED ***

[10:40:00] ABILIS_CPX:d lcsg ?

ID:        Last Calling Number Service group identifier [1..32]    <Optional>

Last Calling Number Service group parameter(s):

DESCR:     Entry description. From 0 up to 70 ASCII extended characters.
           Spaces are not allowed. Case is preserved.
           Note: it is displayed only when not empty.
CPS-LIST:  Name of an IN list holding Carrier Preselection prefixes or "#".
NAT-PREFIX: National prefix. From 1 up to 6 digits (E.g. 0) or "SYS".
INT-PREFIX: International prefix. From 1 up to 6 digits (E.g. 00) or "SYS".
COUNTRY-CODE: Country code. From 1 up to 6 digits (E.g. 39) or "SYS".
CB-PERMIT-CD: Permitted called numbers/prefixes for the back call.
           From 1 up to 20 characters, in the range ['0'..'9', '*']
           optionally preceded by TON [u, i, n, o, s, h, c] and/or NP [x, e, d,
           t, l, p] attributes or the name of a list between primes.
           The '*' is allowed only alone or as the last character.
           (E.g. ne1234567 or 4567* or * or 'my_list')
           See HELP ISDN ATTRIBUTES for details on attributes.
           See HELP ISDN VALUES for details on meaning of special values.
CB-UNK-CDO: Call Back number for UNKNOWN type CALLING. "#" or up to 20
           digits ['0'..'9'] optionally preceded by TON [u, i, n, o, s, h, c]
           and/or NP [x, e, d, t, l, p] attributes or 'macro'.
           (E.g. CALLING or ne1234567 or ux'CALLING' or ux11'CALLING.S2')
           See HELP ISDN ATTRIBUTES for details on attributes.
           See HELP ISDN VALUES for details on meaning of special values.
CB-NAT-CDO: Call Back number for NATIONAL type CALLING. "#" or up to 20
           digits ['0'..'9'] optionally preceded by TON [u, i, n, o, s, h, c]
           and/or NP [x, e, d, t, l, p] attributes or 'macro'.
           (E.g. CALLING or ne1234567 or ux'CALLING' or ux11'CALLING.S2')
           See HELP ISDN ATTRIBUTES for details on attributes.
           See HELP ISDN VALUES for details on meaning of special values.
CB-INT-CDO: Call Back number for INTERNATIONAL type CALLING. "#" or up to 20
           digits ['0'..'9'] optionally preceded by TON [u, i, n, o, s, h, c]
           and/or NP [x, e, d, t, l, p] attributes or 'macro'.
           (E.g. CALLING or ne1234567 or ux'CALLING' or ux11'CALLING.S2')
           See HELP ISDN ATTRIBUTES for details on attributes.
           See HELP ISDN VALUES for details on meaning of special values.
CB-SDO:    Call Back called sub-address [AlphaNumExt, #, *] (E.g.: *, A123, #)
           See HELP ISDN VALUES for details on meaning of special values.
CB-SGO:    Call Back calling sub-address [AlphaNumExt, #, *] (E.g.: *, A123, #)
           See HELP ISDN VALUES for details on meaning of special values.
CB-CDO-DFT: Default call back number. "*" or up to 20 digits ['0'..'9']
           optionally preceded by TON [u, i, n, o, s, h, c] and/or NP
           [x, e, d, t, l, p] attributes.
           See HELP ISDN ATTRIBUTES for details on attributes.
           See HELP ISDN VALUES for details on meaning of special values.

12.3.2. LCST - Last Calling number Table

LCS automatically stores the pair of calling and called numbers in the LCST. The table can be also manipulated with the d/a/c lcst commands.

[10:40:02] ABILIS_CPX:d lcst

-----+----------------------+----------------------+---------------------+-----
Group|        Called        |       Calling        |   Updated on (GMT)  |Tout
     |                      |                      |  [Expiry on (GMT)]  |
-----+----------------------+----------------------+---------------------+-----
1     ux12345678             ux01                   16/05/2015 16:02:59   6
                                                    16/05/2015 22:02:59
-----+----------------------+----------------------+---------------------+-----
1     ux99999999             ux02                   16/05/2015 16:03:20   NONE
-----+----------------------+----------------------+---------------------+-----


[10:40:27] ABILIS_CPX:d lcst ?

D LCST                              Display all LCS table entries
D LCST filter:val [filter:val]      Display any LCS table entry matching
                                    the specified filter(s)

Allowed filters:

GROUP:     Last Calling number service group identifier [1..32]      <Optional>
CD:        Search for any calling number(s) starting with the given  <Optional>
           prefix (from 1 up to 20 digits optionally preceded by
           TON [u, i, n, o, s, h, c] and NP [x, e, d, t, l, p] attributes).

Last Calling Number Service table entry parameter(s):

GROUP:       Last Calling number service group identifier [1..32]
CD:          Called number
CG:          Calling number
Updated on:  Addition/update UTC date and time
Expiry on:   Expiration UTC date and time    <Only for Tout: not equal to NONE>
TOUT:        Entry expiration timeout [NONE, 1..999 hour]