I would like to implement dial plan for this scenario:
If anyone dials 911, it also needs to ring another extension and barge the call to that extension,and also need to record the call
I have tried something like this but i’m a noob at asterisk programming:
[dial1]
exten => 911,n,Set(SPYGROUP=test)
exten => 911,n,Set(CALLERID(all)=7752344565)
exten => 911,n,Dial(SIP/752344565@bandwidth-primary)
exten => 911,n,Hangup()
[dial2]
exten => _1001,1,ChanSpy(SIP/${EXTEN},b)
Is anyone willing to help me with this?