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
  #1  
Old 08-24-2010, 08:25 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Utility: sip2yac

I've decided to rename the vonageSniff project to sip2yac to more accurately reflect the use of this utility.

sip2yac is a Windows command-line or service that will analyze the traffic on your network looking for VoIP phone calls, typically using the SIP protocol. Then, as you've configured it to do, it will send Caller ID info to your YAC listener(s). This takes the place of a YAC server listening on a modem port. Please download the Zip file and take a look at the readme for more information on setup. There is also some relative historical info in the old tool's thread, linked below.

Recently, it came to my attention that this program seems to work with just about every SIP-based VoIP provider out there, but some of them do not provide the name of the caller to help save on the overall cost of your service. Enter, reverse lookups!


Info:
Old Project Thread: SageTV Forums

Info Popup for Sage Clients/Extenders: SageTV Forums

New Project Home: sip2yac on Google Code

Latest Version: Download

New features:
  • Multiple reverse lookup providers to try and resolve any phone number
  • Option to save successful reverse lookup queries to CSV file; used as first source in subsequent reverse lookups
  • Log incoming and/or outgoing calls to a CSV file

Recent Changelog:
Code:
# 1.10 Added reverse lookup for VoIP systems that do not receive CNAM/CIDNAME
#      Reverse Lookup Code from: http://www.teamforrest.com/blog/89/using-agi-to-get-caller-id-name-cnam/
#      Thanks to 'traker1001' on the SageTV forums for the help!
# 1.11 Lookup missing CNAM/CIDNAME info from CSV file before going to the internet
#      Format: 2125556789,Capt. Crunch
# 1.12 Add additional reverse lookup sources
#      Rename project to sip2yac
# 1.13 Added more comments to source
#      Added logic to prevent duplicate entries from being added to the CSV file
#      Added feature to log outgoing calls to CSV
# 1.14 Added incoming to the logging to CSV feature intoduced in 1.13 - NOTE options rewording
#      Whitepages.com now requires an API key. Due to rate limiting, it makes more sense to require individuals to provide an API key rather than embed mine
#      Sign-up here: http://developer.whitepages.com
#      Updated README
#      More strictly assigning variables, etc.
# 1.15 Loosen strict failures on references.
# 1.16 Fix major bug in call logging

Last edited by KJake; 08-29-2010 at 10:09 PM.
Reply With Quote
  #2  
Old 08-24-2010, 09:15 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
I'm successfully using the old vonagesniff program. Is there a reason I should change to this version?
Reply With Quote
  #3  
Old 08-25-2010, 07:03 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
If the newer options don't interest you, feel free to keep using what you have!
Reply With Quote
  #4  
Old 08-26-2010, 01:33 PM
briands briands is offline
Sage Icon
 
Join Date: Aug 2004
Location: Bloomington, IN
Posts: 1,093
Can't seem to piece all of this together... is there a way to use this with Magic Jack (in WHS)?
Reply With Quote
  #5  
Old 08-26-2010, 02:48 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Quote:
Originally Posted by briands View Post
Can't seem to piece all of this together... is there a way to use this with Magic Jack (in WHS)?
Indeed, there is someone using this with Magic Jack specifically! I will ask him to reply to this thread with some basic instructions.
Reply With Quote
  #6  
Old 08-26-2010, 06:44 PM
traker1001 traker1001 is offline
Sage Aficionado
 
Join Date: Jul 2006
Posts: 338
I use Sip2Yac on a XP eeepc with my magicjack, Not just for transmitting CID, But to improve on the in and out logging, and transmit both CID and CWID to my other pc's. Also to provide a name to the CID/CWID.

Download and install PCAP from http://en.wikipedia.org/wiki/Pcap
Download Sip2yac
Unzip it to a directory
from command prompt execute sip2yac.exe and note probably the Device with the star next to it. Use this in your config file.
Magicjack port is 'udp 52941'

Edit the sip2yac.config file for your puposes. Plugin your Device, port and WPapi key.

Here is the contents of my config file. Not Magicjack uses UDP port 52941. The device is going to be different for every system, Just run sip2yac in the dos command prompt without using any config options.

dev=\Device\NPF_{4B7F2BE9-A91F-4041-9832-ADC5EAB8FB60}
filter='udp 52941'
y=127.0.0.1:10629,10.0.0.4:10629
logoutgoing=1
wpapi=9021f690crabf6ea7a2abb81eXXXXXXX
updatecsv=1
ignore=4079023400

When everything is setup, Execute Sip2yac with the config file.
I.E. Sip2yac.exe -C=sip2yac.cfg

Hope this helps out a little.
__________________
Reply With Quote
  #7  
Old 08-26-2010, 06:52 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
thanks traker1001! you might want to edit out your whitepages api key though
Reply With Quote
  #8  
Old 08-26-2010, 07:08 PM
traker1001 traker1001 is offline
Sage Aficionado
 
Join Date: Jul 2006
Posts: 338
Quote:
Originally Posted by KJake View Post
thanks traker1001! you might want to edit out your whitepages api key though
Its not my actual key, I changed several char's to leave it looking like it should.
__________________
Reply With Quote
  #9  
