48.4. Example of IAX configuration

Figure 48.1. Configuration scheme

Configuration scheme

In the figure there are the following elements:

The purpose is:

In this example suppose that the POTS cards, used to manage the analog phones and configured for Cluster and CtiLink for compressed phone calls, are already active on Abilis.

48.4.1. Configuration of the CTIIAX resource

Activate the CTIIAX resource in the Abilis of “Site 1” and enable up to 15 IAX connections.

[16:14:44] ABILIS_CPX_1:s p ctiiax act:yes sesnum:15

COMMAND EXECUTED

[16:16:12] ABILIS_CPX_1:d p ctiiax

RES:CtiIax - Not Saved (SAVE CONF), Not Refreshed (INIT) ----------------------
       ------------------------------------------------------------------------
       DESCR:Inter-Asterisk_eXchange_Version_2
       LOG:NO                  ACT:YES
       mxps:2172               sesnum:15               udp-locport:4569
       SRCADD:OUT-IP                                   TOS:0-D
       IPSRC:*                 IPSRCLIST:#
       AUTH:MD5                REM-AUTH:MD5            CTIP-TYPE:USER
       LIFETIME:60             REM-LIFETIME:60         NP-CT:SYS
       RETR-FREQ:400           TRUNK:NO                ROUTING:EN-BLOC
       RETR-EXCEED:10000       TRUNK-FREQ:40           DIALT:5
       RETR-EXCEED-FAST:2000   TRUNK-TS:YES            T302:15
       PLAY-DTMF:150           CHAN-FREQ:20            ROUTE-BY-SD:NO
       PLAY-SILENCE:100        DISC-AUDIO:NO           PROVIDE-SG:NO
       DETECT-DTMF:40          CLIP-RULE:PRIVATE       CPO:NO
       DETECT-SILENCE:40       RG-IN:DISABLE           CPO-STATE:ACCEPT
       NETSTATS:NO             TRANSFER:IAX            CPO-DROP:NO
       HTML-IN:
       HTML-OUT:

Keep all the default parameters.

Repeat the same operation for the Abilis of “Site 2.

48.4.2. Users configuration

Activate the two IAX users in the Abilis of “Site 1” (the IAX phone and the PC with Zoiper) and one IAX user in the Abilis of “Site2” (Asterisk).

48.4.2.1. “IaxPhone” user configuration.l

Add the user in the Abilis of “Site 1” and enable it to IAX :

[16:19:06] ABILIS_CPX_1:a user:iaxphone iax:yes

COMMAND EXECUTED

[16:20:23] ABILIS_CPX_1:d user


- Not Saved (SAVE CONF) -------------------------------------------------------
------------------------+-------------+----------------------------------------
USER             PWD ACT|CTIP CLUS    |CHAT LDAP PPP FTP HTTP MAIL IAX SIP VO
------------------------+-------------+----------------------------------------
admin            *** YES #    #        YES  YES  YES YES YES  NO   NO  NO  NO
guest                YES #    #        NO   YES  NO  NO  NO   NO   NO  NO  NO
iaxphone             YES #    #        NO   NO   NO  NO  NO   NO   YES NO  NO

Give the new user the following characteristics:

  • password: iaxphone

  • host: 192.168.0.100

  • simultaneous half-duplex calls: 2

  • IAX number: 520

[16:20:35] ABILIS_CPX_1:s user:iaxphone pwd:iaxphone iax-host:192.168.0.100 iax-maxses-bid:2 iax-number:520

COMMAND EXECUTED

[16:21:30] ABILIS_CPX_1:d user:iaxphone

