Files
2025-08-21 01:07:07 +00:00

145 lines
3.7 KiB
Plaintext

; Configure here your ICP Link towards outside (SIP Trunk account, etc.)
[global]
type=global
user_agent=IBCF VoLTE
keep_alive_interval=20
; Add some default Number to be used in case From not specified otherwise you can comment it out
default_from_user=_DEFAULT_NUMBER
;endpoint_identifier_order=ip
ignore_uri_user_options=yes
max_forwards=70
allow_sending_180_after_183=yes
; Protect your IBCF with ACL. Configure permit/deny IPs in acl.conf. This is important to prevent untrusted IP from trying to reach this PBX.
[ibcf_acl]
type=acl
acl=ibcf_acl
; Transport definitions, nothing important here, unless you want to change something
[transport-tcp-nat]
type=transport
protocol=tcp
bind=0.0.0.0:5090
tos=192
local_net=172.22.0.0/24
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5090
local_net=172.22.0.0/24
;tos=192
; Below configures the registration info for your Trunking Account. If you use a real ICP over the "Ic" Reference Point the configuration is different, it will be more like static registration.
; Change the values of PROVIDER_PCSCF, PROVIDER_SIP_DOMAIN with your provider's info.
[defaults_registration](!)
type=registration
transport=transport-tcp-nat
outbound_proxy=sip:PROVIDER_PCSCF\;transport=tcp\;lr
server_uri=sip:PROVIDER_SIP_DOMAIN\;transport=tcp\;lr
retry_interval=900
forbidden_retry_interval=1800
fatal_retry_interval=1800
expiration=480
auth_rejection_permanent=no
line=yes
max_retries=99
; Replace with your account data!!
; Replace the values of AUTH_USERNAME@PROVIDER_DOMAIN and CONTACT_USER with your provider's info.
[ICP_LINK](defaults_registration)
outbound_auth=ICP_LINK
client_uri=sip:AUTH_USERNAME@PROVIDER_DOMAIN
contact_user=CONTACT_USER
endpoint=ICP_LINK_in
; Below configures the type of authentication. In register mode you need to provide a user name and password.
; Change the values of PROVIDER_USERNAME, PROVIDER_PASSWD and PROVIDER_DOMAIN with your provider's info.
[ICP_LINK]
type=auth
auth_type=userpass
username=PROVIDER_USERNAME
password=PROVIDER_PASSWD
realm=PROVIDER_DOMAIN
; Change the values of PROVIDER_PCSCF with your provider's info.
[defaults_endpoint](!)
type=endpoint
transport=transport-tcp-nat
;removed for double contacts
outbound_proxy=sip:PROVIDER_PCSCF\;transport=tcp\;lr
allow=!all,amrwb,amr,g722,alaw,h264
inband_progress=yes
direct_media=no
dtmf_mode=auto
;send_pai=yes
;send_rpid=yes
;100rel=required
100rel=yes
tos_audio=184
rtp_symmetric=yes
rtp_keepalive=1
moh_suggest=default
moh_passthrough=yes
send_diversion=yes
suppress_q850_reason_headers=yes
user_eq_phone=yes
preferred_codec_only=yes
;tos_video=af41
;cos_video=4
direct_media_glare_mitigation=outgoing
suppress_moh_on_sendonly=yes
use_ptime=yes
; Outgoing Leg
; Change the values of PROVIDER_DOMAIN and CONTACT_USER with your provider's info.
[ICP_LINK_out](defaults_endpoint)
context=outgoing
outbound_auth=ICP_LINK
aors=ICP_LINK
;media_encryption=no
from_domain=PROVIDER_DOMAIN
contact_user=CONTACT_USER
[ICP_LINK_in](defaults_endpoint)
outbound_auth=ICP_LINK
context=incoming
; Change the value of CONTACT_USER with your provider's info.
[ICP_LINK]
type=aor
contact=sip:CONTACT_USER
; Match the incoming request to only a specific IPs like your provider's subnet and your IMS Core internal subnet.
[ICP_LINK_in]
type=identify
endpoint=ICP_LINK_in
match=PROVIDER_SUBNET/24
match=DOCKER_HOST_SUBNET/24
[ims_core]
type=endpoint
aors=ims_core
allow_unauthenticated_options=yes
transport=transport-udp
context=IMS_INC
allow=!all,evs,amrwb,amr,g722,alaw,h264
dtmf_mode=auto
tos_audio=184
send_diversion=yes
preferred_codec_only=yes
[ims_core]
type=identify
endpoint=ims_core
match=172.22.0.0/24
[ims_core]
type=aor
;contact=sip:172.22.0.20
max_contacts=3
;qualify_frequency=60