faisalkhan
(Faisal Khan)
November 9, 2023, 8:42pm
1
Hi Guys,
I write a custom code for some extension to set restriction on outbound calls.
[deny]
include => app-vmmain
exten => _XXX,1,Dial(SIP/${EXTEN})
exten => _XXXX,1,Dial(SIP/${EXTEN})
exten => _03X.,1,Goto(from-internal,${EXTEN},1)
exten => _1NXXNXXXXXX,1,Playback(invalid)
exten => _+1NXXNXXXXXX,1,Playback(invalid)
exten => _NXXNXXXXXX,1,Playback(invalid)
after that the extensions with this context stopped call recordings even if it’s enabled for them.
Suggestions and expert opinion required.
comtech
(Com Tech)
November 10, 2023, 2:10am
2
I would guess you are bypassing the normal dial plan context that contains the call recording rule trigger. What are you trying to do? What is your goal?
faisalkhan
(Faisal Khan)
November 10, 2023, 8:45pm
3
just wanted to limit the Gate Guards extensions to dial to XXX and XXXX and some local mobile dialings.
now the custom context applied extensions are not recording the calls.
Stewart1
(Stewart)
November 10, 2023, 8:51pm
4
Try:
[deny]
include => app-vmmain
exten => _XXX,1,Goto(from-internal,${EXTEN},1)
exten => _XXXX,1,Goto(from-internal,${EXTEN},1)
exten => _03X.,1,Goto(from-internal,${EXTEN},1)
exten => _X.,1,Playback(invalid)
exten => _X.,n,Hangup()
Modify the above to include emergency calling for the country the extensions are in.