Announcement

Collapse
No announcement yet.

New SIP Plugin Beta

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    New SIP Plugin Beta

    Here is a first beta of the SIP plugin for HomeSeer 2.1.

    - It is time limited : 15th of April
    - It doesn't work with HomeSeer 1.7
    - It doesn't work with HomeSeer 2.0
    - It requires .Net 2.0 and HomeSeer 2.1

    1) Download the msi here: http://www.stipus.info/download/hs/SipPluginSetup2.msi

    2) Double-click the msi file, and Install the plugin to your HomeSeer 2 directory. It doesn't work if you choose another directory during install.

    3) Edit HomeSeer 2\Config\hspi_sip.ini

    PHP Code:
    [Settings]
    Debug=true
    DebugWait
    =0
    [Account]
    DisplayName=Your Name
    UserName
    =Your phone number
    AuthUserName
    =Your username
    AuthPassword
    =Your password 
    DomainRealm
    =sip.your-isp.com
    SipProxyServer
    =sip.your-isp.com
    SipRegistrarServer
    =sip.Your-isp.com 
    You must set these parameters correctly before starting the plugin

    4) Restart HomeSeer, and enable the plugin.

    5) Have a look at the .vbs files in the Scripts subdirectory.

    You can change anything in these scripts.

    First script called is sip_incoming.vbs
    It redirects to
    - sip_admin.vbs if an admin caller id is recognized
    - sip_unknown.vbs if the caller id is unknown

    sip_unknown.vbs asks to leave a message, or enter your admin code.
    Default admin code is 43210

    sip_message.vbs and sip_message_review.vbs allow you to record a message, and listen to the recorded message. There is no mailbox system yet.

    sip_admin.vbs is a choice menu
    - 1 for Home Control redirects to sip_home_control.vbs
    - 2 for Music redirects to sip_music.vbs

    home_control.vbs shows you how to interract with HomeSeer device. From your telephone you can get HomeSeer device status or turn ON turn OFF devices.

    sip_music.vbs just plays a sample .MP3. Please edit the path to a sample MP3 in the file, otherwise the communication will be terminated.

    I'm now leaving for 2 days in about 20 minutes... I hope it works as I won't be able to answer questions now.

    Have fun,

    stipus
    Last edited by stipus; April 4, 2006, 06:58 PM.
    --
    stipus

    #2
    And breathe ... !!

    Superb, i shall "plug it in" when i get home and keep you posted!

    D

    Comment


      #3
      Anyone manage to download the plugin ? I get stuck on 7% and thats it ?

      Cheers..Pete
      HS 2.2.0.11

      Comment


        #4
        OK, I managed to get it downloaded and installed. Unfortunately I cant get it to register on my local asterisk box.... I've setup to read:

        DomainRealm=192.168.11.199
        SipProxyServer=192.168.11.199
        SipRegistrarServer=192.168.11.199

        It appears to want to register as username@domainRealm

        1/04/2006 3:18:59 PM - SIP Debug - SIP Connector : Error registering profile 7080@192.168.11.199


        I've changed the DomainRealm to my dyndns domain and my asterisk box, wont register. I never see any debug activity on asterisk box...

        Any thoughts ?

        Pete
        HS 2.2.0.11

        Comment


          #5
          petez69

          I downloaded with no trouble and will start testing this evening.

          thomas

          Comment


            #6
            Registered to asterisk ok, but no audio

            HI,

            Installed ok, and registered to asterisk ok, edited incoming.vbs to macth my mainSIP exten for admin. It matches ok according to hslog debug, and answers immediately, triggers admin.vbs but no sound is heard.

            Last message on asterisk is trying to establish direct connection between the two extensions. tryied enabling all codecs. If I hang up the phone asterisk and sip plugin hangup connection. seems to be an RTP problem/setup perhaps. MAny other extensions working ok on asterisk.

            Anyone else got stipus plugin to register with asterisk AND hear some audio?

            cheers,

            Phil

            Comment


              #7
              RPC error after de-install/reinstall

              HI,

              Probably did this to myself and looking for a way to get back on track. After installing to the /program files/stipus directory and copying files back to HS2 tree, I was able to connect to asterisk but had no rtp sound.

              I used remove programs to remove the connector and there were 3 registry entries for the directpries in program files I removed also. SHould be clean (I think).

              Re-installing connector with /program files/homeseer 2 as the install directory I now get this message:

              2/04/2006 12:45:19 AM - Error - Initializing interface: SIP Connector->The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

              during start up of HS2.1 when SIP connector should initialize. Any Ideas what I have done here? a repair of SIP connector with MSI install does not fix it.

              Thanks,

              Phil

              Comment


                #8
                Mine's erroring out with the following message:
                <TABLE cellSpacing=2 cellPadding=0 width="100%" border=0><TBODY><TR><TD class=LOGDateTime1 noWrap align=left>4/1/2006 10:33:28 PM </TD><TD class=LOGType1 align=left colSpan=3>SIP Debug </TD><TD class=LOGEntry1 align=left colSpan=8>SIP Connector : Debug Mode activated. Waiting 0 secs...</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>4/1/2006 10:33:29 PM </TD><TD class=LOGType0 align=left colSpan=3>Error </TD><TD class=LOGEntry0 align=left colSpan=8>Initializing interface: SIP Connector->Retrieving the COM class factory for component with CLSID {C8109CE9-B59A-49CC-9396-D7D3FB18863A} failed due to the following error: 8007007e.</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>4/1/2006 10:33:29 PM </TD><TD class=LOGType1 align=left colSpan=3>Info </TD><TD class=LOGEntry1 align=left colSpan=8>Done initializing plug-in SIP Connector</TD></TR></TBODY></TABLE>

                HS 2.1.18 on Win2003 SP1.

                Thanks,

                -Mike

                Comment


                  #9
                  Followed setup exactly, entered correct SIP parameters for my * box and I'm getting a similar error (with nothing showing up in the * logs):


                  4/2/2006 12:48:55 AM - SIP Connector - SIP Connector V0.1.2.1 Copyright 2006 stipus@stipus.com
                  4/2/2006 12:48:55 AM - SIP Connector - SIP Connector expiration date set to 4/15/2006
                  4/2/2006 12:48:55 AM - Info - Initializing Plug-in: SIP Connector
                  4/2/2006 12:48:55 AM - SIP Debug - SIP Connector : Debug Mode activated. Waiting 0 secs...
                  4/2/2006 12:49:01 AM - Error - Initializing interface: SIP Connector->The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
                  4/2/2006 12:49:01 AM - Info - Done initializing plug-in SIP Connector

                  Comment


                    #10
                    Originally posted by karib
                    Followed setup exactly, entered correct SIP parameters for my * box and I'm getting a similar error (with nothing showing up in the * logs):


                    4/2/2006 12:48:55 AM - SIP Connector - SIP Connector V0.1.2.1 Copyright 2006 stipus@stipus.com
                    4/2/2006 12:48:55 AM - SIP Connector - SIP Connector expiration date set to 4/15/2006
                    4/2/2006 12:48:55 AM - Info - Initializing Plug-in: SIP Connector
                    4/2/2006 12:48:55 AM - SIP Debug - SIP Connector : Debug Mode activated. Waiting 0 secs...
                    4/2/2006 12:49:01 AM - Error - Initializing interface: SIP Connector->The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
                    4/2/2006 12:49:01 AM - Info - Done initializing plug-in SIP Connector
                    Unfortunatly, I am getting this error too. Both with * and with a different SIP proxy that worked with the test application.

                    Alan

                    Comment


                      #11
                      Originally posted by karib
                      Followed setup exactly, entered correct SIP parameters for my * box and I'm getting a similar error (with nothing showing up in the * logs):


                      4/2/2006 12:48:55 AM - SIP Connector - SIP Connector V0.1.2.1 Copyright 2006 stipus@stipus.com
                      4/2/2006 12:48:55 AM - SIP Connector - SIP Connector expiration date set to 4/15/2006
                      4/2/2006 12:48:55 AM - Info - Initializing Plug-in: SIP Connector
                      4/2/2006 12:48:55 AM - SIP Debug - SIP Connector : Debug Mode activated. Waiting 0 secs...
                      4/2/2006 12:49:01 AM - Error - Initializing interface: SIP Connector->The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
                      4/2/2006 12:49:01 AM - Info - Done initializing plug-in SIP Connector
                      Ditto for me too...

                      Plugin settings:

                      [Settings]
                      Debug=true
                      DebugWait=0

                      [Account]
                      DisplayName=HomeSeer
                      UserName=2200
                      AuthUserName=2200
                      AuthPassword=2200
                      DomainRealm=sip.192.168.191.4
                      SipProxyServer=sip.192.168.191.4
                      SipRegistrarServer=sip.192.168.191.4

                      A@H settings:

                      [2200]
                      username=2200
                      type=friend
                      secret=2200
                      record_out=Adhoc
                      record_in=Adhoc
                      qualify=no
                      port=5060
                      nat=never
                      mailbox=2200@device
                      host=dynamic
                      dtmfmode=rfc2833
                      context=from-internal
                      canreinvite=no
                      callerid=device <2200>

                      Darrell

                      Comment


                        #12
                        As no one reported any success, I assume something must be wrong with the installation script. I don't understand because I tested the MSI on a second PC, but I'm sure something must be wrong.

                        I'll have enough time tomorrow to make a new .MSI, and test it a little more.

                        Sorry for all this.

                        --
                        stipus

                        Comment


                          #13
                          Not a problem, this is why it's a beta

                          Comment


                            #14
                            On the plus side ...

                            I have installed and working reasonably well !!

                            I can dial in, and it recognises my CID if i have set it, or the admin code if i haven't.

                            It doesn't recognise the "*" or "#" keys unfortunately, which limits the operation somewhat .. but apart from that, there is only 1 other problem ...

                            I shall paste an "small" section from the log at the bottom of this post, but this happens EVERY half an hour !!

                            Still ... keep up the stirling work .. it will be worth it when the cash comes rolling in !!

                            P.S. Is there any way to add the VR functionality of the standard HS events, over the SIP dial-in ?

                            Dave.

                            That log as promised .....

                            04/2006 14:27:00 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:01 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:02 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:03 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:04 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:05 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:06 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:06 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:07 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:07 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:08 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:08 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:09 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:09 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:10 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:10 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:10 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:10 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:11 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:12 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:12 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:12 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:14 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:15 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:16 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:16 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:17 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:17 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:17 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:18 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:19 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:20 ~!~SIP Debug~!~SIP Connector : Error registering profile 1042124@sipgate.co.uk
                            03/04/2006 14:27:20 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:20 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:21 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:22 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:22 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:23 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered
                            03/04/2006 14:27:26 ~!~SIP Debug~!~SIP Connector : Profile 1042124@sipgate.co.uk registered

                            Comment


                              #15
                              I'm happy to see that it worked at least for one of you.


                              I have been trying to reproduce the problems you experienced through the day.

                              1) For all who got an error RPC_E_SERVERFAULT

                              Some DLLs are not correctly registered.

                              Open a command prompt and go to C:\Program Files\Common Files\WOSI

                              regsvr32 WOSI.NET.VoIP.dll
                              regsvr32 WOSIspAudio.dll
                              regsvr32 NCTAudioCompress2.dll
                              regsvr32 NCTAudioFile2.dll
                              regsvr32 NCTAudioInformation2.dll
                              regsvr32 waveexctrl.dll

                              Then try the plugin again.

                              2) For those who got no audio: Are you running HS2.1 as a service ? If so, you have to run the service on another account (different from the "Local System" account).

                              - Run: services.msc.
                              - Choose the HomeSeer2 service
                              - Select a new user account other than Local System. (I chose Administrator)
                              - Restart the service. It should work.

                              3) DTMF * and # should be recognized

                              4) The API for VR should work, but I had no time to test it yet.

                              hs.plugin( "SIP Connector" ).ClearSpeechRecognitionPhrases line
                              hs.plugin( "SIP Connector" ).AddSpeechRecognitionPhrase line, "phrase"

                              Then the SpeechRecognized event will be run in the current script.

                              Sub SpeechRecognized( param )
                              line = param( 0 )
                              phrase = param( 1 )

                              ...
                              End Sub

                              --
                              stipus

                              Comment

                              Working...
                              X