Files
call-center/deployment/asterisk/pjsip.conf
T
Yera AllandClaude Opus 4.6 436821737e feat(asterisk): add telecom.kz IP trunk for DID 87273901485
Wires the production number 87273901485 (SIP account 86205414@sip.telecom.kz)
into the voice stack as a no-registration IP trunk. Inbound INVITEs are
identified by source IP 92.46.61.21 and routed straight into the AI-first
entrypoint (7100), with the existing AudioSocket -> live operator fallback
preserved.

The Asterisk container was also never started by the source-based CI deploy
(only the registry-based path brought it up). Patch scripts/deploy_gitlab.sh
to also run docker-compose.asterisk.server.yml so the voice channel stays in
sync with the rest of the platform on every push to the default branch.

- deployment/asterisk/pjsip.conf: add telecom-kz aor/auth/endpoint/identify
- deployment/asterisk/entrypoint.sh: inject ASTERISK_TELECOM_KZ_PASSWORD
- deployment/asterisk/extensions.conf: new [from-telecom] context -> 7100
- .env.production.template: document ASTERISK_TELECOM_KZ_PASSWORD
- scripts/deploy_gitlab.sh: also bring up the asterisk compose file

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 01:19:06 +05:00

125 lines
2.2 KiB
Plaintext

[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 IP-trunk (no registration, identified by source IP).
; DID: 87273901485
; SIP account: 86205414@sip.telecom.kz
; Password is injected at container start from ASTERISK_TELECOM_KZ_PASSWORD
; (see deployment/asterisk/entrypoint.sh).
;=======================================================================
[telecom-kz-aor]
type=aor
contact=sip:sip.telecom.kz:5060
qualify_frequency=60
[telecom-kz-auth]
type=auth
auth_type=userpass
username=86205414
password=ChangeMe-TelecomKzPassword
[telecom-kz]
type=endpoint
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
language=ru
[telecom-kz-identify]
type=identify
endpoint=telecom-kz
match=92.46.61.21