58.4. Example of IAX configuration

Figure 58.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.

58.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.

58.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).

58.4.2.1. “IAXPhone” user configuration

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:                   49                                           <Read Only>
PWD:                  ***
ACT:                  YES                                          
CP-LEVEL:             NO                                           
SSH-IP-PERMIT:        *
TELNET-IP-PERMIT:     *
CTI-ROLE:             EXTENSION
GROUP:                
CTIP:                 #
CTIP-CDI-PERMIT:      *
CLUS:                 #
CLUS-CDI-PERMIT:      *
ADDRBOOK-SYNC:        SYS                                          
ADDRBOOK-NUMBER:      AUTO                                         
ADDRBOOK-OUTDIAL:     NONE                                         
ADDRBOOK-PRIV-MAX:    SYS
ADDRBOOK-PUB-EDITABLE:SYS                                          
IO-MAP:               #
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-CDI-PERMIT:       *
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 an authentication algorithm (in the present case MD5).

58.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:                   46                                           <Read Only>
PWD:                  ***
ACT:                  YES                                          
CP-LEVEL:             NO                                           
SSH-IP-PERMIT:        *
TELNET-IP-PERMIT:     *
CTI-ROLE:             EXTENSION
GROUP:                
CTIP:                 #
CTIP-CDI-PERMIT:      *
CLUS:                 #
CLUS-CDI-PERMIT:      *
ADDRBOOK-SYNC:        SYS                                          
ADDRBOOK-NUMBER:      AUTO                                         
ADDRBOOK-OUTDIAL:     NONE                                         
ADDRBOOK-PRIV-MAX:    SYS
ADDRBOOK-PUB-EDITABLE:SYS                                          
IO-MAP:               #
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-CDI-PERMIT:       *
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 an authentication algorithm (in the present case MD5).

58.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:                   50                                           <Read Only>
PWD:                  ***
ACT:                  YES                                          
CP-LEVEL:             NO                                           
SSH-IP-PERMIT:        *
TELNET-IP-PERMIT:     *
CTI-ROLE:             EXTENSION
GROUP:                
CTIP:                 #
CTIP-CDI-PERMIT:      *
CLUS:                 #
CLUS-CDI-PERMIT:      *
ADDRBOOK-SYNC:        SYS                                          
ADDRBOOK-NUMBER:      AUTO                                         
ADDRBOOK-OUTDIAL:     NONE                                         
ADDRBOOK-PRIV-MAX:    SYS
ADDRBOOK-PUB-EDITABLE:SYS                                          
IO-MAP:               #
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-CDI-PERMIT:       *
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.

58.4.3. CTIIAX translation table

58.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

58.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

58.4.4. CTI Routings configuration

58.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.

58.4.4.1.1. Communication between the IAX users.

Add the routing:

[17:06:37] ABILIS_CPX_1:a ctir pr:1 poi:iax out:iax cdi:'numiax'

COMMAND EXECUTED

[17:06:46] ABILIS_CPX_1:d ctir

Last change: 17/06/2015 08:36:47 CET

---+------+-----------------+---------+--------------------+--------------------
PR |[DESCR]
   |BCI   |POI |SR      |GI |OUT      |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
   |                        |BCO      |RGI                 |RGO
   |FMRLY |FAXSP|MODSP|FMLVL|ECM |UDT |IG  |OG  |SG        |DL  |DH
   |CODERS
   |CODERSOUT
   |TI1 .. TI5
--------------------------------------------------------------------------------
0   DATA   *    #        #   Sl        *                    *                   
--------------------------------------------------------------------------------
1   VOICE  Iax  #        #   Iax       '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 isn't 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 pr:1

- Not Saved (SAVE CONF), Not Refreshed (INIT) ---------------------------------
Last change: 17/06/2015 08:36:47 CET

-------------------------------------------------------------------------------
PR:1   DESCR:
   ACT:YES  EDT:NO   BCI:VOICE                     BCO:*        EEC:NO
   NEXT:NO           POI:Iax   SR:#        GI:#    OUT:Iax
   LAST:ANY          CDI:'NumIax'                  CDO:*
   T301:Dft          CGI:*                         CGO:*
   UDT:NO            SDI:*                         SDO:*
   LCS:NO            SGI:*                         SGO:*
   LCST:Sys          RGI:*                         RGO:*
   IG:Sys       OG:Sys      SG:Sys      DL:Sys       DH:Sys
   FMRLY:Sys    FAXSP:AUTO  MODSP:AUTO  FMLVL:Sys    FMDJ:Sys   FMMJ:Sys
   SP:64000     SC:Sys      DJ:Sys      MJ:Sys                  ECM:SYS
   CODERS:Sys
   SPOUT:*      SCOUT:*     DJOUT:*     MJOUT:*     
   CODERSOUT:*
   TI1:ALL,00:00-23:59                TI2:#  TI3:#  TI4:#  TI5:#  
58.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 poi:pbx out:iax cdi:'numiax' sp:64000

COMMAND EXECUTED

[17:31:04] ABILIS_CPX_1:a ctir pr:3 poi:iax out:101 cdi:420 sp:64000

COMMAND EXECUTED

[17:31:13] ABILIS_CPX_1:d ctir

Last change: 17/06/2015 08:36:47 CET

---+------+-----------------+---------+--------------------+--------------------
PR |[DESCR]
   |BCI   |POI |SR      |GI |OUT      |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
   |                        |BCO      |RGI                 |RGO
   |FMRLY |FAXSP|MODSP|FMLVL|ECM |UDT |IG  |OG  |SG        |DL  |DH
   |CODERS
   |CODERSOUT
   |TI1 .. TI5
