Upgrade 3CX to v18 and get it hosted free!

Asterisk settings for DialTelecom

Author image

Asterisk Settings for DialTelecom

DialTelecom is an alternative telephone operator in Slovakia, that offers VoIP and regular voice services. This article shows the configuration details on how to get asterisk to call through DialTelecom.

sip.conf

First, edit sip.conf and add the following lines:


[general]

register => YOURUSERNAME:[email protected]     ;(the IP address is the DialTelecom Gateway)

[dialtelecom.sk]
fromuser=YOURUSERNAME
username=YOURUSERNAME
secret=YOURPASS
disallow=all
allow=alaw
allow=ulaw
type=friend   ;(if you want to allow DialTelecom to call into your PBX)
;type=peer    ;(if you want only outgoing calls to DialTelecom)

;host=voip.dialtelecom.sk   ; (the IP address for this is 217.67.27.11, the hostname I made up and entered into my /etc/hosts file)
host=sip.dialtelecom.sk      ; this is the valid DNS record

user=phone ; (I needed this to make it work)
; (You can also enter a context, but it works without defining any)
insecure=very  ;(To allow registered hosts to call without re-authenticating)
canreinvite = no
qualify=yes

extensions.conf

Now, after editing the sip.conf file, it is necessary to edit the extensions.conf file, to allow calls onto through DialTelecom. In this example i will present the solution that I used. (It is specific for Slovakia, but you’ll get the idea)


[dial]
; For calling SlovakTelecom phone lines in Bratislava
exten => _70XXXXXXXXX                   ,1,Dial(SIP/${EXTEN:1}@dialtelecom.sk,,tThT)
exten => _70XXXXXXXXX                   ,2,congestion()
exten => _70XXXXXXXXX                   ,102,busy()

; For calling mobile phone numbers (Orange and T-Mobile)
exten => _7090XXXXXXX                   ,1,Dial(SIP/${EXTEN:1}@dialtelecom.sk,,tThH)
exten => _7090XXXXXXX                   ,2,congestion()
exten => _7090XXXXXXX                   ,102,busy()

exten => _7091XXXXXXX                   ,1,Dial(SIP/${EXTEN:1}@dialtelecom.sk,,tThH)
exten => _7091XXXXXXX                   ,2,congestion()
exten => _7091XXXXXXX                   ,102,busy()


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.
Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.