- Not Saved (SAVE CONF) -------------------------------------------------------
Parameter:          | Value:
--------------------+----------------------------------------------------------
USER:                 iaxphone
REAL-NAME:            iaxphone
ID:                   10            <Read Only>
PWD:                  ***
ACT:                  YES
GROUP:                
CTIP:                 #
CLUS:                 #
ADDRBOOK-SYNC:        SYS           
ADDRBOOK-NUMBER:      AUTO          
ADDRBOOK-OUTDIAL:     NONE          
ADDRBOOK-PUB-ENABLED: SYS           
OPC-ROLE:             USER
OPC-VIEW:             *
OPC-HIDE-NUMBERS:     NO
OPC-MONITOR:          NONE
OPC-PRIVACY:          NO
CHAT:                 NO    
CHAT-USER:            SYS
CHAT-PWD:             SYS
IAX:                  YES   
IAX-HOST:             192.168.000.100
IAX-SRCADD:           SYS
IAX-PORT:             4569
IAX-IP-PERMIT:        *
IAX-MAXSES-BID:       2
IAX-MAXSES-IN:        0
IAX-MAXSES-OUT:       0
IAX-NUMBER:           520
IAX-ADDRBOOK-NUM:     IAX-NUMBER
IAX-CG-NUM:           AUTO
IAX-FWD-CG-NUM:       CALLER
IAX-CTIP-TYPE:        SYS
IAX-RG-IN:            SYS
IAX-ROUTE-BY-SD:      NO            
IAX-PROVIDE-SG:       NO
IAX-CLIP-RULE:        SYS
IAX-BUSY-NOCHAN:      NO
IAX-LCS-GROUP:        NONE
IAX-CPO:              SYS
IAX-CPO-STATE:        SYS
IAX-CPO-DROP:         SYS
IAX-SS:               NO
IAX-SS-PICKUP:        GROUPS
IAX-SS-PRES-CG:       YES
IAX-SS-CF-DND:        YES
IAX-SS-VM:            YES
IAX-CONTEXT:          
IAX-PROVIDE-NAME:     BLANK
IAX-AUTH:             SYS
IAX-NETSTATS:         SYS
IAX-TRUNK:            SYS
IAX-TRUNK-FREQ:       SYS
IAX-TRUNK-TS:         SYS
IAX-CHAN-FREQ:        SYS
IAX-TRANSFER:         SYS
IAX-DISC-AUDIO:       SYS
IAX-HTML-IN:          SYS
IAX-HTML-OUT:         SYS
IAX-REM-USER:         
IAX-REM-PASS:                 
IAX-REM-AUTH:         SYS
IAX-REM-REG:          NO            
-------------------------------------------------------------------------------
[Tip]Tip

If the IAX-AUTH parameter is set to SYS, you must define, on the IAX Phone, the protocol specified in the AUTH parameter of the CTIIAX resource as authentication algorithm (in the present case MD5).

48.4.2.2. “Zoiper” user configuration

Add the user in the Abilis of “Site 1” and enable it to IAX:

[16:26:23] ABILIS_CPX_1:a user:zoiper iax:yes

COMMAND EXECUTED

[16:26:27] ABILIS_CPX_1:d user

- Not Saved (SAVE CONF) -------------------------------------------------------
------------------------+-------------+----------------------------------------
USER             PWD ACT|CTIP CLUS    |CHAT LDAP PPP FTP HTTP MAIL IAX SIP VO
------------------------+-------------+----------------------------------------
admin            *** YES #    #        YES  YES  YES YES YES  NO   NO  NO  NO
guest                YES #    #        NO   YES  NO  NO  NO   NO   NO  NO  NO
iaxphone             YES #    #        NO   NO   NO  NO  NO   NO   YES NO  NO
zoiper               YES #    #        NO   NO   NO  NO  NO   NO   YES NO  NO

Configure the new user in the following way:

  • password: zoiper

  • host: dynamic (the PC receives the IP address from a DHCP server)

  • half-duplex call: 1

  • IAX number: 620

[16:26:33] ABILIS_CPX_1:s user:zoiper pwd:zoiper iax-host:dynamic iax-maxses-bid:1 iax-number:620
COMMAND EXECUTED

[16:27:19] ABILIS_CPX_1:d user:zoiper

