Difference between revisions of "VoIP with XS4ALL"

From LinuxMCE
Jump to: navigation, search
(forgot a codec)
(completely updated)
Line 3: Line 3:
 
Before you start you need to have activated your [http://www.xs4all.nl/allediensten/voip/activeren.php XS4All VoIP number].  As you will need the account details further on, replace '''<08787.....>''' with your own phone number and '''<password>''' with the password for that number.
 
Before you start you need to have activated your [http://www.xs4all.nl/allediensten/voip/activeren.php XS4All VoIP number].  As you will need the account details further on, replace '''<08787.....>''' with your own phone number and '''<password>''' with the password for that number.
  
1. Go to the web admin page (type your core's IP in a browser) and from the upper menu, choose '''Advanced > Configuration > Phones setup''', you should see the Asterisk Management Portal (AMP) welcome page now.
+
Note that this procedure has been tested on 0710 Beta3, it is probably similar under 0704.
  
2. Choose '''Setup''', a menu appears, goto '''Trunks''' and select Add SIP Trunk.
+
# Go in the web admin page (see [[Logging In]]) to '''Wizard > Devices > Phone Lines'''
+
## Check ''When dialing a local number, automatically prepend the area code'' and specify the areacode you would like to have prepended when dialing a local number, for instance in Rotterdam 010, Amsterdam 020, etc. (this is optional).
- General Settings -
+
## Uncheck ''Also prepend a digit (1 for US/Canada, 0 for Europe)'' (also optional).
+
## ''Local Number Length'' '''7''' (the default).
Outbound Caller ID: '''''<08787.....>'''''
+
# Hit the ''Update'' button.
Maximum channels:
+
# ''Choose provider'' '''sipgate (try for free, pay as you go)'''
+
## ''Username'' '''<08787.....>'''
+
## ''Password'' '''<password>'''
- Outgoing Dial Rules -
+
## ''Phone number'' '''<08787.....>'''
+
## ''Host'' '''sip.xs4all.nl'''
Dial Rules:
+
# Hit the ''Submit'' button.
  '''''020'''+ZXXXXXX''
+
# Hit the ''Deactivate Automatic Configuration'' button.
  ''0ZXXXXXXXX''
+
# Hit the ''Yes'' button.
  ''0+0031|ZXXXXXXXX''
+
# Click the ''click here'' link (next to ''Manual configuration activated. To configure AMP, click'')
  ''00ZXXXXXXXXXX''
+
# Click ''Trunks'', and ''Trunk SIP/sipgate''
Outbound Dial Prefix:
+
# Under "Outgoing Dial Rules" change ''Dial Rules'' to (adjust the '''020''' to your own area prefix if you're not in Amsterdam):
+
112
+
'''020'''+XXXXXXX
- Outgoing Settings -
+
0NXXXXXXXX
+
0031|0+.
Trunk Name: ''xs4all''
+
9|.
PEER Details:
+
## This will recognize 112 the emergency number.
  ''host=sip.xs4all.nl''
+
## Seven digit local numbers will get 020 prepended.
  ''secret='''<password>'''''
+
## Long distance numbers, 10 digits starting with a zero followed by a non-zero digit.
  ''type=peer''
+
## International numbers to the Netherlands get 0031 stripped and a 0 prepended instead.
  ''username='''<08787.....>'''''
+
## A nine will dial out no matter how many digits.
+
# You now can (optionally) modify other settings to your liking as well, however do NOT change the ''Trunk Name'' (leave it at the default '''sipgate''').  When done hit ''Submit Changes''.
+
# Click ''Reload Required Apply Configuration Changes'' and ''Continue with reload''.
- Incoming Settings -
+
# Go back to '''Wizard > Devices > Phone Lines''' and hit the ''Activate Automatic Configuration'' button, followed by the ''Yes and keep my advanced settings'' button.
+
  USER Context: xs4all-in
+
  USER Details:
+
  ''allow=g723&g729&alaw&ulaw''
+
  ''context=from-pstn''
+
  ''disallow=all''
+
  ''externip='''<your-ip>'''''
+
  ''fromdomain=sip.xs4all.nl''
+
  ''fromuser='''08787.....'''''
+
  ''host=sip.xs4all.nl''
+
  ''insecure=very''
+
  ''nat=yes''
+
  ''port=5060''
+
  ''qualify=no''
+
  ''restricted=no''
+
  ''secret='''<password>'''''
+
  ''type=friend''
+
  ''username='''08787.....'''''
+
+
+
- Registration -
+
+
Register String: '''''<08787.....>''':'''<password>'''@sip.xs4all.nl''
+
  
3. Hit the submit button and proceed to '''Outbound Routing'''.
+
When you see the status '''Registered''' followed by a date and time you should be able to make and receive calls.
 
+
Route Name: ''VoIP''
+
Route Password:
+
+
Dial Patterns:
+
  ''0031|ZXXXXXXXX''
+
  ''ZXXXXXX''
+
Trunk Sequence:
+
  ''SIP/xs4all''
+
 
+
4. Click '''You have made changes - when finished, click here to APPLY them''' (in the red bar near the top of the page) after which you should be able to make and receive calls using your XS4ALL VoIP number.
+
 
+
 
+
I am not 100% sure whether this is the right setup for LinuxMCE, so if there is a better way or anything else is wrong then please update this page or leave a message in the [http://forum.linuxmce.com/index.php?topic=1876.msg8515#msg8515 Adding voip phone lines not on the providers list] thread on the forum.
+
  
  

Revision as of 02:43, 28 January 2008

The internet provider XS4ALL (in dutch) gives it's customers 2 VoIP lines free of charge, with the option to be able to make outbound calls to phone numbers worldwide.

Before you start you need to have activated your XS4All VoIP number. As you will need the account details further on, replace <08787.....> with your own phone number and <password> with the password for that number.

Note that this procedure has been tested on 0710 Beta3, it is probably similar under 0704.

  1. Go in the web admin page (see Logging In) to Wizard > Devices > Phone Lines
    1. Check When dialing a local number, automatically prepend the area code and specify the areacode you would like to have prepended when dialing a local number, for instance in Rotterdam 010, Amsterdam 020, etc. (this is optional).
    2. Uncheck Also prepend a digit (1 for US/Canada, 0 for Europe) (also optional).
    3. Local Number Length 7 (the default).
  2. Hit the Update button.
  3. Choose provider sipgate (try for free, pay as you go)
    1. Username <08787.....>
    2. Password <password>
    3. Phone number <08787.....>
    4. Host sip.xs4all.nl
  4. Hit the Submit button.
  5. Hit the Deactivate Automatic Configuration button.
  6. Hit the Yes button.
  7. Click the click here link (next to Manual configuration activated. To configure AMP, click)
  8. Click Trunks, and Trunk SIP/sipgate
  9. Under "Outgoing Dial Rules" change Dial Rules to (adjust the 020 to your own area prefix if you're not in Amsterdam):
112
020+XXXXXXX
0NXXXXXXXX
0031|0+.
9|.
    1. This will recognize 112 the emergency number.
    2. Seven digit local numbers will get 020 prepended.
    3. Long distance numbers, 10 digits starting with a zero followed by a non-zero digit.
    4. International numbers to the Netherlands get 0031 stripped and a 0 prepended instead.
    5. A nine will dial out no matter how many digits.
  1. You now can (optionally) modify other settings to your liking as well, however do NOT change the Trunk Name (leave it at the default sipgate). When done hit Submit Changes.
  2. Click Reload Required Apply Configuration Changes and Continue with reload.
  3. Go back to Wizard > Devices > Phone Lines and hit the Activate Automatic Configuration button, followed by the Yes and keep my advanced settings button.

When you see the status Registered followed by a date and time you should be able to make and receive calls.