I’m using Asterisk on OpenBSD 5.9 from packages
_> Asterisk 13.7.1 built by pbuild @ i386.ports.openbsd.org on a i386 running OpenBSD on 2016-02-24 18:34:10 UTC
I’ve had no luck with PostgreSQL and PJSIP being stable with AORs and Contacts so I installed the basic version without PostgreSQL support. The configurations I started from were the stock configs. extconfig.conf only has the ‘[settings]’ line it, and I’ve tried with and without a sorcery file. Stock configs don’t provide a sorcery file configured for configuration file storage.
What’s strange is that the command ‘pjsip show endpoints’ always returns ‘no objects found’, but I have two endpoints registered and able to setup and complete a call. The CLI also shows me messages about Contacts being removed and/or created. Running the command ‘pjsip show endpoint 300’ returns information about the Endpoint. Aor and Auth work in the same fashion, but Contacts returns ‘no objects found’ as well.
While it seems like its working just fine, there has to be something wrong if the CLI is unable to enumerate and show the Endpoints.
Any ideas are appreciated. Any working configuration files that use config storage would be helpful too.
The sorcery file:
[res_pjsip]
endpoint=config,pjsip.endpoint.conf,criteria=type=endpoint
aor=config,pjsip.conf,criteria=type=aor
auth=config,pjsip.conf,criteria=type=auth
;contact=config,pjsip.conf,criteria=type=contact
[res_pjsip_endpoint_identifier_ip]
identify=config,pjsip.conf,criteria=type=identify
The pjsip conf files:
;#include pjsip.transports.conf
#include pjsip.endpoint.conf
;#include pjsip.aor.conf
;#include pjsip.auth.conf
;#include pjsip.registration.conf
;#include pjsip.identify.conf
[general]
tos=cs3
tos_audio=ef
tos_video=af41
cos=3
cos_audio=5
cos_video=3
[global]
type=global
user_agent=SystemOne v1.0
default_outbound_endpoint=dpma_endpoint
[updbindlocal]
type=transport
protocol=udp
bind=10.88.33.3:5060
external_media_address=216.218.241.203
external_signaling_address=216.218.241.203
local_net=10.0.0.0/8
auth-userpass
type=auth
auth_type=userpassaor-single-reg
type=aor
max_contacts=2
remove_existing=yes
maximum_expiration=7200
minimum_expiration=60
qualify_frequency=60
;; End Points
[300-identify]
type=identify
endpoint=300
match=10.88.33.71/32auth300
password=devpassone
username=300300
mailboxes=300@imapvm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[301-identify]
type=identify
endpoint=301
match=10.88.33.62/32auth301
password=devpassone
username=301301
mailboxes=301@imapvm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[dpma_endpoint]
type=endpoint
context=dpma-invalid
endpoint-basic
type=endpoint
transport=updbindlocal
context=internal
disallow=all
allow=g729,ulaw
dtmf_mode=rfc4733
aggregate_mwi=yes
use_avpf=no
ice_support=no
media_use_received_transport=no
trust_id_inbound=yes
media_encryption=no
media_encryption_optimistic=no
rtp_symmetric=yes
rewrite_contact=yes
force_rport=yes
language=en
300
auth=auth300
aors=300
accountcode=300
301
auth=auth301
aors=301
accountcode=301