Current PBX Version:126.96.36.199
Current System Version:12.7.6-1910-1.sng7
I have a Viking RC-3 ( 3 relay module) connected to an analog extension port on a Vega 3000.
I can dial the extension type a pin code to access then type a 2 digit code to activate a relay (programmed to engage for 5 seconds)
How do I program this sequence and add it to a BLF button on a users phone?
I want the user to be able to hit a single button to activate the door release relay for 5 seconds.
I saw this post about delayed DTMF code for door relay. Delayed DTMF code for Door Relay
How do I do this in the GUI? Can this be done on the phone line keys using a Speed Dial button and DTMF selection?
I don’t think there’s a way to do it from the GUI. I thought the best option for that would be in the Extensions module, creating an extension type of “custom” and specifying the dial string, but the D option doesn’t get passed through. The Asterisk Dial Options field there is only used for outbound dialing from the extension.
But this can easily be done with one or two lines.
Edit the file /etc/asterisk/extensions_custom.conf
If you see a heading of [from-internal-custom] simply put the following line directly under that heading. If you don’t see it, create the heading.
exten => 1234,1,Dial(PJSIP/5678,,D(987w65))
in the string above, you substitute:
where it says PJSIP, leave it as PJSIP if you are using that for your extensions, or change it to SIP if you are using chan_sip
where it says 5678, this is the extension of your analog extension port on the Vega 3000
where it says 987w65, replace this with the tone sequence. “w” means wait half a second.
Save the file and do a reload (fwconsole r if you are in ssh/console).
Now you can dial 1234 to trigger the Viking and send the DTMF codes.
Program a speed dial on your phone for 1234 and you have the one-button door opener.
I entered the following in the extensions_custom.conf file to dial extension 114 wait for answer dial 123456 pass code, wait then activate relay number 1. The relay module times out the relay after 5 seconds. I am using PJSIP for normal extensions, however extension 114 is an analog extension on the Vega 3000.
exten => 114,1,Dial(Local/[email protected],D(www123456ww12))
How do I assign this to a button labeled Lobby Door on the s505
How do I get FreePBX to hang up immediately after activating the relay. The module default hangs up after 20 seconds.
I changed the custom extension to 800 still actually calling 114.
exten => 800,1,Dial(Local/[email protected],D(wwwww123456ww12))
This works with the long hang up delay.
Adding the S(1) does not work. It answers but does not activate the relay then hangs up. [from-internal-custom]
exten => 800,1,Dial(Local/[email protected],D(wwwww123456ww12)S(1))
I tried different values for S but the relay did not activate under 7 and 7 and up did not hang up until the relay box disconnected. Tried adding the hangup command after like dnardf posted but the system hung up before the relay activated.
I finally used a hangup command in the relay unit.
this activates relay 1 for 5 seconds and hangs up quickly.
exten => 850,1,Dial(Local/[email protected],D(www*ww123456ww12w01))
I will change the access code and programming codes before putting into production.
Thanks for your help