11
1 Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks This document is a guideline for configuring Spitfire SIP trunks onto Elastix 2.0.0 and includes the settings required for Inbound DDI routing and Outbound CLI presentation. The settings contained within have been tested and are known to work at the time of testing. SIP trunk details such as account number and password will be provided separately. Provisioning a SIP trunk: Page 2 Outbound Routing – Reference only: Page 9 Inbound Routing: Page 10 Outgoing CLI: Page 11 Please Note: Please make particular note of the addition of extra code on pages 3 & 4. This is necessary to allow inbound DDI’s to be routed.

Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks · Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks ... extensions_custom.conf file but you should use a config file that

  • Upload
    lytram

  • View
    228

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks · Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks ... extensions_custom.conf file but you should use a config file that

1

Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks

This document is a guideline for configuring Spitfire SIP trunks onto Elastix 2.0.0 and includes the settings required for Inbound DDI routing and Outbound CLI presentation. The settings contained within have been tested and are known to work at the time of testing. SIP trunk details such as account number and password will be provided separately. Provisioning a SIP trunk: Page 2 Outbound Routing – Reference only: Page 9 Inbound Routing: Page 10 Outgoing CLI: Page 11 Please Note: Please make particular note of the addition of extra code on pages 3 & 4. This is necessary to allow inbound DDI’s to be routed.

Page 2: Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks · Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks ... extensions_custom.conf file but you should use a config file that

2

Add SIP Trunk Additional code is required to parse the inbound DDI from the To header. In this example I have used the extensions_custom.conf file but you should use a config file that is appropriate for your particular installation. Select “PBX, Tools, Asterisk File Editor”, and then select the file you wish to add custom code to. In this example I am using “extensions_custom.conf”

Page 3: Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks · Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks ... extensions_custom.conf file but you should use a config file that

3

Add SIP Trunk continued Paste the following into the appropriate file (I have used extensions_custom.conf) as highlighted below. This will allow the elastix to read & route incoming DDI calls. Please note that the goto step may need to be changed to suit your programming. Although this code was tested as working in this installation it comes with no warranty from Spitfire. [ParseDDI_from_ToHeader] exten => _.,1,Set(parseDDI=${SIP_HEADER(To)}) exten => _.,n,Set(parseDDI=${CUT(CUT(parseDDI,@,1),:,2)}) exten => _.,n,Goto(from-trunk,${parseDDI},1) Select “Save”. Please ensure that you add context=ParseDDI_from_ToHeader in the Outgoing Peer Details of the trunk (page 7)

Page 4: Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks · Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks ... extensions_custom.conf file but you should use a config file that

4

Add SIP Trunk continued Select “sip_nat.conf Paste the following into sip_nat.conf . This will change the default expiry timer on the SIP trunk to 10 minutes maxexpiry=3600 defaultexpiry=600 Select “Save”.

Page 5: Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks · Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks ... extensions_custom.conf file but you should use a config file that

5

Add SIP Trunk continued Select “PBX Configuration, PBX, Trunks, Add SIP Trunk”.

Page 6: Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks · Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks ... extensions_custom.conf file but you should use a config file that

6

Add SIP Trunk continued General Settings

1. Trunk Description: A logical name for the trunk 2. Outbound Caller ID: Enter the User name as supplied by Spitfire without the leading 44.

Please note that this is just the number and DOES NOT include @spitfiretsp.net. This is the number that will be presented if there is no individual CLI presentation per extension

3. CID Options: Determined by the installer 4. Maximum Channels: As specified by Spitfire 4. Disable Trunk: Determined by the installer. I would suggest No 5. Monitor Trunk Failures:Determined by the installer

Outgoing Dial Rules (Reference Only)

1. Dial Rules: Determined by the installer 2. Dial Rules Wizards: Determined by the installer, but normally blank on Spitfire trunks 3. Outbound Dial Prefix: Determined by the installer, but normally blank on Spitfire trunks

Page 7: Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks · Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks ... extensions_custom.conf file but you should use a config file that

7

Add SIP Trunk continued Outgoing Settings

1. Trunk Name: Give the trunk a logical name 2. PEER Details: Enter the details below in the PEER Details area.

Please Note: Not all the details required are shown in the screenshot – they are listed below with a brief description. There are also other settings available for use in the PEER Details, but the ones below are those required to work with Spitfires SIP trunks. Other settings may have a negative impact on the SIP trunks, but this will need to be determined by the system installer.

type=peer

host=83.218.143.16 (or spitfiretsp.net) outboundproxy=mproxy3.spitfiretsp.net

username=your username as supplied by Spitfire (i.e. 442031410025) secret=password as supplied by Spitfire fromuser= your username as supplied by Spitfire (i.e. 442031410025) fromdomain=spitfiretsp.net

sendrpid=yes insecure=invite disallow=all allow=alaw qualify=no (or yes if required for fallback) canreinvite=no

progressinband=yes this setting may be required if you are using call forward/divert to an off-switch destination. Without this setting, the call will establish but you may not hear any speech.

context=ParseDDI_from_ToHeader

Page 8: Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks · Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks ... extensions_custom.conf file but you should use a config file that

8

Add SIP Trunk continued Incoming Settings

1. User Context: Leave blank 2. User Details: Leave blank

Registration

1. Register String: Enter the Register string in the following format:

Format: Username:[email protected]/DDI Number or

Username:[email protected]/DDI Number

Example as below: 442031410025:[email protected]/442031410025

Select “Submit Changes” when finished

Submit changes & apply

Page 9: Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks · Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks ... extensions_custom.conf file but you should use a config file that

9

Outbound Routing – Reference only Note: In this example I am simply modifying an existing “Dial 9” route to use our newly created trunks. The installer may add or amend routes as necessary. Select “Outbound Routes”, then “0 9_outside” Go to “Trunk Sequence for Matched Routes” and use the drop-down box to select your newly created SIP trunk (Spitfire in this case) to route calls through, and “Submit Changes”

Page 10: Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks · Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks ... extensions_custom.conf file but you should use a config file that

10

Inbound Routing – Reference only Please Note: There are many fields available in the Inbound Routes field. This guide is only intended to demonstrate an incoming DDI call only. The installer will determine if any of the other fields are required for each DDI programmed. Select “Inbound Routes” on the “PBX Configuration” panel on the left of the screen. Add or edit an Incoming Route

1. Description: Give the incoming route a logical name. 2. DID Number: Enter the DDI number in the format 44xxxxxxxxxx (as below) 3. Destination: In this example the DDI is simply routed to extension 100

Page 11: Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks · Configuring Elastix 2.0.0 57 for Spitfire SIP Trunks ... extensions_custom.conf file but you should use a config file that

11

Outgoing CLI – Reference only This reference shows how to modify the outbound Caller ID on a single extension. This will over-ride the “Outbound Caller ID” in the SIP trunk (Page 6). The number must be a valid DDI associated with the Spitfire SIP trunk WITHOUT the leading 44. In PBX Configuration, Extensions select the extension you wish to modify. Go to “Outbound CID” under “Extension Options”

1. Enter the CLI number in the format below (i.e. drop the leading 44 from the DDI number) and “Submit”

2. “Apply Configuration Changes”