editor
520
edits
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!
m (Make the outbound context clear) |
m (Don't feel comfortable with live number in example. No point in allowing ulaw because AAISP don't use it) |
||
(5 intermediate revisions by the same user not shown) | |||
==PJSIP: Trunk registration==
Here is an example of a working pjsip.conf setup where Asterisk will register with A&A
It is recommended you read the "PJSIP: NAT Issues: Keep-Alive / Anti-Idle" section below as you may wish to comment out or drastically increase the qualify_frequency line(s) if your Asterisk is not behind NAT.
In pjsip.conf:
[
type = registration
retry_interval = 20
contact_user = maininbound
expiration = 120
outbound_auth =
client_uri = sip:+
server_uri = sip:voiceless.aa.net.uk
[
type = auth
password =
username = +
[aaisptrunk]
type = aor
contact = sip:+
qualify_frequency=20
[aaisptrunk_servera]
type = aor
contact = sip:+
qualify_frequency=20
[aaisptrunk_serverb]
type = aor
contact = sip:+
qualify_frequency=20
disallow = all
allow = alaw
direct_media = no
rtp_symmetric = yes
aors = aaisptrunk,aaisptrunk_servera,aaisptrunk_serverb
outbound_auth=
===extensions.conf===
exten = maininbound,n,Voicemail(222@default,us)
You can dial out via the trunk with (probably in a context like "from-internal"):
exten => _X.,1,Dial(PJSIP/${EXTEN}@aaisptrunk,,)
==PJSIP: Trunk without registration==
Then set the AAISP control panel to point to your server by hostname or IP address:<br />
Outgoing calls require registration, and you'll automatically receive incoming calls to registered "phones". If you register Asterisk and have calls sent directly to Asterisk you'll receive 2 copies of each call.
[[File:Asterisk pjsip noregistration.png|border]]
exten => _X.,1,Dial(SIP/voiceless-out/${EXTEN})
</syntaxhighlight>
For inbound calls (assuming you're routing
<syntaxhighlight lang="ini">
[voiceless-in]
|