Quantcast
Channel: General Help - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 12604

Use of Dynamic Features in Dialplan

$
0
0

@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,OpenDoorFeature

File: /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,MacroExit

File: /etc/asterisk/globals_custom.conf :
DYNAMIC_FEATURES = OpenDoor

The 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 this

I 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

Read full topic


Viewing all articles
Browse latest Browse all 12604

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>