I am running an Asterisk/FreePBX and need to limit call duration for different types of calls:
-call duration over PJSIP trunk to 3h
-internal call duration to 6h
-call duration of echo test to 60 seconds
i know that it can be done using config like
“exten => _1XX,1,NoOp(Limiting maximum call duration)
exten => _1XX,n,Set(TIMEOUT(absolute)=240)”
but i cannot get how to use it in all these situations. e.g echo test is configured in
extensions_additional.conf
[ext-featurecodes]
…
exten => *43,1,Goto(from-internal,*43,1)
…
[app-echo-test]
include => app-echo-test-custom
exten => *43,1,Set(CONNECTEDLINE(name-charset,i)=utf8)
exten => *43,n,Set(CONNECTEDLINE(name,i)=Echo Test)
exten => *43,n,Set(CONNECTEDLINE(num,i)=*43)
exten => *43,n,Answer
exten => *43,n,Macro(user-callerid,)
exten => *43,n,Wait(1)
exten => *43,n,Background(demo-echotest,app-echo-test-echo)
exten => *43,n,Goto(app-echo-test-echo,1,1)
;–== end of [app-echo-test] ==–;
[app-echo-test-echo]
include => app-echo-test-echo-custom
exten => _[0-9#],1,Echo()
exten => _[0-9#],n,Playback(demo-echodone)
exten => _[0-9#*],n,Hangup
How i may restrict call duration for echo test , please ?