; PJSIP Configuration — Transport, Global, and ACL only ; All endpoints/auths/AORs are loaded from PostgreSQL via ODBC Realtime [global] type=global user_agent=GoSec-PBX [transport-udp] type=transport protocol=udp bind=0.0.0.0:5060 ; ACL to allow only Kamailio servers [kamailio-acl] type=acl permit=172.17.6.42/32 permit=172.17.6.43/32 permit=172.17.6.1/32 ; === Kamailio Dispatcher Health Checks === ; These remain static — Kamailio needs them for OPTIONS pings [dispatcher] type=endpoint context=from-kamailio disallow=all allow=ulaw allow=alaw allow=g729 direct_media=no rtp_symmetric=yes force_rport=yes rewrite_contact=yes aors=dispatcher-aor [dispatcher-aor] type=aor qualify_frequency=0 [identify-kamailio1] type=identify endpoint=dispatcher match=172.17.6.42/32 [identify-kamailio2] type=identify endpoint=dispatcher match=172.17.6.43/32 [identify-kamailio-vip] type=identify endpoint=dispatcher match=172.17.6.1/32 ; === Kamailio Outbound Endpoint === ; Static — used by dialplan for outbound calls via Kamailio VIP [kamailio-out] type=endpoint context=from-kamailio disallow=all allow=ulaw allow=alaw allow=g729 direct_media=no rtp_symmetric=yes force_rport=yes rewrite_contact=yes trust_id_inbound=yes send_rpid=yes acl=kamailio-acl aors=kamailio-out-aor [kamailio-out-aor] type=aor contact=sip:172.17.6.1:5060 qualify_frequency=30