- Not Saved (SAVE CONF) -------------------------------------------------------
Parameter:          | Value:
--------------------+----------------------------------------------------------
USER:                 zoiper
REAL-NAME:            zoiper
ID:                   11            <Read Only>
PWD:                  ***
ACT:                  YES
GROUP:                
CTIP:                 #
CLUS:                 #
ADDRBOOK-SYNC:        SYS           
ADDRBOOK-NUMBER:      AUTO          
ADDRBOOK-OUTDIAL:     NONE          
ADDRBOOK-PUB-ENABLED: SYS           
OPC-ROLE:             USER
OPC-VIEW:             *
OPC-HIDE-NUMBERS:     NO
OPC-MONITOR:          NONE
OPC-PRIVACY:          NO
CHAT:                 NO    
CHAT-USER:            SYS
CHAT-PWD:             SYS
IAX:                  YES   
IAX-HOST:             DYNAMIC
IAX-SRCADD:           SYS
IAX-PORT:             (DYNAMIC)
IAX-IP-PERMIT:        *
IAX-MAXSES-BID:       1
IAX-MAXSES-IN:        0
IAX-MAXSES-OUT:       0
IAX-NUMBER:           620
IAX-ADDRBOOK-NUM:     IAX-NUMBER
IAX-CG-NUM:           AUTO
IAX-FWD-CG-NUM:       CALLER
IAX-CTIP-TYPE:        SYS
IAX-RG-IN:            SYS
IAX-ROUTE-BY-SD:      NO            
IAX-PROVIDE-SG:       NO
IAX-CLIP-RULE:        SYS
IAX-BUSY-NOCHAN:      NO
IAX-LCS-GROUP:        NONE
IAX-CPO:              SYS
IAX-CPO-STATE:        SYS
IAX-CPO-DROP:         SYS
IAX-SS:               NO
IAX-SS-PICKUP:        GROUPS
IAX-SS-PRES-CG:       YES
IAX-SS-CF-DND:        YES
IAX-SS-VM:            YES
IAX-CONTEXT:          
IAX-PROVIDE-NAME:     BLANK
IAX-AUTH:             SYS
IAX-NETSTATS:         SYS
IAX-TRUNK:            SYS
IAX-TRUNK-FREQ:       SYS
IAX-TRUNK-TS:         SYS
IAX-CHAN-FREQ:        SYS
IAX-TRANSFER:         SYS
IAX-DISC-AUDIO:       SYS
IAX-HTML-IN:          SYS
IAX-HTML-OUT:         SYS
IAX-REM-USER:         
IAX-REM-PASS:                 
IAX-REM-AUTH:         SYS
IAX-REM-REG:          NO            
-------------------------------------------------------------------------------
[Tip]Tip

If the IAX-AUTH parameter is set to SYS, you must define, on the Zoiper settings, the protocol specified in the AUTH parameter of the Ctilax resource as authentication algorithm (in the present case MD5).

48.4.2.3. “Asterisk” user configuration

Add the user in the the Abilis of “Site 2” and enable it to IAX:

[16:28:42] ABILIS_CPX_2:a user:asterisk iax:yes

COMMAND EXECUTED

[16:31:41] ABILIS_CPX_2:d user


- Not Saved (SAVE CONF) -------------------------------------------------------
------------------------+-------------+----------------------------------------
USER             PWD ACT|CTIP CLUS    |CHAT LDAP PPP FTP HTTP MAIL IAX SIP VO
------------------------+-------------+----------------------------------------
admin            *** YES #    #        YES  YES  YES YES YES  NO   NO  NO  NO
asterisk             YES #    #        NO   NO   NO  NO  NO   NO   YES NO  NO
guest                YES #    #        NO   YES  NO  NO  NO   NO   NO  NO  NO

Give the new user the following characteristics:

  • password: asterisk;

  • host: 217.1.2.2;

  • simultaneous half-duplex calls: 10;

  • IAX number: all the calls toward numbers starting with 7;

  • enable the registration to the remote IAX node (Asterisk) using username “abilis”, password “swordfish” and MD5 authentication.

[16:34:46] ABILIS_CPX_2:s user:asterisk pwd:swordfish iax-host:217.1.2.2 iax-maxses-bid:10 iax-trunk:yes iax-rem-user:abilis iax-rem-pass:swordfish
iax-rem-auth:md5 iax-rem-reg:yes

COMMAND EXECUTED

[16:35:52] ABILIS_CPX_2:d user:asterisk

