Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

VoIP Phones - Asterisk: Difference between revisions

m
Don't feel comfortable with live number in example. No point in allowing ulaw because AAISP don't use it
m (Explain why you can get 2 copies of each inoming call)
Tags: Mobile edit Mobile web edit
m (Don't feel comfortable with live number in example. No point in allowing ulaw because AAISP don't use it)
 
 
In pjsip.conf:
[reg_442082881111reg_441234567890]
type = registration
retry_interval = 20
contact_user = maininbound
expiration = 120
outbound_auth = auth_reg_442082881111auth_reg_441234567890
client_uri = sip:+442082881111441234567890@voiceless.aa.net.uk
server_uri = sip:voiceless.aa.net.uk
[auth_reg_442082881111auth_reg_441234567890]
type = auth
password = NotRealPasswordHereSecretPasswordGoesHere
username = +442082881111441234567890
[aaisptrunk]
type = aor
contact = sip:+442082881111441234567890@voiceless.aa.net.uk
qualify_frequency=20
 
[aaisptrunk_servera]
type = aor
contact = sip:+442082881111441234567890@a.voiceless.aa.net.uk
qualify_frequency=20
 
[aaisptrunk_serverb]
type = aor
contact = sip:+442082881111441234567890@b.voiceless.aa.net.uk
qualify_frequency=20
disallow = all
allow = alaw
allow = ulaw
direct_media = no
rtp_symmetric = yes
aors = aaisptrunk,aaisptrunk_servera,aaisptrunk_serverb
outbound_auth=auth_reg_442082881111auth_reg_441234567890
 
The "contact_user" option in the registration section sets the context for incoming calls to Asterisk, in this example calls come into the context "maininbound" in extensions.conf
exten = maininbound,n,Voicemail(222@default,us)
 
You can dial out via the trunk with (probably in a context like "from-internal"):
 
[mainoutbound]
exten => _X.,1,Dial(PJSIP/${EXTEN}@aaisptrunk,,)
editor
520

edits