fix(asterisk): update telecom route and recording fallback

This commit is contained in:
Yera All
2026-04-17 12:16:51 +05:00
parent 4adaf192fb
commit feb0ce01e2
5 changed files with 140 additions and 1 deletions
+6
View File
@@ -70,5 +70,11 @@ Default lab SIP accounts from `pjsip.conf`:
- `2001` (operator A)
- `2002` (operator B)
Telecom.kz note:
- `87273901485 / 86205414@sip.telecom.kz` should be configured as a normal SIP account with `type=registration`.
- Do not treat this number as an IP trunk unless Telecom provisions a separate IP-trunk product for it.
- Inbound calls from this account are expected in `from-telecom` and should route to `7100`.
- Keep the real Telecom password out of git and set it on the target host before reload.
Track 14 note:
- `2001` and `2002` are allowed to keep multiple contacts so browser registration can coexist with `MicroSIP/Zoiper` in QA.
+13
View File
@@ -117,3 +117,16 @@ exten => h,1,StopMixMonitor()
[mvpcc-operators]
exten => _X.,1,Dial(PJSIP/${EXTEN},30)
same => n,Hangup()
[from-telecom]
; Incoming calls from Telecom.kz SIP account 86205414 / DID 87273901485.
; Route them directly to the AI-first entrypoint 7100.
exten => 86205414,1,NoOp(Incoming from telecom.kz DID 87273901485 -> AI)
same => n,Set(CALLERID(dnid)=87273901485)
same => n,Goto(from-softphones,7100,1)
exten => 87273901485,1,NoOp(Incoming from telecom.kz DID 87273901485 -> AI)
same => n,Goto(from-softphones,7100,1)
exten => _X.,1,NoOp(Incoming from telecom.kz, DID=${EXTEN})
same => n,Goto(from-softphones,7100,1)
+52
View File
@@ -82,3 +82,55 @@ 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