Old 08-26-2010, 08:40 PM
briands briands is offline
Sage Icon
 
Join Date: Aug 2004
Location: Bloomington, IN
Posts: 1,093
Quote:
Originally Posted by traker1001 View Post
I use Sip2Yac on a XP eeepc with my magicjack, Not just for transmitting CID, But to improve on the in and out logging, and transmit both CID and CWID to my other pc's. Also to provide a name to the CID/CWID.

Download and install PCAP from http://en.wikipedia.org/wiki/Pcap
Download Sip2yac
Unzip it to a directory
from command prompt execute sip2yac.exe and note probably the Device with the star next to it. Use this in your config file.
Magicjack port is 'udp 52941'

Edit the sip2yac.config file for your puposes. Plugin your Device, port and WPapi key.

Here is the contents of my config file. Not Magicjack uses UDP port 52941. The device is going to be different for every system, Just run sip2yac in the dos command prompt without using any config options.

dev=\Device\NPF_{4B7F2BE9-A91F-4041-9832-ADC5EAB8FB60}
filter='udp 52941'
y=127.0.0.1:10629,10.0.0.4:10629
logoutgoing=1
wpapi=9021f690crabf6ea7a2abb81eXXXXXXX
updatecsv=1
ignore=4079023400

When everything is setup, Execute Sip2yac with the config file.
I.E. Sip2yac.exe -C=sip2yac.cfg

Hope this helps out a little.
Wow, great explanation. Thanks. I'll give this a go on the weekend.
Reply With Quote
  #10  
Old 08-27-2010, 06:50 AM
seaverd seaverd is offline
Sage Advanced User
 
Join Date: Feb 2005
Posts: 137
I have what I hope is a simple question.

When I run the following from a cmd window:
sip2yac -C=c:\sip2yac.config
everything runs and I get the callerID popup in sageTV however the cmd window stays open on my desktop. I am looking to get rid of this window and i tried to install this as a service. I typed:

sip2yac --install -C=c:\sip2yac.config

and the service says it is installed, however I do not believe it is running my specified config file. What is the correct syntax to install as a service and use my config file? Or is there some other way to run this and not have a cmd window open?

Thanks,
Dan
Reply With Quote
  #11  
Old 08-27-2010, 10:05 AM
George M George M is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 115
Well not working here with MagicJack
I installed PCAP
Ran sip2yac.exe from a command prompt.
MagicJack is running
Device is not found. Here is what is displayed:

E:\!Downloads\sip2yac>sip2yac.exe
sip2yac 1.16.0.0 (win32 impl. by Kevin Jacobson)
Starting up...
Device: *
WinPcap Filter: udp and port 5060
Number to ignore:
YAC listeners:
Error opening libpcap: Error opening adapter: The system cannot find the device
specified. (20)

Use one of the following interfaces (try those with a * first):

\Device\NPF_{B3DC5CEF-89B3-4CA2-A3D5-7EE2FD1B2FCA} *


Any ideas why it does not find the MagicJack?

Thanks
GM
Reply With Quote
  #12  
Old 08-27-2010, 12:57 PM
traker1001 traker1001 is offline
Sage Aficionado
 
Join Date: Jul 2006
Posts: 338
seaverd, I haven't tried running it as a service so I am shooting in the dark. I would think the service would start and kill over if it weren't running the config file. One thing I did notice was that your running the config in the root (c:\). Try placing the config file in the same directory as sip2yac.exe and running this instead.
sip2yac --install -C=sip2yac.config
Before you do this, be sure to remove the service first, sip2yac --remove.

Another option is is a program called Taskbar Helper, I don't have a link for it though because I haven't used it in a long time.

George
You need to load a config file. In the same folder where you unzipped sip2yac there is a file called sip2yac.config.
Open this file with notepad.

Put this info as:
dev=\Device\NPF_{B3DC5CEF-89B3-4CA2-A3D5-7EE2FD1B2FCA}
filter='udp 52941'
y=127.0.0.1:10629
ignore=Your phone number goes here.

Please note: y= is going to be the IP:Port of your yac clients. IE if you install Yac on the same computer as sip2yac it will be, y=127.0.0.1:10629. Or if you install yac client on the same computer and your sage server is 10.0.0.5 it will be y=127.0.0.1:10629,10.0.0.5:10629

for the ignore= line you need to place you phone number. So if your phone number is 1233214321 your ignore line should look like this w/o qoutes. "ignore=1233214321".

Now save the file.

In the same folder, Create a new text document, Edit the text document with notepad.

In it place this,
sip2yac -C=sip2yac.cfg

Click File,SaveASave
Change file type as All Files (*.*)
Name it sip2yac.cmd (Or whatever you like, Only thing that matters is that it is in same folder as everything else.)
Click save.

Now there should be a sip2yac.cmd file in your sip2yac folder. Double click it.

Also, One thing I forgot to mention that is important to note. Sip2yac needs to be either on the same computer as your magicjack is running. Or inline via a hub. otherwise the router will prevent it from seing the packets.

