Announcement

Collapse

Contacting HomeSeer This Week

HomeSeer is open and operational this week. All orders are being processed and shipped as usual. However, some staff are working from home. If you need to contact HomeSeer for support or customer service, please use our Email or Chat options. https://homeseer.com/contact-us/
See more
See less

hs.,GetVar(xAP_.....) how too??

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

  • hs.,GetVar(xAP_.....) how too??

    I am trying to get two variables out of an xAP message and call the values in a script. In xAP conduit Variables I set up see below:
    then it triggers an hs event that runs a script. I have it triggering the event just fine but when I call the two var items phone & name. I get nothing.

    here is a snipit of the top half of the script with hs.GetVar calls I am using. If any one see's what I am doing incorrectly please let me know. Thanks

    Sub Main()
    dim i, line, adr_count, contact
    dim callname, callnmbr, dhit, addbk
    dim objMsg, strTitle, strMsg, strMsgSent
    dim num, p, tmp, url
    dim pg, nml, posl
    dim nmf, caller
    dim ac, pos, pos2, st
    dim adnum, flag
    dim ct, tmr, num1, num2
    dim f, fso
    dim Toaddress, Fromaddress, subject, body
    dim j, j_num_announce, j_wait_secs
    ' get the caller directory name
    callname=hs.GetVar("xAP_name")
    ' get the phone number
    callnmbr=hs.GetVar("xAP_phone")
    Attached Files
    Last edited by HomeTech; January 29th, 2007, 10:03 AM.
    HS2 Environment
    Zotac 1.83 GHz Quadcore
    HomeSeer Way2Call
    Netiom-Xap board
    opnode 1-wire 1.2.7
    Plug-In's
    WeatherXML 1.0.0.32
    Pwr Link USB 1.0.0.13
    mcsTemp V6.2.0.14
    mcsXap V3.0.0.0/3.0.0.20
    IM Connector 4.87.2.5
    Sip Connector 2.56.2.4
    RFXCOM 15.0.0.22
    Odroid X2
    Asterisk 11.5.1
    FreePBX 2.11.0.42
    WebMin 1.720
    Xap Switchboard by Mi4

    There is no place Like 127.0.0.1

  • #2
    Here is the xap message that I am tring to get the variables out of
    phone & name

    xap-header
    {
    v=12
    hop=1
    uid=FFE80002
    class=CID.Meteor
    source=liming.axc.house:Kitchen.vitel
    }
    Incoming.CallWithCID
    {
    rnnumber=Available
    datetime=20070123140943
    tag=1169579383.26-1169579383.28
    type=Voice
    name=Vtell_Paul (PCS)
    phone=2602463
    <!-- / message --><!-- sig --><!-- / message --><!-- sig -->
    HS2 Environment
    Zotac 1.83 GHz Quadcore
    HomeSeer Way2Call
    Netiom-Xap board
    opnode 1-wire 1.2.7
    Plug-In's
    WeatherXML 1.0.0.32
    Pwr Link USB 1.0.0.13
    mcsTemp V6.2.0.14
    mcsXap V3.0.0.0/3.0.0.20
    IM Connector 4.87.2.5
    Sip Connector 2.56.2.4
    RFXCOM 15.0.0.22
    Odroid X2
    Asterisk 11.5.1
    FreePBX 2.11.0.42
    WebMin 1.720
    Xap Switchboard by Mi4

    There is no place Like 127.0.0.1

    Comment


    • #3
      xap Debug Log

      Here is the xAP debug log when a call comes into Asterisk PBX. I can see the variable being updated at least the phone one.

      In my prev post in Xap variables set up screen : Can I have two items that I want to include in my script? I have 2 items one is phone and the other is name. I am still not getting and thing with the hs.GetVar('xAP_phone") or ("xAP_name") and I tried ("xAP_vitel') it must be a syntax problem.
      if any one has a suggestion please post
      thanks

      Here is the xAP debug log

      1/29/2007 9:47:31 AM xAP Conduit Update xAP Variable xAP_vitel to 2602463042 response ()
      1/29/2007 9:47:31 AM xAP Conduit 3Update xAP Variable xAP_vitel -2602463042
      1/29/2007 9:47:31 AM xAP Conduit Finished Sequence Event\CID Search.evt
      1/29/2007 9:47:31 AM xAP Conduit Sent message Homeseer Command
      1/29/2007 9:47:31 AM xAP Conduit Building message Start
      1/29/2007 9:47:31 AM xAP Conduit Running Sequence Event\CID Search.evt
      1/29/2007 9:47:31 AM xAP Conduit Update xAP Variable xAP_vitel to 2602463042 response ()
      1/29/2007 9:47:31 AM xAP Conduit 2Update xAP Variable xAP_vitel
      1/29/2007 9:47:31 AM xAP Conduit 1Update xAP Variable xAP_vitel
      1/29/2007 9:47:31 AM xAP Conduit 1Update xAP Variable xAP_vitel
      1/29/2007 9:47:31 AM xAP Conduit 1Update xAP Variable xAP_vitel
      1/29/2007 9:47:31 AM xAP Conduit 1Update xAP Variable xAP_vitel
      1/29/2007 9:47:31 AM xAP Conduit 1Update xAP Variable xAP_vitel
      1/29/2007 9:47:31 AM xAP Conduit 1Update xAP Variable xAP_vitel
      1/29/2007 9:47:31 AM xAP Conduit NewCheck Starting
      1/29/2007 9:47:31 AM xAP Conduit liming.axc.house:kitchen.vitel-cid.meteor-incoming.callwithcid-phone-2602463042
      1/29/2007 9:47:31 AM xAP Conduit Incoming message Stage 4 - First message check
      1/29/2007 9:47:31 AM xAP Conduit liming.axc.house:kitchen.vitel-cid.meteor-incoming.callwithcid-name-:Paul (PCS)
      1/29/2007 9:47:31 AM xAP Conduit Incoming message Stage 4 - First message check
      1/29/2007 9:47:31 AM xAP Conduit liming.axc.house:kitchen.vitel-cid.meteor-incoming.callwithcid-type-Voice
      1/29/2007 9:47:31 AM xAP Conduit Incoming message Stage 4 - First message check
      1/29/2007 9:47:31 AM xAP Conduit liming.axc.house:kitchen.vitel-cid.meteor-incoming.callwithcid-tag-1170082050.346-1170082051.348
      1/29/2007 9:47:31 AM xAP Conduit Incoming message Stage 4 - First message check
      1/29/2007 9:47:31 AM xAP Conduit liming.axc.house:kitchen.vitel-cid.meteor-incoming.callwithcid-datetime-20070129094731
      1/29/2007 9:47:31 AM xAP Conduit Incoming message Stage 4 - First message check
      1/29/2007 9:47:31 AM xAP Conduit liming.axc.house:kitchen.vitel-cid.meteor-incoming.callwithcid-rnnumber-Available
      1/29/2007 9:47:31 AM xAP Conduit Incoming message Stage 4 - First message check
      1/29/2007 9:47:31 AM xAP Conduit liming.axc.house:kitchen.vitel-cid.meteor-incoming.callwithcid--
      1/29/2007 9:47:31 AM xAP Conduit Incoming message Stage 4 - First message check
      1/29/2007 9:47:31 AM xAP Conduit Incoming message Stage 3 - Post known hardware check
      1/29/2007 9:47:31 AM xAP Conduit xAP message liming.axc.house:Kitchen.vitel(CID.Meteor)
      HS2 Environment
      Zotac 1.83 GHz Quadcore
      HomeSeer Way2Call
      Netiom-Xap board
      opnode 1-wire 1.2.7
      Plug-In's
      WeatherXML 1.0.0.32
      Pwr Link USB 1.0.0.13
      mcsTemp V6.2.0.14
      mcsXap V3.0.0.0/3.0.0.20
      IM Connector 4.87.2.5
      Sip Connector 2.56.2.4
      RFXCOM 15.0.0.22
      Odroid X2
      Asterisk 11.5.1
      FreePBX 2.11.0.42
      WebMin 1.720
      Xap Switchboard by Mi4

      There is no place Like 127.0.0.1

      Comment


      • #4
        I'm hoping James (plugin author) will post a response here soon - I will try and have a look myself too but wont be able to for a few days....

        K

        Comment


        • #5
          I got one reply from the yahoo xAP group:

          hi,

          This is a problematic feature for HomeSeer. Under HS1 it worked fine,
          nice and reliable. Under HS2 it was a different story. It basically
          doesn't work, calls to update the global just fail. Well actually they
          sometimes fail, sometimes it works and others it just causes HS to
          disconnect the plugin. Now it is possible that the fault is now fixed in
          HomeSeer so i'll download the latest and give it another go.
          For now the easiest is to use the New hardware wizard to create HS
          devices based on the xAP message in question. That way you'll be able
          to access the xAP data from the Device's Status in your scripts.
          I'll report back on what happens with the newest HS2

          hth
          James

          one thing I did not tell James was I was using 2.1.173 so I am not sure were to go from here if its a HS problem or what. I do see that there is a newer HS2 beta just posted I may try that in about a week after I see if its worth tring.

          If any one else knows why GetVar is not working for me please post.
          Thanks
          HS2 Environment
          Zotac 1.83 GHz Quadcore
          HomeSeer Way2Call
          Netiom-Xap board
          opnode 1-wire 1.2.7
          Plug-In's
          WeatherXML 1.0.0.32
          Pwr Link USB 1.0.0.13
          mcsTemp V6.2.0.14
          mcsXap V3.0.0.0/3.0.0.20
          IM Connector 4.87.2.5
          Sip Connector 2.56.2.4
          RFXCOM 15.0.0.22
          Odroid X2
          Asterisk 11.5.1
          FreePBX 2.11.0.42
          WebMin 1.720
          Xap Switchboard by Mi4

          There is no place Like 127.0.0.1

          Comment

          Working...
          X