Hi All,
Last weekend I’ve been migrated from XS4ALL to KPN VOIP.
After almost 12 hours of struggles I managed to get Asterisk 18 configured.
Information is scarce and it was a lot of trial and error.
Here is my config:
pjsip.conf
============
[simpletrans]
type = transport
protocol = udp
bind = 0.0.0.0
[kpn-auth]
type = auth
auth_type = userpass
username = aabaXXXXXXXX@ims.imscore.net
password = XXXXXXXXXXXXXXXX
[kpn-reg]
type = registration
outbound_auth = kpn-auth
transport = simpletrans
server_uri = sip:ims.imscore.net
client_uri = sip:+31XXXXXXXXX@ims.imscore.net
contact_user = inbound-kpn
outbound_proxy = sip:voip1-ext.kpn.net\;lr
retry_interval = 60
[kpn-aor]
type = aor
contact = sip:ims.imscore.net
outbound_proxy = sip:voip1-ext.kpn.net\;lr
[kpn-out]
type = endpoint
context = default
disallow = all
allow = alaw
outbound_auth = kpn-auth
aors = kpn-aor
outbound_proxy = sip:voip1-ext.kpn.net\;lr
from_user = +31XXXXXXXXX
from_domain = ims.imscore.net
[kpn-id]
type = identify
endpoint = kpn-out
match = voip1-ext.kpn.net
==========
Just define an extension inbound-kpn where all the incoming calls are sent.
To send calls to kpn define an extension as below:
exten => _9., 1, Dial(PJSIP/${EXTEN:1}@kpn-out,60)
same => n, Hangup
All the dialled numbers starting with 9 are forwarded to kpn.
I hope it will save hours from your life.