ftocc

Opening the front door

esokolov
Posts: 6
Member Since:
2006-10-05

Hi gurus,

I'm living in apartment building with centralized door buzzer. When someone taps the apartment code, it dials pstn number, so I have to pick up telephone and press 9.

My idea is to automate the entrance for my friends using TrixBox CE 2.6.1, so everybody I know has his own pincode, say, DDMMYY day of birth. Here's the scenario.

1. Someone at front door taps my buzzcode.
2. Trixbox receives the call. There's a special inbound route bound to front door CID, so the call goes to a special application which:
3. Says "Please dial pincode or wait", then waits for pincode and looks for a match in pincode list.
4. On successful pincode entry dials back 9 and hangs up
5. On timeout or wrong pincode it routes the call to internal extension so I pick up the phone and do it manually.

I found no way to make it with internal functions in ThrixBox, maybe I was looking in wrong places. If possible, could someone explain how to do it, otherwise guide me to a proper programming manual.

Cheers



SkykingOH
Posts: 3560
Member Since:
2007-12-17
There are many door striker

There are many door striker interfaces. You will have to look through old forum posts, I don't have any handy.

The PIN code acceptance will have to be done with scripts. It is not difficult depending on your experience with the underlying technologies (PHP scripting mostly).

You can either download it for free or pick up a copy of "Asterisk, The Future of Technology" it is the de facto reference for Asterisk programming.

Will the landlord allow you to wire into the door striker mechanism? You will also have to have your own door call box downstairs unless you want to convert the whole building to the new system.

--

Scott

aka "Skyking"



bubbapcguy
Posts: 3344
Member Since:
2006-06-02
callback

You could setup a callback which could do this
maybe even use DISA and misc app.



esokolov
Posts: 6
Member Since:
2006-10-05
No hardware upgrade needed

The system works like this - the door buzzer makes a call to my PSTN number. I pick the phone, speak to the person at front door, then press 9, and responding to that tone buzzer unlocks the door and hangs up.

So it's pure call logic - let Trixbox do the job. it can interpret DTMF I guess, it can send out DTMF as well (I hope)... The only thing is to learn programming, I'm Cisco guy, not PHP coder...

Thanks anyway!



esokolov
Posts: 6
Member Since:
2006-10-05
Callback

bubbapcguy:

No, can't do this. I cannot call the buzzer - it won't respond. It makes only outbound calls according to pre-programmed lists, where every buzzcode is assosiated to pstn destination.

I have associated mine with my vBuzzer VoIP account, that is connected to my home Trixbox...



SkykingOH
Posts: 3560
Member Since:
2007-12-17
Ok - no problem I had

Ok - no problem I had visions of you interfacing to the wiring in some clandestine fashion. Had some humor value anyway.

Ok, so this is very doable. You can setup a custom destination in FreePBX and the use the Inbound Route to send that called ID to a custom application.

Asterisk application are much easier than PHP stuff.

Pick up or download the free copy of "Asterisk, the future of telephony" it's an O'Reilly book. Start looking at the dial() command, you should be able to get it to take the digits, outpulse the DTMF and then play a custom message "Access Granted"

I am also a Cisco guy and I am having fun learning Asterisk extension programming.

--

Scott

aka "Skyking"



borispr
Posts: 57
Member Since:
2006-08-30
Something like this

put this into extensions_custom.conf
[frontdoor-ivr]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Background(please-enter-pin) ; you should create a wav file with this name
exten => 112233,1,Goto(validpin,1)
exten => 112244,1,Goto(validpin,1)
exten => 112255,1,Goto(validpin,1)
exten => t,1,GoTo(from-local,200,1)
exten => i,1,GoTo(from-local,200,1)
exten => validpin,1,SendDTMF(9)
exten => validpin,n,Wait(5)
exten => validpin,n,Hangup

112233, 112244, 112255 - valid pins
200 - the number of your extension which will ring if timeout or invalid pin

Go to FreePBX -> Tools -> Custom destinations and create a destination with string
frontdoor-ivr,s,1

Use this destination in inbound route



esokolov
Posts: 6
Member Since:
2006-10-05
Thank you!

SkykingOH, borispr - thank you for advice and directions! Will work on it during next weekend...



cbrickner
Posts: 37
Member Since:
2008-07-18
Do you know for sure that

Do you know for sure that your apartment call box actually let's you use the keypad to generate DTMF? Sometimes after the call is placed through, the keypad will do nothing further until the call is hungup. Or maybe perhaps the only key on the keypad that works is maybe opton * to hangup the call on the caller side.

Usually keypad itself properly isn't even generating any DTMF tones itself. Press 401 simply then picks up the dialtone and dials the phone number already programmed in the system.

I would test it out and call your extension and press some keys and see if you hear any touchtones.

--

trixbox support

trixbox.org/support



esokolov
Posts: 6
Member Since:
2006-10-05
Do you know for sure that

cbrickner:

It's a damn good point, I was under assumption that while the voice session us up it works as full-function speakerphone with DTMF. Have to try. If it doesnt, I'm screwed.



SkykingOH
Posts: 3560
Member Since:
2007-12-17
You could be uber cool and

You could be uber cool and install Lumenvox speech recognition on your system. Then they could 'speak' the password.

Now there is a weekend project!

--

Scott

aka "Skyking"



cbrickner
Posts: 37
Member Since:
2008-07-18
You could install that. But

You could install that. But then again, those types of speakerphones aren't the best call quality haha. Try forwarding your trixbox box to a Tell Me like service and seeif voice recongnition actually works or if you keep getting "I'm having trouble understanding you"

--

trixbox support

trixbox.org/support



rrichiez
Posts: 296
Member Since:
2006-12-07
Did this ever work?

did this ever work if so how did you get the pins to interact with a database?

can you help me accomplish the same thing?

rrichiez



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.