Announcement

Collapse
No announcement yet.

I thought it would be simple ...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I thought it would be simple ...

    Hi Everyone,

    Just got a new gate installed and looking to control it via the house phone line.

    It should be easy but I am seeing strange results.

    All I need is to pickup the house line and (regardless of dial tone, I dont even want to check) dtmf *7 wait for 1 seconds and then dtmf a 9. Gate should open. Do it from any telephone in the house and it works every time. My Way2Call Lite and the gate controller are both tied into the house line of course.

    I tried.

    Sub Main()
    result=hsp.LINEDial(1,"*7",FALSE,FALSE)
    hs.WaitSecs 1
    hsp.LINESendTones 1,"9",40
    hs.WaitSecs 1
    hsp.LINEHangUp 1
    end sub

    And it does work.

    Sometimes.

    Sometimes not. Like below where it never does get to dial the 9, seems to be doing things out of order and getting confused with dial tone.

    10/19/2011 12:19:38 PM HSPhone Finished Resetting line: Home Line
    10/19/2011 12:19:36 PM HSPhone Muting rings disabled
    10/19/2011 12:19:36 PM HSPhone Enter WaitForCall, modem: 2
    10/19/2011 12:19:36 PM HSPhone Enter OpenLine, line: Home Line
    10/19/2011 12:19:36 PM HSPhone Calling hangup for line: Home Line
    10/19/2011 12:19:36 PM HSPhone Resetting line: Home Line
    10/19/2011 12:19:24 PM HSPhone Have dialtone, dialing...
    10/19/2011 12:19:13 PM HSPhone Waiting for dialtone...
    10/19/2011 12:19:13 PM Phone Line 1 Dialing number: *7
    10/19/2011 12:19:13 PM Event Running script in background: gatetest
    10/19/2011 12:19:13 PM Event Event Trigger "gatetest2"

    I dont know why it sometimes does work and other times not. It appears that when working the Way2Call is NOT getting a ring tone for some reason and the script then does dial the 9.

    Anyone have some thoughts I can work on?

    Thanks as always.

    Mark

    #2
    Is the 7 required for an outside line or something?
    -Rupp
    sigpic

    Comment


      #3
      the *7 gets the controllers attention, the 9 opens the gate.

      mark

      Comment


        #4
        Maybe try a waitsecs until a dial tone is detected.
        -Rupp
        sigpic

        Comment

        Working...
        X