Asterisk/MemberPBX: Difference between revisions

From NURDspace
Line 3: Line 3:


= Local setup =
= Local setup =
OS: OpenBSD
* OS: OpenBSD 7.1
Asterisk: 18.x
* Asterisk: 18.x


= pjsip.conf =
= pjsip.conf =

Revision as of 11:18, 8 August 2022

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 7.1
  • Asterisk: 18.x

pjsip.conf

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

; ==================
; Mitel 6865i
;
; Note, use the mac address of the device you are trying to connect
;
[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
;
; Use a generic name for this, but be sure to include 'SOFTPHONE' in the name
;
[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