Difference between revisions of "VoIP with XS4ALL"

From LinuxMCE
Jump to: navigation, search
(updated with new insights)
(cleaned up/improved/verified)
Line 1: Line 1:
The internet provider [http://www.xs4all.nl XS4All] (in dutch) gives it's customers 2 [http://www.xs4all.nl/allediensten/voip/ VOIP] lines free of charge, with the option to be able to make outbound calls to phone numbers worldwide.
+
The internet provider [http://www.xs4all.nl XS4ALL] (in dutch) gives it's customers 2 [http://www.xs4all.nl/allediensten/voip/ 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 [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, '''<password>''' with the password for that number and '''<your-ip>''' with your external ip-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 AMP (Asterisk Management Portal) welcome page now.
+
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.
  
2. Choose Setup, a menu appears, goto Trunks and select Add SIP Trunk.
+
2. Choose '''Setup''', a menu appears, goto '''Trunks''' and select Add SIP Trunk.
 
   
 
   
 
  - General Settings -
 
  - General Settings -
 
   
 
   
  Outbound Caller ID: '''''08787.....'''''
+
  Outbound Caller ID: '''''<08787.....>'''''
 
  Maximum channels:
 
  Maximum channels:
 
   
 
   
Line 16: Line 16:
 
   
 
   
 
  Dial Rules:
 
  Dial Rules:
   '''''020+NXXXXXX'''''
+
   '''''020'''+ZXXXXXX''
   ''0NXXXXXXXX''
+
   ''0ZXXXXXXXX''
   ''0+0031|NXXXXXXXX''
+
   ''0+0031|ZXXXXXXXX''
   ''00NXXXXXXXXXX''
+
   ''00ZXXXXXXXXXX''
 
  Outbound Dial Prefix:
 
  Outbound Dial Prefix:
 
   
 
   
Line 30: Line 30:
 
   ''secret='''<password>'''''
 
   ''secret='''<password>'''''
 
   ''type=peer''
 
   ''type=peer''
   ''username='''08787.....'''''
+
   ''username='''<08787.....>'''''
 
   
 
   
 
   
 
   
Line 38: Line 38:
 
  USER Details:
 
  USER Details:
 
   ''allow=alaw&g729&g723
 
   ''allow=alaw&g729&g723
   ''context=from-trunk
+
   ''context=from-pstn
 
   ''disallow=all
 
   ''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''
 
   ''type=friend''
  ''username='''08787.....'''''
 
 
   
 
   
 
   
 
   
 
  - Registration -
 
  - Registration -
 
   
 
   
  Register String: '''''08787.....:<password>@sip.xs4all.nl'''''
+
  Register String: '''''<08787.....>''':'''<password>'''@sip.xs4all.nl''
  
I'm not sure whether all of these are necessary (or even the ''right way'' of doing things) but it works for me.
+
3. Hit the submit button and proceed to '''Outbound Routing'''.
 
+
 
+
3. Hit the submit button and proceed to Inbound Routing, pick '''anything but NOT''': '''''Use 'Incoming Calls' settings''''' for Set Destination (see below). And hit submit again, then you need to click the red bar near the top of the page to appy the changes.
+
  
 +
Route Name: ''VoIP''
 +
Route Password:
 +
 +
Dial Patterns:
 +
  ''0031|ZXXXXXXXX''
 +
  ''ZXXXXXX''
 +
Trunk Sequence:
 +
  ''SIP/xs4all''
  
You should be able to make and receive calls using your XS4All VOIP number now.
+
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, especially about the inbound routing using the predefined ''from-trunk'' and the loop it seems to create when using the ''Use 'Incoming Calls' settings''.  If there is a better way or anything else is wrong then please update this page or leave a message in the
+
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.
[http://forum.linuxmce.com/index.php?topic=1876.msg8515#msg8515 Adding voip phone lines not on the providers list] thread on the forum.
+
  
----
 
NB. By examining the automaticly generated setup for "sipgate", I noticed that it uses ''context=from-internal'' in the ''Incoming Settings'' so that might be more suitable.  I'll try that the next time around and update this page accordingly.
 
----
 
  
 
[[Category: Telecom]]
 
[[Category: Telecom]]
 
[[Category: Phones]]
 
[[Category: Phones]]
 
[[Category: Tutorials]]
 
[[Category: Tutorials]]

Revision as of 21:04, 20 September 2007

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.

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.

2. Choose Setup, a menu appears, goto Trunks and select Add SIP Trunk.

- General Settings -

Outbound Caller ID: <08787.....>
Maximum channels:


- Outgoing Dial Rules -

Dial Rules:
 020+ZXXXXXX
 0ZXXXXXXXX
 0+0031|ZXXXXXXXX
 00ZXXXXXXXXXX
Outbound Dial Prefix:


- Outgoing Settings -

Trunk Name: xs4all
PEER Details:
 host=sip.xs4all.nl
 secret=<password>
 type=peer
 username=<08787.....>


- Incoming Settings -

USER Context: xs4all-in
USER Details:
 allow=alaw&g729&g723
 context=from-pstn
 disallow=all
 type=friend


- Registration -

Register String: <08787.....>:<password>@sip.xs4all.nl

3. Hit the submit button and proceed to Outbound Routing.

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 Adding voip phone lines not on the providers list thread on the forum.