SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #261  
Old 11-20-2008, 12:47 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
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).
Reply With Quote
  #262  
Old 11-20-2008, 05:23 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
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.
Reply With Quote
  #263  
Old 11-20-2008, 10:32 PM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
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
Reply With Quote
  #264  
Old 11-30-2008, 04:57 PM
computer33 computer33 is offline
Sage Advanced User
 
Join Date: Mar 2005
Location: Toronto
Posts: 109
Quote:
Originally Posted by shadeblue.com View Post
I'll post a note here when this plugin gets released, probably in one or two weeks.

shadeBlue
Looking forward to this being released. I missed this plug in when I got my HD extender.

Thank you!
__________________
Server: AMD Barton 2500+, WinXP, 1Gig RAM, HD Homerun

Clients: HP dm1(E350), HD-100
Reply With Quote
  #265  
Old 12-01-2008, 02:08 AM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
Quote:
Originally Posted by computer33 View Post
Looking forward to this being released. I missed this plug in when I got my HD extender.

Thank you!
Hi computer33,

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
Reply With Quote
  #266  
Old 12-06-2008, 12:08 AM
wvpolekat wvpolekat is offline
Sage Advanced User
 
Join Date: Apr 2007
Location: Buckhannon, WV
Posts: 134
Send a message via AIM to wvpolekat Send a message via MSN to wvpolekat
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
The uses for this are almost endless, but some easy notifications are:

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.
Reply With Quote
  #267  
Old 12-09-2008, 09:55 PM
wvpolekat wvpolekat is offline
Sage Advanced User
 
Join Date: Apr 2007
Location: Buckhannon, WV
Posts: 134
Send a message via AIM to wvpolekat Send a message via MSN to wvpolekat
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.
Reply With Quote
  #268  
Old 12-09-2008, 11:16 PM
QueOnda's Avatar
QueOnda QueOnda is offline
Sage Icon
 
Join Date: Jan 2008
Posts: 1,093
@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!
Reply With Quote
  #269  
Old 12-17-2008, 12:55 AM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
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
Reply With Quote
  #270  
Old 12-25-2008, 08:51 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Quote:
Originally Posted by KJake View Post
If this does work, I do plan on trying to add the Unix stuff back in as there are similar perl modules in Windows.
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.
Reply With Quote
  #271  
Old 12-25-2008, 09:41 PM
Steve52 Steve52 is offline
Sage Aficionado
 
Join Date: Dec 2005
Location: Middle Tennessee
Posts: 369
Quote:
Originally Posted by KJake View Post
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.
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
Reply With Quote
  #272  
Old 01-02-2009, 12:30 PM
nstocke nstocke is offline
Sage Advanced User
 
Join Date: Apr 2008
Location: Kaysville, Utah
Posts: 100
Quote:
Originally Posted by KJake View Post
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.
Would this work with other VOIP providers besides Vonage? I have VIATalk and I have been looking for a Caller ID program that would work on the network packets.
Reply With Quote
  #273  
Old 01-03-2009, 04:24 PM
nstocke nstocke is offline
Sage Advanced User
 
Join Date: Apr 2008
Location: Kaysville, Utah
Posts: 100
Quote:
Originally Posted by KJake View Post
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.
I think it has become obvious to myself that I don't know what I'm doing. I decided to give it a try. Downloaded and extracted VonageSniff. When I tried to run it I got and error that it couldn't find "Perl58.dll" I installed active perl and tried again. Still same error. The perl folder was in the path but no per58.dll. I located some odd perl58.dll files in some old temp directories on my system. Put the perl58.dll file in the current perl directory and I get the following error dialog box.

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?
Reply With Quote
  #274  
Old 01-04-2009, 06:51 AM
simonk1969 simonk1969 is offline
Sage User
 
Join Date: Jan 2008
Location: Stevenage, UK
Posts: 45
Thumbs up

Quote:
Originally Posted by shadeblue.com View Post
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
I've installed shadeBlue-SageInfoPopup to replace neilms info popup because I could not get it to work succesfully or reliably on my MPV and this has worked straight away after setup and consistently since.

Thanks
Simon
__________________
Sage Server:
Currently being rebuilt
Client 1: Media MVP
Client 2: Media MVP
Client 3: PlaceShifter
Reply With Quote
  #275  
Old 01-04-2009, 05:58 PM
nstocke nstocke is offline
Sage Advanced User
 
Join Date: Apr 2008
Location: Kaysville, Utah
Posts: 100
Quote:
Originally Posted by nstocke View Post
I think it has become obvious to myself that I don't know what I'm doing. I decided to give it a try. Downloaded and extracted VonageSniff. When I tried to run it I got and error that it couldn't find "Perl58.dll" I installed active perl and tried again. Still same error. The perl folder was in the path but no per58.dll. I located some odd perl58.dll files in some old temp directories on my system. Put the perl58.dll file in the current perl directory and I get the following error dialog box.

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?
I determined that the perl58.dll it was looking for was based on the version of PERL. I had installed Perl 5.10 after installing an older version of PERL version 5.8.8 I got the script to run. I have gotten it to detect incoming calls and to send the CALLER ID to a YAC listener. There are still a few problems. I get errors when I try to use the Daemon option -D and the only way I can get it to detect incoming calls is to use the -f (filter option) but when I do the screen fills with "Use of uninitialized value in pattern match (m//) at vonageSniff.pl line 275." messages. It is functioning but the screen just streams that message.

I would love to hear from anyone else using the VonageSniff script.
Reply With Quote
  #276  
Old 01-05-2009, 12:50 PM
nstocke nstocke is offline
Sage Advanced User
 
Join Date: Apr 2008
Location: Kaysville, Utah
Posts: 100
I started a new thread to discuss the VonageSniff Script that KJake contributed.

New Thread is Here
Reply With Quote
  #277  
Old 01-05-2009, 06:10 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Quote:
Originally Posted by nstocke View Post
I started a new thread to discuss the VonageSniff Script that KJake contributed.

New Thread is Here
Sorry about your questions going unanswered, I must have accidentally unsubscribed from this thread somehow.
Reply With Quote
  #278  
Old 01-05-2009, 06:16 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Quote:
Originally Posted by nstocke View Post
Would this work with other VOIP providers besides Vonage? I have VIATalk and I have been looking for a Caller ID program that would work on the network packets.
My guess is that this program will work with anything that uses proper SIP protocol formatting.
Reply With Quote
  #279  
Old 01-05-2009, 06:34 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Quote:
Originally Posted by QueOnda View Post
@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!
I hadn't seen that, sounds pretty cool - and Vonage actually has a neat third party integration site up so we wouldn't have to create a wrapper or anything for this program.

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
Reply With Quote
  #280  
Old 01-05-2009, 07:02 PM
QueOnda's Avatar
QueOnda QueOnda is offline
Sage Icon
 
Join Date: Jan 2008
Posts: 1,093
Quote:
Originally Posted by KJake View Post
I hadn't seen that, sounds pretty cool - and Vonage actually has a neat third party integration site up so we wouldn't have to create a wrapper or anything for this program.

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
OH, COOL. I didn't look long enough at that page.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 02:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.