- Not Saved (SAVE CONF) -------------------------------------------------------
Parameter:          | Value:
--------------------+----------------------------------------------------------
USER:                 asterisk
REAL-NAME:            asterisk
ID:                   9             <Read Only>
PWD:                  ***
ACT:                  YES
GROUP:                
CTIP:                 #
CLUS:                 #
ADDRBOOK-SYNC:        SYS           
ADDRBOOK-NUMBER:      AUTO          
ADDRBOOK-OUTDIAL:     NONE          
ADDRBOOK-PUB-ENABLED: SYS           
OPC-ROLE:             USER
OPC-VIEW:             *
OPC-HIDE-NUMBERS:     NO
OPC-MONITOR:          NONE
OPC-PRIVACY:          NO
CHAT:                 NO    
CHAT-USER:            SYS
CHAT-PWD:             SYS
IAX:                  YES   
IAX-HOST:             217.001.002.002
IAX-SRCADD:           SYS
IAX-PORT:             4569
IAX-IP-PERMIT:        *
IAX-MAXSES-BID:       10
IAX-MAXSES-IN:        0
IAX-MAXSES-OUT:       0
IAX-NUMBER:           
IAX-ADDRBOOK-NUM:     IAX-NUMBER
IAX-CG-NUM:           AUTO
IAX-FWD-CG-NUM:       CALLER
IAX-CTIP-TYPE:        SYS
IAX-RG-IN:            SYS
IAX-ROUTE-BY-SD:      NO            
IAX-PROVIDE-SG:       NO
IAX-CLIP-RULE:        SYS
IAX-BUSY-NOCHAN:      NO
IAX-LCS-GROUP:        NONE
IAX-CPO:              SYS
IAX-CPO-STATE:        SYS
IAX-CPO-DROP:         SYS
IAX-SS:               NO
IAX-SS-PICKUP:        GROUPS
IAX-SS-PRES-CG:       YES
IAX-SS-CF-DND:        YES
IAX-SS-VM:            YES
IAX-CONTEXT:          
IAX-PROVIDE-NAME:     BLANK
IAX-AUTH:             SYS
IAX-NETSTATS:         SYS
IAX-TRUNK:            YES
IAX-TRUNK-FREQ:       SYS
IAX-TRUNK-TS:         SYS
IAX-CHAN-FREQ:        SYS
IAX-TRANSFER:         SYS
IAX-DISC-AUDIO:       SYS
IAX-HTML-IN:          SYS
IAX-HTML-OUT:         SYS
IAX-REM-USER:         abilis
IAX-REM-PASS:         ********
IAX-REM-AUTH:         MD5
IAX-REM-REG:          YES           
-------------------------------------------------------------------------------
[Tip]Tip

The IAX-NUMBER field of this user is empty, add a static routing in the CTIIAX translation table to route toward this user the calls addressed to numbers starting with 7.

48.4.3. CTIIAX translation table

48.4.3.1. CTIIAX translation table of “Site 1

Since we have specified the IAX-NUMBER parameter for the two IAX users of “Site 1”, the two routings will be automatically connected in the table.

[17:02:10] ABILIS_CPX_1:d ctiiax numbers

Total:2         Iax-Number:2         Static:0        

NUMx: [IAX-NUMBER:]       USER:                             Provenience:
------------------------------------------------------------------------
620                       zoiper                              IAX-NUMBER
520                     iaxphone                              IAX-NUMBER

48.4.3.2. CTIIAX transaltion table of “Site 2

In the configuration of “Asterisk” user for Abilis of “Site 2”, we haven't specified any IAX-NUMBER, so the following chart will be empty.

[17:00:48] ABILIS_CPX_2:d ctiiax numbers

Total:0         Iax-Number:0         Static:0        

NUMx: [IAX-NUMBER:]       USER:                             Provenience:
------------------------------------------------------------------------
            *** NO CTI IAX ENTRIES DEFINED ***

Add a static routing in the CTIIAX table to route the calls directed to the numbers starting with 7 to this user.

[17:15:44] ABILIS_CPX_2:a ctiiax numx:7* username:asterisk

COMMAND EXECUTED

[17:23:16] ABILIS_CPX_2:d ctiiax numbers

Total:1         Iax-Number:0         Static:1         

NUMx: [IAX-NUMBER:]       USER:                             Provenience:
------------------------------------------------------------------------
7*                         asterisk                               STATIC

48.4.4. CTI Routings configuration

48.4.4.1. CTI Routings of “Site 1

