• No results found

Setup the Asterisk server with the Internet Gate

N/A
N/A
Protected

Academic year: 2021

Share "Setup the Asterisk server with the Internet Gate"

Copied!
9
0
0

Loading.... (view fulltext now)

Full text

(1)

Setup the Asterisk server with the

Internet Gate

This guide presents ways to setup the Asterisk server together with the Intertex Internet Gate. Below two different setups are described. Also, please check section .

Contents

1FORWARD ALL SIP TRAFFIC TO THE ASTERISK SERVER...1

2FORWARD A SPECIFIC DOMAIN...3

3FORWARD AN IP ALIAS...4

4ASTERISK SETTINGS...6

5EXAMPLE SIP.CONF FILE...7

6EXAMPLE EXTENSIONS.CONF FILE...9

1 Forward all SIP traffic to the Asterisk server

When using the Intertex Internet Gate in combination with the Asterisk server, you can have SIP hard/soft phones both on the WAN (e.g. the Internet) and on your LAN registered at your Asterisk server. The Intertex Internet Gate is by default SIP transparent.

(2)

1. The easiest way to setup the Asterisk server is to place it on the LAN with manually assigned local IP address (e.g. 192.168.1.10).

2. Surf into your Internet Gate (http://192.168.0.1) and (under SIP Advanced) setup a Static domain forwarding: Enter your public IP address (i.e. the Internet Gate WAN address) in the domain field, e.g. 80.244.64.92, and in the

Forward to (IP) field the Asterisk server’s local IP address, e.g. 192.168.1.10. Remember to save your settings.

When you have setup user accounts on your Asterisk server, all of your SIP hard/soft phones can register on, make calls from and receive calls on the SIP address “[email protected]”. Remember that all SIP traffic now will be forwarded to the Asterisk server and that many of the Internet Gate’s SIP features, such as Dial Plans, Short extension no, Authentication will be disabled.

(3)

2 Forward a specific domain

If you would like to forward a specific domain for your SIP traffic you could choose another setup. With the Internet Gate you could at the same time have several domains pointing at services on your LAN (e.g. the domain “company.com” point at your web and ftp server and the “companysip.com” point at your asterisk server).

Now let’s say you would like to be contacted on the SIP address [email protected]”, here is the setup:

1Place the Asterisk server on the LAN with manually assigned local IP address (e.g.

192.168.1.10).

(4)

3Surf into your Internet Gate (http://192.168.0.1) and enter a Static domain

forwarding (under SIP Advanced) from the domain, e.g. “companysip.com”,

to the Asterisk server’s local IP address, e.g. 192.168.1.10.

When you have setup user accounts on your Asterisk server, all of your SIP hard/soft phones can register on, make calls from and receive calls on the SIP address

[email protected]”.

3 Forward an IP alias

If you rather would like users to be contacted on SIP addresses such as

[email protected], this is the preferred setup. When using the Intertex Internet Gate in

combination with the Asterisk server, you can have SIP hard/soft phones both on the WAN (e.g. the Internet) and on your LAN registered at your Asterisk server. The Intertex Internet

(5)

1 Place the Asterisk server on the LAN with manually assigned local IP address (e.g.

192.168.1.10).

2 Surf into your Internet Gate (http://192.168.0.1) and click Network below

Configurations. At the bottom left, click Advanced. Now, at the top below Internet, you will find IP aliases. Enter the public IP address to the Asterisk

server here, e.g. 80.244.64.91.

3 In your Internet Gate, enter a Static domain forwarding (under SIP

Advanced) from the domain, e.g. 80.244.64.91, to the Asterisk server’s local

IP address, e.g. 192.168.1.10.

When you have setup user accounts on your Asterisk server, all of your SIP hard/soft phones can register on, make calls from and receive calls on the SIP address

(6)

4 Asterisk settings

NAT traversal

• Turn of any NAT traversal setup features in the Asterisk server. The Asterisk server should be configured just as it is on the Internet outside any NATs or Firewalls. For example, all peer definitions should have:

nat=no

• Make sure that you comment out these lines in sip.conf:

; externip=200.201.202.203 ; localnet=192.168.1.0

; localmask=255.255.255.0

Outbound Proxy

When you use an Asterisk on the LAN with an Internet Gate you should always set the Outbound Proxy setting in sip.conf to the LAN IP address of the Internet Gate router (default 192.168.0.1).

outboundproxy=192.168.0.1

Asterisk filters calls based on source IP address

The Asterisk matches an incoming call to a peer object that then selects the context that should be used. The peer object can be found by source IP address of the SIP message and since the Internet Gate contains a SIP Proxy the IP address will be that of the SIP Proxy and not the remote callers IP address. If your Asterisk PBX rejects incoming calls passing through an Internet Gate router with a SIP response of “404 Not Found”, “403 Forbidden” or “407 Authentication Required” this may be your problem. This may also be the problem if a call gets routed in a context you did not expect.

When using Internet Gate routers you have to make sure you have a peer section that matches the IP address of the Internet Gate (default 192.168.0.1 on LAN). Adding a peer like this in sip.conf:

(7)

If you want to block certain source IP addresses or SIP users from calling you, we recommend you let the Internet Gate handle this functionality. You can enter additional firewall rules in the Internet Gate that block source IP addresses and you can use the Blacklist features on the SIP settings pages to block SIP users.

Silent-suppression

• To be able to use the Asterisk server’s IVR capabilities, remember that in order to get media out from the Asterisk server, it needs media input. Therefore, make sure to disable silent-suppression in your all of your SIP hard/soft phones, i.e. enable background “comfort noise”.

Static domain forwarding

• [Firmware release 3.16 or earlier] If you are using static domain forwarding from the public WAN address to the Asterisk server, you should also check the "Disable username encoding (registrations)" in the SIP Advanced page.

5 Example sip.conf file

; ---; /etc/asterisk/sip.conf

;******************************************************************** [general]

context=default

port=5060 ; Port to bind to (SIP is 5060)

bindaddr=0.0.0.0 ; Address to bind to (all addresses on machine) maxexpirey=3200 defaultexpirey=3000 notifymimetype=text/plain rtptimeout=60 rtpholdtimeout=300 dtmfmode=rfc2833 disallow=all allow=alaw allow=ulaw allow=gsm allow=g729 allow=g711 ;

register => itspun:[email protected]/555123 ; register with ITSP register => asterisk:asterisk@mysipproxy ; register with your

; Internet Gate ;

;******************************************************************** [outboundpstn] ; outbound PSTN calls via ITSP

(8)

secret=itsppassw host=myitsp.com port=5060 nat=no qualify=no

insecure=port,invite ; Allow incoming calls without authentication context=external-dialplan

;

;******************************************************************** [inboundsip] ; inbound SIP calls via Internet Gate

type=peer

host=192.168.0.1

insecure=port,invite ; Allow incoming calls without authentication context=external-dialplan

;

;******************************************************************** [outboundsip] ; outbound SIP calls via Internet Gate

type=friend username=asterisk fromdomain=mysipproxy secret=asterisk host=mysipproxy port=5060 nat=no qualify=no

(9)

6) Example extensions.conf file

; ********************************************************************** ; /etc/asterisk/extensions.conf

; ********************************************************************** [external-dialplan]

;external users only allowed to call registered users exten => _XXXX,1,Dial(SIP/${EXTEN})

[internal-dialplan]

;internal users can call pstn and registered users exten => _XXXX,1,Dial(SIP/${EXTEN})

References

Related documents

For a call centre manager or customer service director, flexibility is key?. They need to be able to scale numerous channels up and down to account for seasonal fluctuations and peak

In this section, you will point the SPA8800 to the Asterisk Server as the SIP proxy for the FXO ports and the provide user credentials that you defined earlier in the sip.conf

AMI Username: This is the password (secret) we setup earlier in the manager_additional.conf file on your Asterisk

[r]

• Lower cost calls utilising your internet server provider • Compatible with IP extensions as well as standard SIP phones • IP Phones and Softphones for Remote Workers and Road

Register Server Port: Register port of public SIP server,default port is 5060; Register Username: Username of your SIP account (Always the same as the phone number);..

tation of the excess clause would have provided the court with a sound basis for determining whether the works policy was primary to the asset policy and, consequently, whether or

unreliable, and the Eight Circuit Court of Appeals upheld the decision. 216 Voice identification evidence was excluded in United States v. 217 Expert evidence as to