--------------------------------------------------------------------------------
0   DATA   *    #        #   Sl        *                    *                   
--------------------------------------------------------------------------------
1   VOICE  Iax  #        #   Iax       'NumIax'             *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   Sys   Sys  Sys  *                    *                   
--------------------------------------------------------------------------------
2   VOICE  PBX  #        #   Iax       'NumIax'             *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   Sys   Sys  Sys  *                    *                   
--------------------------------------------------------------------------------
3   VOICE  Iax  #        #   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.

58.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 poi:iax out:site2 sp:64000 cdi:320

COMMAND EXECUTED

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

COMMAND EXECUTED

[17:35:14] ABILIS_CPX_1:d ctir

Last change: 17/06/2015 10:01:34 CET

---+------+-----------------+---------+--------------------+--------------------
PR |[DESCR]
   |BCI   |POI |SR      |GI |OUT      |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
   |                        |BCO      |RGI                 |RGO
   |FMRLY |FAXSP|MODSP|FMLVL|ECM |UDT |IG  |OG  |SG        |DL  |DH
   |CODERS
   |CODERSOUT
   |TI1 .. TI5
--------------------------------------------------------------------------------
0   DATA   *    #        #   Sl        *                    *                   
--------------------------------------------------------------------------------
1   VOICE  Iax  #        #   Iax       'NumIax'             *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   Sys   Sys  Sys  *                    *                   
--------------------------------------------------------------------------------
2   VOICE  PBX  #        #   Iax       'NumIax'             *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   Sys   Sys  Sys  *                    *                   
--------------------------------------------------------------------------------
3   VOICE  Iax  #        #   101       420                  *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   Sys   Sys  Sys  *                    *                   
--------------------------------------------------------------------------------
4   VOICE  Iax  #        #   site2     320                  *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   Sys   Sys  Sys  *                    *                   
--------------------------------------------------------------------------------
5   VOICE  #    *        #   Iax       'NumIax'             *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   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.

58.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 out:101 cdi:* t301:20 next:t

COMMAND EXECUTED

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

COMMAND EXECUTED

[17:37:15] ABILIS_CPX_1:d ctir

Last change: 17/06/2015 10:01:34 CET

---+------+-----------------+---------+--------------------+--------------------
PR |[DESCR]
   |BCI   |POI |SR      |GI |OUT      |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
   |                        |BCO      |RGI                 |RGO
   |FMRLY |FAXSP|MODSP|FMLVL|ECM |UDT |IG  |OG  |SG        |DL  |DH
   |CODERS
   |CODERSOUT
   |TI1 .. TI5
--------------------------------------------------------------------------------
0   DATA   *    #        #   Sl        *                    *                   
--------------------------------------------------------------------------------
1   VOICE  Iax  #        #   Iax       'NumIax'             *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   Sys   Sys  Sys  *                    *                   
--------------------------------------------------------------------------------
2   VOICE  PBX  #        #   Iax       'NumIax'             *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   Sys   Sys  Sys  *                    *                   
--------------------------------------------------------------------------------
3   VOICE  Iax  #        #   101       420                  *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   Sys   Sys  Sys  *                    *                   
--------------------------------------------------------------------------------
4   VOICE  Iax  #        #   site2     320                  *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   Sys   Sys  Sys  *                    *                   
--------------------------------------------------------------------------------
5   VOICE  #    *        #   Iax       'NumIax'             *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   Sys   Sys  Sys  *                    *                   
--------------------------------------------------------------------------------
6   VOICE  34   #        #   101       *                    *                   
    TRANSFERT    ANY         NO   20   *                    *                   
--------------------------------------------------------------------------------
7   VOICE  34   #        #   site2     *                    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.

58.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.

58.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 sr:* out:101 cdi:320

COMMAND EXECUTED

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

COMMAND EXECUTED

[17:42:41] ABILIS_CPX_2:d ctir

Last change: 17/06/2015 10:01:34 CET

---+------+-----------------+---------+--------------------+--------------------
PR |[DESCR]
   |BCI   |POI |SR      |GI |OUT      |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
   |                        |BCO      |RGI                 |RGO
   |FMRLY |FAXSP|MODSP|FMLVL|ECM |UDT |IG  |OG  |SG        |DL  |DH
   |CODERS
   |CODERSOUT
   |TI1 .. TI5
--------------------------------------------------------------------------------
0   DATA   *    #        #   Sl        *                    *                   
--------------------------------------------------------------------------------
1   VOICE  #    *        #   101       320                  *                   
--------------------------------------------------------------------------------
2   VOICE  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.

58.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 sr:* out:iax cdi:7* sp:64000

COMMAND EXECUTED

[17:47:10] ABILIS_CPX_2:d ctir

Last change: 17/06/2015 10:01:34 CET

---+------+-----------------+---------+--------------------+--------------------
PR |[DESCR]
   |BCI   |POI |SR      |GI |OUT      |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
   |                        |BCO      |RGI                 |RGO
   |FMRLY |FAXSP|MODSP|FMLVL|ECM |UDT |IG  |OG  |SG        |DL  |DH
   |CODERS
   |CODERSOUT
   |TI1 .. TI5
--------------------------------------------------------------------------------
0   DATA   *    #        #   Sl        *                    *                   
--------------------------------------------------------------------------------
1   VOICE  #    *        #   101       320                  *                   
--------------------------------------------------------------------------------
2   VOICE  PBX  #        #   site1     'remoteiax'          *                   
--------------------------------------------------------------------------------
5   VOICE  #    *        #   Iax       7*                   *                   
    NO           ANY         NO   Dft  *                    *                   
    64000  Sys   Sys   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.