@gedeon999 wrote:
Hello,
I would like to enable a dynamic feature in order to open the door when someone call from my SIP-Door Phone (That I haven’t bought yet).
After some research, I succeeded to do like hereunder, and it works !
File: /etc/asterisk/features_applicationmap_custom.conf :
OpenDoor => *66,peer,Macro,OpenDoorFeatureFile: /etc/asterisk/extensions_custom.conf :
[macro-OpenDoorFeature]
exten => s,1,Set(result=${CURL(http://admin:password@192.168.1.151/preset.htm?RLY1=1)})
exten => s,n,MacroExitFile: /etc/asterisk/globals_custom.conf :
DYNAMIC_FEATURES = OpenDoorThe problem is that anyone calling me from outside is also able to open my door and that I is not so nice :-/
I would like that only my local phones (extension) are able to do thisI presume that somewhere in the dialplan, I should add the set(dynamic_features) like this :
[default]
exten => _XXX,1,Set(DYNAMICFEATURES=OpenDoor)The problem is I really don’t know where to do it without touching the automatic generated files of FreePBX.
Would you have an idea ?
Posts: 4
Participants: 3