The purpose is:

  • to connect the IAX users (iaxphone and Zoiper);

  • to connect the IAX users and the analog phone connected to the POTS on the Abilis of “Site 1”;

  • to connect the IAX users and the analog phone connected to the POTS of “Site 2”;

  • to forward the input calls of the ISDN line toward the remote Asterisk, in case the POTS telephone of Abilis is busy or doesn't answer after 20 seconds.

48.4.4.1.1. Communication between the IAX users.

Add the routing:

[17:06:37] ABILIS_CPX_1:a ctir pr:1 type:itoi cdi:'numiax'

COMMAND EXECUTED

[17:06:46] ABILIS_CPX_1:d ctir

- Not Saved (SAVE CONF) -------------------------------------------------------
Last change: 20/05/2015 10:56:23 CET

---+-----+-----------------+---------+--------------------+--------------------
PR |[DESCR]
   |TYPE |POI/SR   [SR]    |POO/DS   |CDI                 |CDO
ACT|NEXT       |LAST       |EEC |T301|CGI                 |CGO
EDT|SP   |SC   |DJ   |MJ   |FMDJ|FMMJ|SDI                 |SDO
   |SPOUT|SCOUT|DJOUT|MJOUT|LCS |LCST|SGI                 |SGO
   |                                 |RGI                 |RGO
   |FMRLY|FAXSP|MODSP|FMLVL|ECM |UDT |IG  |OG  |SG        |DL  |DH
   |CODERS
   |CODERSOUT
   |TI1 .. TI5
-------------------------------------------------------------------------------
0   DATA  *                 CtiSLink  *                    *
-------------------------------------------------------------------------------
1   ItoI  CtiIax            CtiIax    'NumIax'             *
-------------------------------------------------------------------------------

[17:06:52] ABILIS_CPX_1:d list:numiax

- Not Saved (SAVE CONF) -------------------------------------------------------
LIST:NumIax               - IN                - Ref-Numb:0     Items-Numb:2    
     Automatically_generated_CTI_IAX_Numbers_list_(ReadOnly)
     --------------------------------------------------------------------------
     520                     620
[Tip]Tip

Transcoding is not activated because SPOUT and CODERSOUT parameters are set to the default value *; set the SP parameter value to a value greater than 6400 (default value) to increase the available coder pool.

[17:29:14] ABILIS_CPX_1:s ctir pr:1 sp:64000

COMMAND EXECUTED

[17:29:19] ABILIS_CPX_1:d ctire

- Not Saved (SAVE CONF) -------------------------------------------------------
Last change: 20/05/2015 10:57:22 CET

-------------------------------------------------------------------------------
PR:0   DESCR:
   ACT:YES            EDT:NO
   TYPE:DATA          POI:*                        POO:CtiSLink EEC:NO
   NEXT:NO            CDI:*                        CDO:*
   LAST:ANY           CGI:*                        CGO:*
   T301:Dft           SDI:*                        SDO:*
   UDT:NO             SGI:*                        SGO:*
                      RGI:*                        RGO:*
   TI1:ALL,00:00-23:59                TI2:#  TI3:#  TI4:#  TI5:#
-------------------------------------------------------------------------------
PR:1   DESCR:
   ACT:YES            EDT:NO
   TYPE:ItoI          POI:CtiIax                   POO:CtiIax   EEC:NO
   NEXT:NO            CDI:'NumIax'                 CDO:*
   LAST:ANY           CGI:*                        CGO:*
   T301:Dft           SDI:*                        SDO:*
   UDT:NO             SGI:*                        SGO:*
   LCS:NO   LCST:Sys  RGI:*                        RGO:*
   FMRLY:Sys    FAXSP:AUTO  MODSP:AUTO  FMLVL:Sys    FMDJ:Sys   FMMJ:Sys
   SP:64000     SC:Sys      DJ:Sys      MJ:Sys                  ECM:Sys
   CODERS:*
   SPOUT:*      SCOUT:*     DJOUT:*     MJOUT:*
   CODERSOUT:*
   TI1:ALL,00:00-23:59                TI2:#  TI3:#  TI4:#  TI5:#
48.4.4.1.2. Communication between the analog phone and the IAX users.

Add the routings:

[17:30:57] ABILIS_CPX_1:a ctir pr:2 type:vtoi poi:pbx cdi:'numiax' sp:64000

COMMAND EXECUTED

