51 lines
886 B
Text
51 lines
886 B
Text
; we use UDP for transport
|
|
[transport-udp]
|
|
type=transport
|
|
protocol=udp
|
|
bind=0.0.0.0
|
|
|
|
; Note: this defines a macro, to shorten the config further down
|
|
[endpoint_internal](!)
|
|
type=endpoint
|
|
context=from-internal
|
|
disallow=all
|
|
allow=ulaw
|
|
|
|
[auth_userpass](!)
|
|
type=auth
|
|
auth_type=userpass
|
|
|
|
[aor_dynamic](!)
|
|
type=aor
|
|
max_contacts=1
|
|
|
|
|
|
; here come the definitions for our phones, using the macros from above
|
|
|
|
; lecture hall 1
|
|
[saal1](endpoint_internal)
|
|
auth=saal1
|
|
aors=saal1
|
|
[saal1](auth_userpass)
|
|
; well, maybe set a better password than this
|
|
password=saal1
|
|
username=saal1
|
|
[saal1](aor_dynamic)
|
|
|
|
; lecture hall 2
|
|
[saal2](endpoint_internal)
|
|
auth=saal2
|
|
aors=saal2
|
|
[saal2](auth_userpass)
|
|
password=saal2
|
|
username=saal2
|
|
[saal2](aor_dynamic)
|
|
|
|
[backoffice](endpoint_internal)
|
|
auth=backoffice
|
|
aors=backoffice
|
|
[backoffice](auth_userpass)
|
|
password=backoffice
|
|
username=backoffice
|
|
[backoffice](aor_dynamic)
|
|
|