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!

Talk:VoIP Phones - Asterisk: Difference between revisions

no edit summary
(Created page with "== Incoming Calls == === Peer Section === *Accept authenticated calls and route them to a context. <pre> [aaisp-incoming-username] type=peer context=aaisp-incoming-context sec...")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
== Incoming Calls ==
=== Peer Section ===
*Accept authenticated calls and route them to a context.
<pre>
context=aaisp-incoming-context
secret=aaisp-incoming-password
transport=udp
disallow=all
allow=alaw
trustrpid=yes
</pre>
=== Authentication ===
*There are two options: either detect Voiceless and ask it to authenticate, or request that every rejected attempt authenticates.
*In both cases you need to use the '''match_auth_username=yes''' setting otherwise Asterisk will not recognise Voiceless' username.
 
=== Authentication ===
==== Authenticate Everyone ====
*Voiceless must authenticated so that calls are recognised as the above peer section.
*This is the more secure option as it stops your usernames from being enumerated by brute force.
*In both cases youYou need to use the '''match_auth_username=yes''' setting otherwise Asterisk will not recognise Voiceless' usernameinitial requests.
 
<pre>
[general]
alwaysauthreject=yes
match_auth_username=yes
</pre>
 
== Outgoing Calls ==
==== Authenticate Voiceless ====
*Either use a separate '''type=user''' section or combine incoming and outgoing in one '''type=friend''' section
*This is the more complex option as you need to list every Voiceless name.
<pre>
[general]
alwaysauthreject=no
match_auth_username=yes
 
== Separate Section ==
[aaisp-voiceless]
<pre>
type=peer
[aaisp-outgoing-account]
md5secret=intentionally_invalid_md5_string
type=peeruser
 
[aaisp-host=voiceless-a4](aaisp-voiceless).aa.net.uk
host=a4.voiceless.aa.net.uk
defaultip=81.187.30.111
username=aaisp-phone-number
 
remotesecret=aaisp-outgoing-password
[aaisp-voiceless-b4](aaisp-voiceless)
transport=udp
host=b4.voiceless.aa.net.uk
disallow=all
defaultip=81.187.30.113
allow=alaw
 
[aaisp-voiceless-c4](aaisp-voiceless)
host=c4.voiceless.aa.net.uk
defaultip=81.187.30.112
 
[aaisp-voiceless-d4](aaisp-voiceless)
host=d4.voiceless.aa.net.uk
defaultip=81.187.30.114
</pre>
 
== Combined Section ==
 
<pre>
== Outgoing Calls ==
[aaisp-incoming-username]
*Either use a separate '''type=user''' section or combine incoming and outgoing in one '''type=friend''' section
type=friend
transport=udp
disallow=all
allow=alaw
; incoming
context=aaisp-incoming-context
secret=aaisp-incoming-password
trustrpid=yes
; outgoing
host=a4.voiceless.aa.net.uk
defaultip=81.187.30.113111
username=aaisp-phone-number
remotesecret=aaisp-outgoing-password
</pre>
42

edits