[17:31:04] ABILIS_CPX_1:a ctir pr:3 type:itov poo:101 cdi:420 sp:64000

COMMAND EXECUTED

[17:31:13] ABILIS_CPX_1:d ctir

- Not Saved (SAVE CONF) -------------------------------------------------------
Last change: 20/05/2015 10:58:57 CET

---+-----+-----------------+---------+--------------------+--------------------
PR |[DESCR]
   |TYPE |POI/SR   [SR]    |POO/DS   |CDI                 |CDO
ACT|NEXT       |LAST       |EEC |T301|CGI                 |CGO
EDT|SP   |SC   |DJ   |MJ   |FMDJ|FMMJ|SDI                 |SDO
   |SPOUT|SCOUT|DJOUT|MJOUT|LCS |LCST|SGI                 |SGO
   |                                 |RGI                 |RGO
   |FMRLY|FAXSP|MODSP|FMLVL|ECM |UDT |IG  |OG  |SG        |DL  |DH
   |CODERS
   |CODERSOUT
   |TI1 .. TI5
-------------------------------------------------------------------------------
0   DATA  *                 CtiSLink  *                    *
-------------------------------------------------------------------------------
1   ItoI  CtiIax            CtiIax    'NumIax'             *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   Sys   Sys   Sys  Sys  *                    *
-------------------------------------------------------------------------------
2   VtoI  PBX               CtiIax    'NumIax'             *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   Sys   Sys   Sys  Sys  *                    *
-------------------------------------------------------------------------------
3   ItoV  CtiIax            101       420                  *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   Sys   Sys   Sys  Sys  *                    *
-------------------------------------------------------------------------------

The PR:2 routing, routes the calls coming from the Abilis POTS port toward the CTIIAX and directed to one number of the numiax list. The CTIIAX routing table will forward the call to the user.

The PR:3 routing, routes toward port 101 (where the analog phone is connected) the calls coming from one of the IAX users and directed to the number 420.

48.4.4.1.3. Communication between the IAX users and the remote analog phone.

Add the following routings:

[17:34:55] ABILIS_CPX_1:a ctir pr:4 type:itoc ds:site2 sp:64000 cdi:320

COMMAND EXECUTED

[17:35:05] ABILIS_CPX_1:a ctir pr:5 type:ctoi sr:* cdi:'numiax' sp:64000

COMMAND EXECUTED

[17:35:14] ABILIS_CPX_1:d ctir

- Not Saved (SAVE CONF), Not Refreshed (INIT) ---------------------------------
Last change: 20/05/2015 11:00:04 CET

---+-----+-----------------+---------+--------------------+--------------------
PR |[DESCR]
   |TYPE |POI/SR   [SR]    |POO/DS   |CDI                 |CDO
ACT|NEXT       |LAST       |EEC |T301|CGI                 |CGO
EDT|SP   |SC   |DJ   |MJ   |FMDJ|FMMJ|SDI                 |SDO
   |SPOUT|SCOUT|DJOUT|MJOUT|LCS |LCST|SGI                 |SGO
   |                                 |RGI                 |RGO
   |FMRLY|FAXSP|MODSP|FMLVL|ECM |UDT |IG  |OG  |SG        |DL  |DH
   |CODERS
   |CODERSOUT
   |TI1 .. TI5
-------------------------------------------------------------------------------
0   DATA  *                 CtiSLink  *                    *
-------------------------------------------------------------------------------
1   ItoI  CtiIax            CtiIax    'NumIax'             *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   Sys   Sys   Sys  Sys  *                    *
-------------------------------------------------------------------------------
2   VtoI  PBX               CtiIax    'NumIax'             *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   Sys   Sys   Sys  Sys  *                    *
-------------------------------------------------------------------------------
3   ItoV  CtiIax            101       420                  *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   Sys   Sys   Sys  Sys  *                    *
-------------------------------------------------------------------------------
4   ItoC  CtiIax            site2     320                  *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   Sys   Sys   Sys  Sys  *                    *
-------------------------------------------------------------------------------
5   CtoI  *                 CtiIax    'NumIax'             *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   *     *     Sys  Sys  *                    *
-------------------------------------------------------------------------------

The PR:4 routing routes toward the Site 2 cluster the calls coming from IAX users and directed to the number 320 (the analog phone of the remote site).

