Add asterisk and FS agents session restoration support

This commit is contained in:
arberkatellari
2024-06-11 17:14:33 +02:00
committed by Dan Christian Bogos
parent a0f94c6804
commit b061770e68
9 changed files with 343 additions and 41 deletions

View File

@@ -1,6 +1,7 @@
[general]
enabled = yes
allowed_origins = http://cgrates.org
channelvars = cgr_reqtype,cgr_flags,CDR(answer),CDR(billsec)
[cgrates]
type = user

View File

@@ -5,7 +5,7 @@
same => n,Set(LIMIT_PLAYAUDIO_CALLER=YES)
same => n,Set(LIMIT_PLAYAUDIO_CALLEE=YES)
same => n,DumpChan()
same => n,Stasis(cgrates_auth,cgr_reqtype=*prepaid,cgr_routes=supplier1,cgr_flags=*accounts+*attributes+*resources+*stats+*routes+*thresholds)
same => n,Stasis(cgrates_auth,cgr_reqtype=*prepaid,cgr_flags=*accounts+*attributes+*resources+*stats+*routes+*thresholds)
same => n,Set(CHANNEL(hangup_handler_push)=hangUp,hUP,1)
same => n,Dial(PJSIP/${EXTEN},30,L(${CGRMaxSessionTime}:10000)))
same => n,Hangup()