Obi2Yac: Yac & Growl Notification Daemon
Smee:
The one and only thing I miss about my land line since switching to GV and Obi, is CNAM. I also used YAC in my home to display CallerID to all of my PCs and TiVos in my house before the switch. So in January I got to work on building my own YAC server to replace the old, but still use the old YAC clients on my PCs and TiVos. A few nights later, the first version of Obi2Yac was born. It relied on Kiwi to execute Obi2Yac whenever the CallerID magic string was received. I also managed to get Growl notifications to work as well so my tablet and phone could join the fun. ;D Last month, QBZappy asked that I send him a link to my program. I did, but I realized that I used a registered version of Kiwi and therefore it would be useless to him. I updated the application to no longer need Kiwi and instead, it is now its own Syslog daemon. Thanks QBZappy! :D
This application is written using AutoIt. It is designed to do name substitutions based on a phone number located in local access database. If the name is not found in the local database, it will query OpenCNAM/WhitePages.com and hope it gets lucky during it's query. Failing that, it returns NAME UNAVAILABLE for CNAM. Queries using Whitepages.com will only occur if you have a valid APIKey defined in the INI. Results are then broadcast to Yac listeners defined in the database or Growl if enabled and installed on the same PC. All successful queries are cached to improve speed during future calls. This script runs as a Syslog server and is designed to work with an Obi set to forward Syslog data to PC where Obi2Yac is running. I have only tested this to run on an Obi configured for Google Voice. Using it with another SIP provider should work as well, but your mileage may vary.
You can find my program sources here: https://github.com/TheSmee/obi2yac
You can find my program releases here: https://github.com/TheSmee/obi2yac/releases
You can find YAC clients here: http://www.sunflowerhead.com/software/yac/
You can find Growl for Windows here: http://www.growlforwindows.com/gfw/
You can find Growl for Android here: https://play.google.com/store/apps/details?id=com.growlforandroid.client
Access Database Tables are as follows:
CallLogs: Log of all received callsListeners: PCs which will receive YAC broadcastsListenerTypes: Currently defines listener types Obi2Yac can send too. YAC/NCID are listed, but I never got around to doing NCID broadcasts.Substitutions: Your personal substitutions. You can add both Obi or regular numbers.SubstitutionsCache: All successful queries to OpenCNAM/WhitePages.com are cached here to avoid lookups & increase spead of CID broadcast
Obi2Yac uses an INI file to define the following:
APIKey: WhitePages.com API Key. If defined, lookups will will occur after OpenCNAM query.GrowlEnable: If defined, will register with Growl if installed on local PC and send CID for broadcast.SysLogIP: If defined, will bind to this IP for Syslog. Do not use 127.0.0.1. If not defined, will bing to first IP it finds.SysLogPort: If defined, will bind to that port via UDP. Otherwise it will bind to port 514 UDP.NoBreak: If set to 0, will prevent App exit/pause via Systray + Right click.
This is AutoIt and not terribly sophisticated to use so anyone should be able to follow what I did and make changes rather easily. Sources are available for download, but if you do improve upon it, please post the changes so others benefit.
Have fun... ;D
Smee
QBZappy:
Smee,
This is one of those 3rd party apps that the OBi community can put to practical use. I appreciate the fact that it is possible to follow the coding and make some minor changes to it in case the OBi syslog messages are modified by obihai, as it has already happened in the past rendering any solutions difficult to modify if it is hardcoded.
Let me be the first to ask for a product feature. Would it be too difficult to do an Outlook contact lookup and open the contact form or journal? I live in my contact management software. This would be a killer extension of the OBi for me, and I suspect others as well. This could be a reward on my 2000th milestone post!
Three cheers for Smee!
Hip hip hooray
Hip hip hooray
Hip hip hooray
ianobi:
QBZappy,
Wow - 2000 posts - you have been busy! Thanks for all the useful info you have posted. This forum would not be the same without you :)
MickW:
Or Install GrowlerID from Riotouslabs.com here is a link
http://riotouslabs.com/Support/topic6-growlerid-beta-stopped-working.aspx
Ostracus:
Quote from: ianobi on April 14, 2013, 08:13:17 am
QBZappy,
Wow - 2000 posts - you have been busy! Thanks for all the useful info you have posted. This forum would not be the same without you :)
You're not doing too shabby yourself.
Navigation
[0] Message Index
[#] Next page