The PR:5 routing routes toward the Ctilax the calls coming from any cluster and directed to one of the numbers of the numiax list (numbers given to the IAX users). The Ctilax translation table will forward the call to the user.

48.4.4.1.4. Transfer the incoming calls from the ISDN line towards Asterisk, in case the analog phone of “Abilis 1” is busy or doesn't answer after 20 seconds.

Add the following routings:

[17:35:18] ABILIS_CPX_1:a ctir pr:6 poi:34 poo:101 cdi:* t301:20 next:t

COMMAND EXECUTED

[17:37:07] ABILIS_CPX_1:a ctir pr:7 type:vtoc poi:34 ds:site2 cdi:* cdo:701

COMMAND EXECUTED

[17:37:15] ABILIS_CPX_1:d ctir

- Not Saved (SAVE CONF), Not Refreshed (INIT) ---------------------------------
Last change: 20/05/2015 11:03:04 CET

---+-----+-----------------+---------+--------------------+--------------------
PR |[DESCR]
   |TYPE |POI/SR   [SR]    |POO/DS   |CDI                 |CDO
ACT|NEXT       |LAST       |EEC |T301|CGI                 |CGO
EDT|SP   |SC   |DJ   |MJ   |FMDJ|FMMJ|SDI                 |SDO
   |SPOUT|SCOUT|DJOUT|MJOUT|LCS |LCST|SGI                 |SGO
   |                                 |RGI                 |RGO
   |FMRLY|FAXSP|MODSP|FMLVL|ECM |UDT |IG  |OG  |SG        |DL  |DH
   |CODERS
   |CODERSOUT
   |TI1 .. TI5
-------------------------------------------------------------------------------
0   DATA  *                 CtiSLink  *                    *
-------------------------------------------------------------------------------
1   ItoI  CtiIax            CtiIax    'NumIax'             *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   Sys   Sys   Sys  Sys  *                    *
-------------------------------------------------------------------------------
2   VtoI  PBX               CtiIax    'NumIax'             *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   Sys   Sys   Sys  Sys  *                    *
-------------------------------------------------------------------------------
3   ItoV  CtiIax            101       420                  *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   Sys   Sys   Sys  Sys  *                    *
-------------------------------------------------------------------------------
4   ItoC  CtiIax            Clus2     320                  *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   Sys   Sys   Sys  Sys  *                    *
-------------------------------------------------------------------------------
5   CtoI  *                 CtiIax    'NumIax'             *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   *     *     Sys  Sys  *                    *
-------------------------------------------------------------------------------
6   TR    34                101       *                    *
    TRANSFERT   ANY         NO   20   *                    *
-------------------------------------------------------------------------------
7   VtoC  34                Clus2     *                    701
-------------------------------------------------------------------------------

The PR:6 routing routes toward port 101 (analog phone) the calls coming from the ISDN line (CTIP:34). In case the telephone is busy or doesn't answer after 20 seconds (T301:20), the call is forwarded to the next routing (NEXT:TRANSFERT).

The PR:7 routing routes the calls toward the Site 2 cluster; the numbers starting with 7 are sent to the remote Asterisk.

48.4.4.2. CTI Routings of Abilis of “Site 2

The purpose is:

  • to connect the analog phone of “Site2” and the IAX users of the Abilis of “Site 1”;

  • to forward to Asterisk the calls coming from “Site 1” in case of the remote analog phone is busy or doesn't answer.

48.4.4.2.1. Communication between the IAX users and the remote analog phone.

Use normal routings for compressed phone calls:

[16:27:38] ABILIS_CPX_2:list create remoteiax IN

COMMAND EXECUTED

[16:27:38] ABILIS_CPX_2:list description remoteiax IAX_user's_number_of_site_1

COMMAND EXECUTED

[16:27:38] ABILIS_CPX_2:a list:remoteiax 520 620

COMMAND EXECUTED

[16:27:38] ABILIS_CPX_2:d list:remoteiax

- Not Saved (SAVE CONF) -------------------------------------------------------

LIST:RemoteIAX            - IN
    IAX_user's_number_of_site_1
     520                     620

[17:42:26] ABILIS_CPX_2:a ctir pr:1 type:ctov sr:* poo:101 cdi:320

COMMAND EXECUTED

