[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
external_signaling_address=92.38.48.166
external_media_address=92.38.48.166

[transport-wss]
type=transport
protocol=wss
bind=0.0.0.0
external_signaling_address=92.38.48.166
external_media_address=92.38.48.166

[softphone-endpoint](!)
type=endpoint
disallow=all
allow=opus,ulaw,alaw
dtmf_mode=auto_info
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
webrtc=yes
ice_support=yes
rtcp_mux=yes
use_avpf=yes
media_encryption=dtls
dtls_auto_generate_cert=yes
dtls_setup=actpass
media_use_received_transport=yes
media_address=92.38.48.166

[caller-endpoint](!,softphone-endpoint)
context=from-softphones

[operator-endpoint](!,softphone-endpoint)
context=mvpcc-operators

[1001](caller-endpoint)
auth=1001-auth
aors=1001

[1001-auth]
type=auth
auth_type=userpass
username=1001
password=ChangeMe-1001

[1001]
type=aor
max_contacts=2

[2001](operator-endpoint)
auth=2001-auth
aors=2001

[2001-auth]
type=auth
auth_type=userpass
username=2001
password=ChangeMe-2001

[2001]
type=aor
max_contacts=1
remove_existing=yes
support_path=yes

[2002](operator-endpoint)
auth=2002-auth
aors=2002

[2002-auth]
type=auth
auth_type=userpass
username=2002
password=ChangeMe-2002

[2002]
type=aor
max_contacts=1
remove_existing=yes
support_path=yes

;========================================================================
; Telecom.kz SIP account (REGISTER auth, not IP trunk)
; DID: 87273901485
; SIP account: 86205414@sip.telecom.kz
;========================================================================
[telecom-kz-aor]
type=aor
max_contacts=1
remove_existing=yes
qualify_frequency=60
support_path=yes

[telecom-kz-auth]
type=auth
auth_type=userpass
username=86205414
password=CHANGE_ME_TELECOM_KZ_PASSWORD

[telecom-kz]
type=endpoint
transport=transport-udp
context=from-telecom
disallow=all
allow=alaw,ulaw
aors=telecom-kz-aor
outbound_auth=telecom-kz-auth
from_user=86205414
from_domain=sip.telecom.kz
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
trust_id_inbound=yes
send_rpid=yes
identify_by=username
language=ru

[telecom-kz-registration]
type=registration
transport=transport-udp
outbound_auth=telecom-kz-auth
server_uri=sip:sip.telecom.kz:5060
client_uri=sip:86205414@sip.telecom.kz
contact_user=86205414
retry_interval=60
forbidden_retry_interval=300
expiration=300
line=yes
endpoint=telecom-kz
support_path=yes
auth_rejection_permanent=no
