Asterisk/MemberPBX

From NURDspace
Revision as of 11:01, 8 August 2022 by R3boot (talk | contribs) (Created page with "= Introduction = The following page describes the step taken by one of the members to connect an asterisk installation running at home of the member to the instance that is ru...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Introduction

The following page describes the step taken by one of the members to connect an asterisk installation running at home of the member to the instance that is running @ nurdspace

Local setup

OS: OpenBSD Asterisk: 18.x

pjsip.conf

[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0

; ==================
; Mitel 6865i
;
[00085DAABBCC]
type=endpoint
transport=transport-udp
context=phones
disallow=all
allow=ulaw
auth=00085DAABBCC
aors=00085DAABBCC

[00085DAABBCC]
type=auth
auth_type=userpass
password=somereallysecurepassword
username=00085DAABBCC

[00085DAABBCC]
type=aor
max_contacts=1

; ==================
; iPhone softphone
;
[USER_SOFTPHONE]
type=endpoint
transport=transport-udp
context=phones
disallow=all
allow=ulaw
auth=USER_SOFTPHONE
aors=USER_SOFTPHONE

[USER_SOFTPHONE]
type=auth
auth_type=userpass
password=anotherreallysecurepassword
username=USER_SOFTPHONE

[USER_SOFTPHONE]
type=aor
max_contacts=1

extensions.conf

[general]

[globals]
user_DeskPhone=PJSIP/00085DAABBCC
user_SoftPhone=PJSIP/USER_SOFTPHONE

[phones]
exten => 100,1,Dial(${user_DeskPhone})
exten => 101,1,Dial(${user_SoftPhone})

exten => 200,1,Answer()
 same => n,Playback(hello-world)
 same => n,Hangup()

Verification that things are working

Check SIP transports

pjsip show transports

Check SIP endpoints

pjsip show endpoints