[17:42:34] ABILIS_CPX_2:a ctir pr:2 type:vtoc poi:pbx ds:site1 cdi:'remoteiax'

COMMAND EXECUTED

[17:42:41] ABILIS_CPX_2:d ctir

- Not Saved (SAVE CONF), Not Refreshed (INIT) ---------------------------------
Last change: 20/05/2015 11:05:51 CET

---+-----+-----------------+---------+--------------------+--------------------
PR |[DESCR]
   |TYPE |POI/SR   [SR]    |POO/DS   |CDI                 |CDO
ACT|NEXT       |LAST       |EEC |T301|CGI                 |CGO
EDT|SP   |SC   |DJ   |MJ   |FMDJ|FMMJ|SDI                 |SDO
   |SPOUT|SCOUT|DJOUT|MJOUT|LCS |LCST|SGI                 |SGO
   |                                 |RGI                 |RGO
   |FMRLY|FAXSP|MODSP|FMLVL|ECM |UDT |IG  |OG  |SG        |DL  |DH
   |CODERS
   |CODERSOUT
   |TI1 .. TI5
-------------------------------------------------------------------------------
0   DATA  *                 CtiSLink  *                    *
-------------------------------------------------------------------------------
1   CtoV  *                 101       320                  *
-------------------------------------------------------------------------------
2   VtoC  PBX               site1     'remoteiax'          *
-------------------------------------------------------------------------------

The PR:1 routing routes to port ctip:101 the calls coming from any cluster and addressed to the number 320.

The PR:2 routing routes the calls coming from an analog phone to the cluster site1, when the called number belongs to the RemoteIAX list.

48.4.4.2.2. Transfer the incoming calls from Site 1 towards Asterisk, in case the analog remote phone is busy or doesn't answer.

Add the routing:

[17:42:44] ABILIS_CPX_2:a ctir pr:3 type:ctoi sr:* cdi:7* sp:64000

COMMAND EXECUTED

[17:47:10] ABILIS_CPX_2:d ctir

- Not Saved (SAVE CONF), Not Refreshed (INIT) ---------------------------------
Last change: 20/05/2015 11:05:51 CET

---+-----+-----------------+---------+--------------------+--------------------
PR |[DESCR]
   |TYPE |POI/SR   [SR]    |POO/DS   |CDI                 |CDO
ACT|NEXT       |LAST       |EEC |T301|CGI                 |CGO
EDT|SP   |SC   |DJ   |MJ   |FMDJ|FMMJ|SDI                 |SDO
   |SPOUT|SCOUT|DJOUT|MJOUT|LCS |LCST|SGI                 |SGO
   |                                 |RGI                 |RGO
   |FMRLY|FAXSP|MODSP|FMLVL|ECM |UDT |IG  |OG  |SG        |DL  |DH
   |CODERS
   |CODERSOUT
   |TI1 .. TI5
-------------------------------------------------------------------------------
0   DATA  *                 CtiSLink  *                    *
-------------------------------------------------------------------------------
1   CtoV  *                 101       320                  *
-------------------------------------------------------------------------------
2   VtoC  PBX               Clus1     'remoteiax'          *
-------------------------------------------------------------------------------
3   CtoI  *                 CtiIax    7*                   *
    NO          ANY         NO   Dft  *                    *
    64000 Sys   *     *     Sys  Sys  *                    *
-------------------------------------------------------------------------------

The PR:3 routing routes toward CTIIAX resource the calls coming from any cluster; when the called number starts with 7 the Ctilax routing table forwards the call toward to Asterisk.

Asterisk offers many options :

  • answering service (saves the messages and sends them as mail enclosures);

  • virtual answering service ( in case the called number gives no answer, Asterisk sends a mail containing the calling number with data and time);

  • operator service;

  • ...

[Tip]Tip

Asterisk offers many solutions of advanced call management (conference, answering service, operator service…); to every service you can assign a specific code and manage them with a single routing.

The PR:3 routing forwards to Asterisk all the calls starting with 7: Configuring the routing of the remote Abilis,the answering service can be assigned to number 701, the conferences to number 750, the operator to number 711, etc…

The calls converge toward this Abilis, the PR:3 routing allows the matching, and Asterisk manages the calls depending on the selected number.