Ankündigung

Einklappen
Keine Ankündigung bisher.

Kommunikation, IP/EIB Telegramme, Senden

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    HS/FS Kommunikation, IP/EIB Telegramme, Senden

    Hi,

    I've this little PHP script, which rings a Cisco IPPhone.
    PHP-Code:
    <?php
    Header
    ("Content-type: text/xml");
    Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    Header("Cache-Control: no-cache");
    error_reporting(E_ALL);
    $menu  "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n";
    $menu .= "<CiscoIPPhoneExecute>\n";
    $menu .= "<ExecuteItem URL=\"Dial:1002\"/>\n";
    $menu .= "</CiscoIPPhoneExecute>\n";
    echo 
    $menu;
    ?>
    It works, fine, no problem.

    Now I want the HS to send the XML message to the phone, to make it ring.
    In Kommunikation, IP/EIB Telegramme, I've setup a communication as below. The question is, do I need to just send the XML stuff as in
    Code:
    <?xml version="1.0" encoding="UTF-8">
    <CiscoIPPhoneExecute>
    ExecuteItem URL="Dial:1002"
    </CiscoIPPhoneExecute>
    or do I need to send the html headers as well ? as seen in WireShark ?
    Should I select to send CR/LF as well ?

    So far, I tried several combinations, no luck

    Thank you for any hint.
    Angehängte Dateien

    #2
    I've appended a WireShark capture.
    I wonder if the blue background text needs to be send as well ?
    The "real" message is just after it.
    Angehängte Dateien

    Kommentar


      #3
      I made a mistake in previous tests, I guess I need to specify the destination port as 52810 (80 is the source).

      I still try to mimic the data seen in the WireShark trace, no luck so far. In WireShark, I see a red line (malformed packet), response from the phone to the HS packet.

      I think I miss something fundamental.

      Any sharp eye out there ? Or a sample code from a similar setup ?
      Angehängte Dateien

      Kommentar


        #4
        Hi,

        It's only now that I realize that my previous tests are doomed to fail. I was trying to mimic an existing IP packet, as seen in WireShark, but this packet was part of a sequence, hence several control fiels are wrong/inappropriate.

        I've to build the TCP telegramme from scratch.
        Any one having a pointer to a good doc to do that ? So far I've found many docs showing the TCP layout, but with no/very little explanation about how to build the fields, I guess I also need a checksum calculator utility.

        Thanks

        Kommentar


          #5
          Hi Raymond,

          i think you are going in the wrong direction.

          How did you capture that packet ??

          Isn't that the Response from a HTTP-Request, that was originatet from the phone.

          You can't rebuild that, that whould be the same as if this Forum Server now could popup a Browser-Window on your PC cause it did once when you had push on the smiliey List.

          Maybe i just misunderstood you, but initial post with the php-script was working when you open that php-script from your Server with your Cisco-Phone, right.
          Nils

          aktuelle Bausteine:
          BusAufsicht - ServiceCheck - Pushover - HS-Insight

          Kommentar


            #6
            Hi Nils,
            Zitat von NilsS Beitrag anzeigen
            i think you are going in the wrong direction
            ôôh, that would be the very first time

            Zitat von NilsS Beitrag anzeigen
            How did you capture that packet ?
            I've had some misery, until I remembered... the switch affair
            So, I've put the sniffingPC, eibd PC and the phone on a hub, muuuch better for sniffing

            Zitat von NilsS Beitrag anzeigen
            Isn't that the Response from a HTTP-Request, that was originatet from the phone.
            Mmmhyes, in some way, yes.
            It all starts by writing an XML file, download it in the Phone, it becomes a phone menu item.
            When I hit that menu item, which is in fact a call to a php routine on the eibd PC, that php routine get executed and in turn sends an XML file to the phone which rings.
            I want to duplicate that behaviour.
            When looking on the WireShark trace, I see the TCP communication and the embedded Phone directive.
            On the other hand, the HS offers the feature to send TCP data (I've done this with the IRTrans). So the dummy thought it would match, no ?

            Zitat von NilsS Beitrag anzeigen
            You can't rebuild that


            Zitat von NilsS Beitrag anzeigen
            Maybe i just misunderstood you, but initial post with the php-script was working when you open that php-script from your Server with your Cisco-Phone, right.
            Yes SIR !
            The problem with you is that you don't misunderstand anything

            Any hint to put the dummy on track (and keep him quite for a while) otherwise, he will bother you until the end of time

            Kommentar


              #7
              Hi,

              I'm still fighting with my Cisco IPPhone
              So far, I've managed to get a little PHP script which rings the IPPhone.

              The question is: how can I trigger a PHP script residing on a Linux system ?

              I thought the HS "IP/EIB Telegramme, Senden" would do the trick, but I'm unsure about how to do it. The script is residing on a web server \Cisco\IPPhoneExecute.php but this syntax is not allowed

              Someone has a practical example or a hint, please ?

              Thank you

              Kommentar


                #8
                Zitat von Warichet Beitrag anzeigen
                Someone has a practical example or a hint, please ?
                Nobody ?
                Maybe I'm asking too much.
                I'd be happy with a pointer to some reading to get me started.
                There must be some sort of low level API (maybe RPC ?) which I could send with the HS Telegramme senden.

                Thank you.

                Kommentar


                  #9
                  Hi,

                  No one can help me ? even get started ? about how to execute a program on a remote Linux system ?

                  Kommentar


                    #10
                    I try it once again


                    It all starts by writing an XML file, download it in the Phone, it becomes a phone menu item.
                    That is only the configuration for the Phone which tells the button do open an http request (just like a Browser) to your php script

                    When I hit that menu item, which is in fact a call to a php routine on the eibd PC,
                    REQUEST:
                    open: TCP Port 80 on the Webserver
                    send: GET /myphp.php?something

                    that php routine get executed
                    ## Session to Port 80 still open
                    httpserver executes the PHP-Script

                    and in turn sends an XML
                    WRONG. it don't send it, its just the response of your REQUEST through your still open connection to Port 80

                    file to the phone which rings.
                    The answer of the PHP Script ist an XML that contains values that let the Cisco Phone ring.





                    you just can't send it the other way.

                    That would be the same if this Webserver here at KNX-User-Forum would open a connection to your Browser and open it when you don't have your Browser open by yourself and don't pointed it to this Server.
                    Nils

                    aktuelle Bausteine:
                    BusAufsicht - ServiceCheck - Pushover - HS-Insight

                    Kommentar


                      #11
                      Zitat von NilsS Beitrag anzeigen
                      I try it once again
                      Thank you for your patience with a dummy
                      In the mean time, I've a PHP script that does what I expect: ring the phone.

                      The last point is: call that php script (residing on a Linux system) from the HS. My last post was begging for some help/hints about how to do that. I've read a bit about the subject, but there are so many features on the Linux side, that I don't know where/how to start (I'm a Linux beginner )

                      Can you please point me in the right direction ?

                      Kommentar


                        #12
                        Hi,


                        I wonder if someone already managed to send a SIP telegramme with the HS ?
                        I'm able to do it via standalone tools (Sipsak) but not via the HS.
                        When looking at the trace with WireShark, indeed the package is ilformed (missing parts).
                        Attached is the setup in the HS.

                        Thank you for any hint.
                        Angehängte Dateien

                        Kommentar


                          #13
                          Zitat von Warichet Beitrag anzeigen
                          I wonder if someone already managed to send a SIP telegramme with the HS ?
                          My tentative conclusion is: the HS is unable to do it ! probably due to the fact that it isn't possible to send the required headers, hence the body is not recognized.

                          When looking at the trace with WireShark, indeed the package is ilformed and there is nothing I can do about it. Maybe put it on my wish list to Santa ? but given my previous experience, there is little/no chance to get anything from de man in red

                          I'll stop this monologue, talking to myself is the sign of a sick mind

                          Kommentar

                          Lädt...
                          X