Hope that helps.
__________________
Reply With Quote
  #13  
Old 08-27-2010, 02:12 PM
George M George M is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 115
Thanks for trying to help. It didnt work. Here is what I get now.

E:\sip2yac>sip2yac -C=sip2yac.cfg
sip2yac 1.16.0.0 (win32 impl. by Kevin Jacobson)
Config file defined, trying to open: sip2yac.cfg
Error opening config file, using defaults instead.
readline() on closed filehandle CONFIG at sip2yac.pl line 382.
Starting up...
Device: *
WinPcap Filter: udp and port 5060
Number to ignore:
YAC listeners:
Error opening libpcap: Error opening adapter: The system cannot find the device
specified. (20)

Use one of the following interfaces (try those with a * first):

\Device\NPF_{B3DC5CEF-89B3-4CA2-A3D5-7EE2FD1B2FCA} *



Here is my config file. I thought the Device was independent of each unit so didn't know how coping the one from your message would work.

dev=\Device\NPF_{B3DC5CEF-89B3-4CA2-A3D5-7EE2FD1B2FCA}
filter='udp 52941'
y=192.168.0.75:10629
ignore=1234567890 <changed from my phone number>
Reply With Quote
  #14  
Old 08-27-2010, 02:43 PM
traker1001 traker1001 is offline
Sage Aficionado
 
Join Date: Jul 2006
Posts: 338
[QUOTE=George M;445125]Thanks for trying to help. It didnt work. Here is what I get now.

E:\sip2yac>sip2yac -C=sip2yac.cfg
QUOTE]

im sorry, is the file re-saved as sip2yac.cfg or did you leave it as the original name sip2yac.config when you saved it?

one thing that might confuse things, Kjake left the file extension as linux config file standard .config, for my purposes I renanamed it to dos file standard .cfg.

So instead try sip2yac -C=sip2yac.config
__________________

Last edited by traker1001; 08-27-2010 at 02:49 PM.
Reply With Quote
  #15  
Old 08-27-2010, 03:00 PM
George M George M is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 115
that was it. Has to be .cfg

Thanks
Reply With Quote
  #16  
Old 08-27-2010, 04:19 PM
traker1001 traker1001 is offline
Sage Aficionado
 
Join Date: Jul 2006
Posts: 338
Im glad you got it working.
__________________
Reply With Quote
  #17  
Old 08-29-2010, 06:48 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Quote:
Originally Posted by seaverd View Post
I have what I hope is a simple question.

When I run the following from a cmd window:
sip2yac -C=c:\sip2yac.config
everything runs and I get the callerID popup in sageTV however the cmd window stays open on my desktop. I am looking to get rid of this window and i tried to install this as a service. I typed:

sip2yac --install -C=c:\sip2yac.config

and the service says it is installed, however I do not believe it is running my specified config file. What is the correct syntax to install as a service and use my config file? Or is there some other way to run this and not have a cmd window open?

Thanks,
Dan
That looks correct to me.

see: http://forums.sagetv.com/forums/show...&postcount=103
Reply With Quote
  #18  
Old 08-29-2010, 07:33 PM
SDeGonge's Avatar
SDeGonge SDeGonge is offline
Sage Aficionado
 
Join Date: Jun 2009
Location: NY
Posts: 253
This sounds like a very cool utility. Will it display incomming calls on the HD200 clients?
__________________
SageTV User Since 2009
Server Hardware: AMD FX6100, 6 Cores, 3.3GHz, 8GB RAM, TA970XE MB, 3TB HD, HVR-2250, HD-PVR, nVidia 9600GT 512MB
Server Software: SageTV 9, Windows 10 64bit, EventGhost
Client Hardware: HD200 x2, INT-422-3 & WR7 Remote
Service Provider: Cablevision (QAM to 2250, SamsungBox to HDPVR)
Reply With Quote
  #19  
Old 08-29-2010, 07:36 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
I just moved to this from vonagesniff. I noticed that the service didn't work until I had it run as a user with a password. It might have worked with just the interact with the desktop enabled.
Reply With Quote
  #20  
Old 08-29-2010, 08:08 PM
seaverd seaverd is offline
Sage Advanced User
 
Join Date: Feb 2005
Posts: 137
KJake

The syntax in post 103 is the exact same way I typed it. I also tried the other users suggestion of moving the config file to the same folder as sip2yac and that did not make any difference.

For my main pc I have only one user with no password to avoid the login screen. Could this be my problem?

At this point all I need is a way to run this without the cmd screen open all of the time. What does the promiscuous option do?

Thanks

Dan
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Utility: Comskip erik SageTV Customizations 278 04-14-2016 08:13 PM
Utility: SageMCEDisplay Jere_Jones SageTV Customizations 37 04-13-2009 03:53 PM
Utility: SendMessage v2.2 Opus4 SageTV Customizations 29 08-10-2008 08:43 PM
Which compression utility is the best? davephan General Discussion 7 01-03-2007 06:57 AM


All times are GMT -6. The time now is 10:24 AM.


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