xAPTel and xAPSwitcboard

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jolly1
    Automated Home Jr Member
    • Feb 2011
    • 23

    xAPTel and xAPSwitcboard

    Hi,

    Tried xAPautomation with the following query, no replies hopefully someone here can help.
    Only just discovered xAP, I think xAPtel is broadcasting messages but not recieving them from xAPswitchboard.
    xAPTel version is beta3 and switchboard is 1.2 I think. Have tried to locate newer version.

    Have installed xAPTel and xAPswitchboard have Pegasus unit installed.

    Incoming call everything works fine calls are logged, manually dialled outgoing
    calls show up in the log.

    When I click the telephone to dial a number get the screen

    Dial number 1234-456789

    with a button below dial using

    UKUSA.Tel.voiceall:cawdor

    I named the line cawdor

    when I press this get the screen

    Dialing Number


    0xxx0 6xxx44


    Pick up your telephone handset

    I pick the phone go off hook

    nothing happens xAPtel does not show any messages until I take the phone of the
    hook. Here are the messages from xFxviewer

    xap-header
    {
    v=12
    hop=1
    uid=FF233201
    class=CTI.event
    source=UKUSA.Tel.voiceall:cawdor
    }
    Line
    {
    Network=PSTN
    Dialler=PSTN
    Country=44
    LineState=Outgoing
    }

    xap-header
    {
    v=12
    hop=1
    uid=FF233201
    class=CID.Meteor
    source=UKUSA.Tel.voiceall:cawdor
    }
    Outgoing.CallInitiated
    {
    Network=
    DateTime=20121218005344
    Type=
    Tag=0
    }

    xap-header
    {
    v=12
    hop=1
    uid=FF233201
    class=CID.Meteor
    source=UKUSA.Tel.voiceall:cawdor
    }
    Outgoing.CallComplete
    {
    DateTime=20121218005355
    Duration=00:00:10
    Phone=
    Tag=0
    }

    xap-header
    {
    v=12
    hop=1
    uid=FF233201
    class=CID.Meteor
    source=UKUSA.Tel.voiceall:cawdor
    }
    Outgoing.CallTerminated
    {
    DateTime=20121218005355
    Duration=00:00:10
    }

    xap-header
    {
    v=12
    hop=1
    uid=FF233201
    class=CTI.event
    source=UKUSA.Tel.voiceall:cawdor
    }
    Line
    {
    Network=PSTN
    Dialler=PSTN
    Country=44
    LineState=Free
    }

    I am assuming the part where it shows Phone=

    no number shows.

    I have been expirementing getting Girder 5 to and xAPTel
    can pick up the info broadcast.
    Hope to eventually have GIRDER to carry out action via the phone.

    In the settings under lines tried setting xAP source as

    UKUSA.Tel.voiceall:cawdor ie xAPtel
    also tried
    mi4.switchboard.CINEMA-PC ie xAPswitchboard
    also no entries

    Any help greatly appreciated

    Oh one other thing in girder message
    Ring always =0

    Hope somone can help
  • Kevin
    Moderator
    • Jan 2004
    • 558

    #2
    It's been a long long time since I used xAPTel but I'll take a look at this although it's not something I'm likely to be able do before Xmas and maybe not even before New year as I am away a lot over that time.. I also don't have a Pegasus any more to test with.

    Can I assume that xAP switchboard and xAPTel are both running on the same PC... and that you have installed a xAP hub on that PC and it was started and running before both xAPTel and xAP Switchboard were launched ?

    Kevin


    Originally posted by jolly1 View Post
    Hi,

    Tried xAPautomation with the following query, no replies hopefully someone here can help.
    Only just discovered xAP, I think xAPtel is broadcasting messages but not recieving them from xAPswitchboard.
    xAPTel version is beta3 and switchboard is 1.2 I think. Have tried to locate newer version.

    Have installed xAPTel and xAPswitchboard have Pegasus unit installed.

    Incoming call everything works fine calls are logged, manually dialled outgoing
    calls show up in the log.

    When I click the telephone to dial a number get the screen

    Dial number 1234-456789

    with a button below dial using

    UKUSA.Tel.voiceall:cawdor

    I named the line cawdor

    when I press this get the screen

    Dialing Number


    0xxx0 6xxx44


    Pick up your telephone handset

    I pick the phone go off hook

    nothing happens xAPtel does not show any messages until I take the phone of the
    hook. Here are the messages from xFxviewer

    xap-header
    {
    v=12
    hop=1
    uid=FF233201
    class=CTI.event
    source=UKUSA.Tel.voiceall:cawdor
    }
    Line
    {
    Network=PSTN
    Dialler=PSTN
    Country=44
    LineState=Outgoing
    }

    xap-header
    {
    v=12
    hop=1
    uid=FF233201
    class=CID.Meteor
    source=UKUSA.Tel.voiceall:cawdor
    }
    Outgoing.CallInitiated
    {
    Network=
    DateTime=20121218005344
    Type=
    Tag=0
    }

    xap-header
    {
    v=12
    hop=1
    uid=FF233201
    class=CID.Meteor
    source=UKUSA.Tel.voiceall:cawdor
    }
    Outgoing.CallComplete
    {
    DateTime=20121218005355
    Duration=00:00:10
    Phone=
    Tag=0
    }

    xap-header
    {
    v=12
    hop=1
    uid=FF233201
    class=CID.Meteor
    source=UKUSA.Tel.voiceall:cawdor
    }
    Outgoing.CallTerminated
    {
    DateTime=20121218005355
    Duration=00:00:10
    }

    xap-header
    {
    v=12
    hop=1
    uid=FF233201
    class=CTI.event
    source=UKUSA.Tel.voiceall:cawdor
    }
    Line
    {
    Network=PSTN
    Dialler=PSTN
    Country=44
    LineState=Free
    }

    I am assuming the part where it shows Phone=

    no number shows.

    I have been expirementing getting Girder 5 to and xAPTel
    can pick up the info broadcast.
    Hope to eventually have GIRDER to carry out action via the phone.

    In the settings under lines tried setting xAP source as

    UKUSA.Tel.voiceall:cawdor ie xAPtel
    also tried
    mi4.switchboard.CINEMA-PC ie xAPswitchboard
    also no entries

    Any help greatly appreciated

    Oh one other thing in girder message
    Ring always =0

    Hope somone can help

    Comment

    • jolly1
      Automated Home Jr Member
      • Feb 2011
      • 23

      #3
      Hi Kevin
      Both on Same PC running windows 7 64 bit. Hub is xFX

      Thanks for taking a look

      Comment

      • Kevin
        Moderator
        • Jan 2004
        • 558

        #4
        Originally posted by jolly1 View Post
        I have been expirementing getting Girder 5 to and xAPTel
        can pick up the info broadcast.
        Hope to eventually have GIRDER to carry out action via the phone.
        I'm a little unsure of your intent here - are you saying you want to get Girder to intercept the dial requests from Switchboard and action them (rather than xAPTel) ? So Girder has it's own modem/dialler ? Also you say that xAPTel can pick up the info broadcast from Girder... how do you know that .. as that would mean that xAPTel is not deaf to xAP traffic ?

        Can you paste the message immediately before your sequence where Switchboard is sending the dial request ... and also one earlier one from xAPTel where it is advertising the lines that it has available to dial out on... I can't just at the moment remember the class of that message.

        Also can you confirm that the Pegasus does dial correctly when you action that from a serial terminal program, the 'Hayes' command you used and that it was required to take the phone offhook manually for the call to be placed ... rather than the Pegasus hardware being able to do this itself...

        K

        Comment

        • jolly1
          Automated Home Jr Member
          • Feb 2011
          • 23

          #5
          Hi Kevin,
          Revisting the schema, final started to understand how the messages should be structured.

          first message sent

          xap-header
          {
          v=12
          hop=1
          uid=FF430000
          class=CTI.cmd
          source=promixis.girder.server
          }

          Dial
          {
          Phone=07590 xxx444
          Duration=20
          Tag=4
          }

          Then after a few seconds

          xap-header
          {
          v=12
          hop=1
          uid=FF430000
          class=CTI.cmd
          source=promixis.girder.server
          }

          Offhook
          {
          Network=PSTN
          Phone=07590 601444
          Tag=4
          }


          xPtel does not respond to these so after 20 or so seconds send


          xap-header
          {
          v=12
          hop=1
          uid=FF430000
          class=CTI.cmd
          source=promixis.girder.server
          }

          Onhook
          {
          Phone=07590 601444
          Tag=4
          }


          xaPtel does not respond, have I structered the message correctly

          Comment

          • Kevin
            Moderator
            • Jan 2004
            • 558

            #6
            I'm really snowed under just at the moment and haven't had time to look back at what was implemented way back then... but I expect that there needs to be a target= line in the header that addresses xAPTel and maybe even the line required.... That's why I asked to see the CTI.cmd messages as sent by xAP Switchboard and also the CTI.event or CTI.info which announces line availability.

            I'm sure you've seen the schema definition on the mi4 site .. but I'm confused as to what you're trying to do with Girder... it would be better to try and get this working with known good messages (that switchboard sends) first. Plus you really need to remove the extra LF after the header block as that also could cause xAPTel to ignore the message creating another unknown.

            K


            Comment

            • jolly1
              Automated Home Jr Member
              • Feb 2011
              • 23

              #7
              Kevin,
              Carried out search of c:\ for xAPAX.ocx and it cannot be found is this the problem?

              Comment

              • jolly1
                Automated Home Jr Member
                • Feb 2011
                • 23

                #8
                Kevin,
                Tried searching MI4.biz and cannot find the file. Tried http://patrick.lidstone.net/html/dev_tools.html when I click on xAP Active x, I get the following xapax_17.vwz ??

                Comment

                • Kevin
                  Moderator
                  • Jan 2004
                  • 558

                  #9
                  That isn't the issue.... if the OCX wasn't there then you would get a runtime error thrown... and also xAPTel wouldn't be able to send xAP messages, and Switchboard would fail too.

                  Just FYI the download link on mi4's site is


                  There are several OCX's for xAP use - the one used in Switchboard and the last released xAPTel is the mi4 one. Patricks OCX has a memory leak that was never fixed and so xAPTel was swapped to the mi4 one.

                  K

                  Comment

                  • jolly1
                    Automated Home Jr Member
                    • Feb 2011
                    • 23

                    #10
                    Kevin
                    thanks for that I take it the second set of commands couple of messages above are Ok.

                    I did manage to send commands from girder to xAPswitchboard as if xAPtel were sending them and worked Ok, so coms from girder xAP bus seems ok.

                    From girder I reated a basic lua script to the pegasus unit can get both incoming and outgoing call info.

                    I have really only started using xAP and so far well impressed by the simplicity and capabilities so thanks for that

                    Comment

                    • Kevin
                      Moderator
                      • Jan 2004
                      • 558

                      #11
                      I'm trying to do this from memory which is not a good approach but I haven't used xAPTel in a long while. If you could address the questions I asked it would help refresh my understanding of the schema interactions. Otherwise after the New Year I'll get xAPTel installed and give it a try myself... but I don't have a Pegasus (only a Meteor).

                      K

                      Comment

                      • jolly1
                        Automated Home Jr Member
                        • Feb 2011
                        • 23

                        #12
                        Kevin,
                        Here are answers to the questions.

                        first message xAPTel broadcasts after start up

                        xap-header
                        {
                        v=12
                        hop=1
                        uid=FF233201
                        class=CTI.info
                        source=UKUSA.Tel.voiceall:cawdor
                        }
                        Line
                        {
                        Network=PSTN
                        Dialler=PSTN
                        Country=44
                        LineState=
                        }

                        when I click on the dial out in switch board it does not send any messages until I click dial it the broadcasts

                        xap-header
                        {
                        v=12
                        hop=1
                        uid=FF111300
                        Class=CTI.cmd
                        Target=ukusa.tel.voiceall:cawdor
                        Source=mi4.switchboard.CINEMA-PC
                        }
                        Dial
                        {
                        Phone=01xxx xxx424
                        Duration=10
                        Tag=12
                        }

                        when starting switcchboard and xaptel for the first time if I click dial in switchboard get line busy indicated

                        have to take phone off hook and back on to clear switchboard busy message
                        sitchboard broadcasts
                        xap-header
                        {
                        v=12
                        hop=1
                        uid=FF233201
                        class=CTI.event
                        source=UKUSA.Tel.voiceall:cawdor
                        }
                        Line
                        {
                        Network=PSTN
                        Dialler=PSTN
                        Country=44
                        LineState=Free
                        }

                        when xaptel starts up first time broadcast
                        xap-header
                        {
                        v=12
                        hop=1
                        uid=FF233201
                        class=CTI.event
                        source=UKUSA.Tel.voiceall:cawdor
                        }
                        Line
                        {
                        Network=PSTN
                        Dialler=PSTN
                        Country=44
                        LineState=
                        }

                        If I take phone offhook and back on then broadcasts
                        xap-header
                        {
                        v=12
                        hop=1
                        uid=FF233201
                        class=CTI.event
                        source=UKUSA.Tel.voiceall:cawdor
                        }
                        Line
                        {
                        Network=PSTN
                        Dialler=PSTN
                        Country=44
                        LineState=Free
                        }




                        to make pegasus go off hook

                        ATH1:

                        to go on hook ATH0:

                        to dial a number (do not have to send offhook first)

                        ATDT:07590601444\r

                        to hangup
                        ATHH0:

                        tried starting applicaions in the order you suggested, made no difference.




                        John

                        Comment

                        • Kevin
                          Moderator
                          • Jan 2004
                          • 558

                          #13
                          Originally posted by jolly1 View Post
                          xap-header
                          {
                          v=12
                          hop=1
                          uid=FF233201
                          class=CTI.info
                          source=UKUSA.Tel.voiceall:cawdor
                          }
                          Line
                          {
                          Network=PSTN
                          Dialler=PSTN
                          Country=44
                          LineState=
                          }
                          This is the message where xAPTel announces it's outgoing lines - note the source address has :cawdor appended and the UID now ends in 01 for this line

                          xap-header
                          {
                          v=12
                          hop=1
                          uid=FF111300
                          Class=CTI.cmd
                          Target=ukusa.tel.voiceall:cawdor
                          Source=mi4.switchboard.CINEMA-PC
                          }
                          Dial
                          {
                          Phone=01xxx xxx424
                          Duration=10
                          Tag=12
                          }
                          This is the dial command from Switchboard to xAPTel - again note that there is a Target= parameter in the header that defines which xAPTel instance and the line to use. I don't think you were including this from Girder. This is the message that xAPTel may not be receiving - it's hard to tell if xAPTel is deaf or if the Pegasus is not responding to the dial command.

                          tried starting applicaions in the order you suggested, made no difference.
                          It does actually make a huge difference. It is essential that the first application that is started is the xAP hub (xFX hub) as only the very first launched application can hear xAP messages because it monopolises the xAP port 3639. Thats why we recommend running it as a service at startup. The hub is a special application that relays messages to later applications that start. The classic symptom of a hub not starting first is that only one application (first launched) can hear messages and all others , including xFX Viewer are deaf. As I think you're using both xFX Viewer and xFX hub - and I assume the latest versions then the hub does seem to be installed as latest xFX Viewer needs a working hub to display messages.

                          Do you have two serial ports on that PC.. or a way to monitor the serial data being sent out the port that the Pegasus is connected to ?

                          Do you by any chance have two network adaptors installed ?

                          K
                          Last edited by Kevin; 23 December 2012, 01:03 PM.

                          Comment

                          • jolly1
                            Automated Home Jr Member
                            • Feb 2011
                            • 23

                            #14
                            Kevin,
                            Girder starts on pc booting up, so this would be the firt xap application running. disabled xap in girder. Re booted with xAP disabled in Girder

                            Started xfx hub This is the version from 2008
                            Started xAp tel
                            Started xapSwitchboard.

                            In switchboard clicked to dial out which includes info to manually take phone off hook. No reponse from xAPtel.

                            Set Girder to broadcast message as if from xAPtel. switchboard responded Ok registered an incoming call

                            Only have one network adapter installed.

                            I have 8 serial ports. 4 on PCI card and 4 on an ehternet to serial. Pegasus is connected to com 8 on the serial card. I have no way of monitoring serial data.

                            xFXhub. I will search to find how to install as a service

                            Other xAP applications,Speedfan, Stock. Weather Girder picks up the traffic from these Application ok.
                            Also picks up info from xAPtel.
                            Just can't get xAPtel to respond to Switchboard or Girder to dial out.

                            John

                            Comment

                            • Kevin
                              Moderator
                              • Jan 2004
                              • 558

                              #15
                              As xAPTel is not dialling what we need to determine is if

                              1) xAPTel is not receiving xAP messages and hence not seeing the dial request... or

                              2) It is receiving the message and either ignoring it, or not sending the right command to dial via the Pegasus. I used to have a Pegasus and so I am fairly sure that it should work... particularly as it's a dropdown menu option. You do have the dialler box ticked don't you ?

                              Being able to monitor the traffic out of the serial port (by connecting the output of one serial port to the input of another) and seeing the results would be the best path forward I think. You should of course see the AT dial commands being sent.

                              There are also some serial snooper or serial port monitor utilities that also allow you to see this but just offhand I can't suggest which to use... maybe a Google search. These are software interceptors to show what traffic is going out a serial port, no cabling required. I previously used Free Serial Port Monitor but I don't think it supports Win7.

                              Once I get back from this Xmas/New Year break I'll see if I still have the source code for xAPTel anywhere and I can look further at this issue. ITMT perhaps try one of the above.

                              No firewall blocks on xAPTel are there ?

                              K
                              Last edited by Kevin; 23 December 2012, 07:05 PM.

                              Comment

                              Working...
                              X