|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#261
|
|||
|
|||
Yup, I can look at pulling in the pre-reqs for the perl into ActiveState perl for windows and compile it to an .exe and see if it will work with WinPcap (or something). Only an idea, but worth it. Just know that since you are sniffing traffic that you will need your network setup to be able to capture the packets. One way of doing it is using a hub between your vonage adapter and server that sniffs, or the other is to have two network cards in the server, bridged and one interface connected to the network and the other connected to the vonage adapter (I did the latter since I have switches instead of hubs).
|
#262
|
|||
|
|||
Here is my first try. I've commented out all the Unix stuff for now, focusing on getting the sniffing working instead. I don't have a way to test this since the only windows system close to my vonage adapter only has 1 network card in it, so I did the best I could blindly
If it does detect the SIP Invite, it will grab the data and print out the YAC formatted string and it will attempt to send the message to a YAC listener. I have not tested whether the TCP connect capability is still working (again, just want to get the sniffer working). So, download and install the latest WinPcap, then run the attached. Run it first as vonageSniff.exe -h to see the options that can be set, then run it once without the -h to have it tell you the list of network adapters in your system that it can use. Then you would run a command similar to: vonageSniff -d=\Device\NPF_{GUID} -ip=ip.of.your.yac.listener To test, you can leave out the -i (ignore) option that I added and it should detect an outgoing call (calling voicemail even) and display your own phone number as the caller. When I'm running this fulltime I use the ignore and place my own phone number there as 2125553322 and then it will ignore all outgoing calls. In anycase, if someone can get this to print out something other than an error, I will be pleased. Again, do note that you need a fairly specific network setup for this to work in general. Your sniffing system needs to be able to see all the traffic from the vonage adapter and switches will block that. If this does work, I do plan on trying to add the Unix stuff back in as there are similar perl modules in Windows. [file removed - we've branched this topic off into a thread of its own] Last edited by KJake; 01-05-2009 at 06:14 PM. |
#263
|
||||
|
||||
Just posting a progress report for those interested on the companion plug-in for Nielm's InfoPopup to get caller ID working on the HD extenders ...
So far the alpha testing is going well and seems to be working for all the testers. A few relatively minor issues to resolve and this project should be ready for a BETA release which I will post publicly. PS: Custom caller images are working. I'll post a note here when this plugin gets released, probably in one or two weeks. Thank You, shadeBlue
__________________
Server Hardware: Intel Core 2 Quad Q6700 2.66GHz CPU, 4GB DDR2 RAM, NVIDIA nForce 780i SLI Motherboard, GeForce 8600 GT, Seagate Barracuda 7200.11 2.5TB Operating System: Windows XP Professional HTPC/DVR Software: SageTV 7 Capture Devices: 2 @ Hauppauge HD-PVR (1212), Hauppauge WinTV-HVR-1600 ATSC/QAM, HD Homerun Media Extenders: 2 @ Sage HD100 & 1 @ Sage HD200 Signals/Providers: AT&T UVerse, OTA ATSC Set-Top-Box: 2 @ Motorola Box VIP 1200 |
#264
|
|||
|
|||
Quote:
Thank you!
__________________
Server: AMD Barton 2500+, WinXP, 1Gig RAM, HD Homerun Clients: HP dm1(E350), HD-100 |
#265
|
||||
|
||||
Quote:
I just released rev ALPHA-05 to the BETA test group. I'm keeping my fingers crossed that this will be the final ALPHA release and we can move this to a public BETA release very soon. If you are interested in testing the current ALPHA release, just PM me and I'll get the info to you. Thanks, shadeBlue
__________________
Server Hardware: Intel Core 2 Quad Q6700 2.66GHz CPU, 4GB DDR2 RAM, NVIDIA nForce 780i SLI Motherboard, GeForce 8600 GT, Seagate Barracuda 7200.11 2.5TB Operating System: Windows XP Professional HTPC/DVR Software: SageTV 7 Capture Devices: 2 @ Hauppauge HD-PVR (1212), Hauppauge WinTV-HVR-1600 ATSC/QAM, HD Homerun Media Extenders: 2 @ Sage HD100 & 1 @ Sage HD200 Signals/Providers: AT&T UVerse, OTA ATSC Set-Top-Box: 2 @ Motorola Box VIP 1200 |
#266
|
|||
|
|||
I just whipped up a quick shell script to form an e-mail interface of sorts to this plugin.
The geek level on this is fairly high, but it may be of use to some of you. The same concept can be used for a million things. Netcat is also available for Windows, so similar functionality could be built into a batch file. In theory, this could be done over the Internet almost as a service, but the security aspect of it could be a nightmare. If this traffic was allowed from anywhere on the internet, I suspect that you would get tons of garbage popping up. And, I am not sure that this was written to be robust enough to be exposed to that. I know I saw somewhere in the documentation that you needed to be careful allowing connections from other hosts, which is very true. It requires the tool "netcat", which it uses to send the message to the sage machine. Code:
#To make it cron friendly we make sure it doesn't send mail MAILTO= #Get a list of e-mail messages for the user running the script for INMSG in `ls ~/Maildir/new/` do #Parse out just the subject line and remove the header field name MSGSUBJ=`grep "Subject: " ~/Maildir/new/$INMSG|cut -f 2 -d ":"` #Send the subject to sage via netcat echo "$MSGSUBJ"|nc sage.hostname.here 10629 #Remove the message rm -f ~/Maildir/new/$INMSG done 1) When a backup or other task completes 2) Sports/News alerts 3) A million other things. The beauty is that it isn't just limited to email. Anything you can parse, you can send via netcat. My alarm system sends e-mails when events happen. Using this, I can have it display on the screen when these events happen. I have no idea of someone already posted something like this in the thread, but this IMO is just about one of the best uses of this plugin. |
#267
|
|||
|
|||
Ok, so I have been tweaking on this. I made some changes to the script to remove some of the delay so it is running as a daemon instead of every min.
My outlook also watches for certain words and shoots an alert to the TV if they occur. Now, what I would DEARLY love from this plugin is the ability to have 2 instances. One that pauses TV and one that just displays the message. I will have to look at the XML and see if I can do this. I imagine it wouldn't be too hard. Just make them unique names and ports. Also, for those of you scripting to this... I learned that when netcat makes a connection to it, it will stay open until the on screen message goes away. This is only an issue if trying to send multiple messages at one time. I ran into a problem where my script was stepping on itself when it looped because of this. The simple solution was to throw a & at the end of the nc command to put it in the background. Once you do this, it will accept the other connection and cycle through the messages on the screen. |
#268
|
||||
|
||||
@Kjake,
Have you used Vonage click2call app? It let's you log into your account, then you select a number to call, then your phone would ring, so you pick it up then starts ringing the number you want to call. This will be cool if someone could write something to take advantage of this. You could set up a phone book in sagetv and select a number to call. I wish I could program! |
#269
|
||||
|
||||
Alternate SageInfoPopup Plug-in
I have just released the shadeBlue-SageInfoPopup plug-in to the public. You can download it and obtain more information here. This is an alternate implementation for obtaining YAC caller ID messages and displaying the information in SageTV. This alternate version was specifically targeted at overcoming the issues and fully supporting the HD extenders.
I don't want to hijack this thread, so please direct any comments or questions related to the shadeBlue-SageInfoPopup plug-in to this new support thread. Thank You, shadeBlue
__________________
Server Hardware: Intel Core 2 Quad Q6700 2.66GHz CPU, 4GB DDR2 RAM, NVIDIA nForce 780i SLI Motherboard, GeForce 8600 GT, Seagate Barracuda 7200.11 2.5TB Operating System: Windows XP Professional HTPC/DVR Software: SageTV 7 Capture Devices: 2 @ Hauppauge HD-PVR (1212), Hauppauge WinTV-HVR-1600 ATSC/QAM, HD Homerun Media Extenders: 2 @ Sage HD100 & 1 @ Sage HD200 Signals/Providers: AT&T UVerse, OTA ATSC Set-Top-Box: 2 @ Motorola Box VIP 1200 |
#270
|
|||
|
|||
Just checking in to see if anyone tried this and had success. I will gladly add more debugging/logging capabilities to it if anyone is going to use it. If not, I'll leave the attachment there as-is.
|
#271
|
|||
|
|||
I definitely plan to try it. I just opened a new HD200 extender, and want to be able to get caller ID on it. It may be several days before I get the extender installed and can try it however.
__________________
Central Sage Server Win 10 64 Bit, Two HD200, Three HD300, & One PC Client 21 TB storage. SageTv 64 Bit |
#272
|
|||
|
|||
Quote:
|
#273
|
|||
|
|||
Quote:
VonageSniff.exe - Entry Point Not Found The procedure entry point Perl_hv_common_key_len could not be located in the dynamic link library per58.dll Any ideas on what I need to do? |
#274
|
|||
|
|||
Quote:
Thanks Simon
__________________
Sage Server: Currently being rebuilt Client 1: Media MVP Client 2: Media MVP Client 3: PlaceShifter |
#275
|
|||
|
|||
Quote:
I would love to hear from anyone else using the VonageSniff script. |
#276
|
|||
|
|||
#277
|
|||
|
|||
Quote:
|
#278
|
|||
|
|||
My guess is that this program will work with anything that uses proper SIP protocol formatting.
|
#279
|
|||
|
|||
Quote:
They have a nice Java example on the site that could be extended with an STVi nicely...however, I really don't want to get into STVi development. My personality and the Studio do not mix and I quickly get frustrated with it. https://secure.click2callu.com |
#280
|
||||
|
||||
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|