Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: CID Plugin Trigger Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 01 2007 at 14:44 | IP Logged Quote BeachBum

Trying to make CID Plugin work that I downloaded today. I checked the com port and init stings for the modem to verify that phcid.ini was correct. I also registered ph_cid.ocx and received an ok. I added a GENERIC PLUGIN trigger with Command 1 and Option 1. When I call Hyperterminal shows RING then CALLERID but the plugin trigger doesn’t appear to fire or at least there is no indication from the log. Do I need to do something else like in setup under plugins?

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: November 01 2007 at 18:02 | IP Logged Quote jbbtex

Yes you have to make an entry in Setup under plugins.

See this thread: CID

__________________
Brady

"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
Back to Top View jbbtex's Profile Search for other posts by jbbtex
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 01 2007 at 18:12 | IP Logged Quote BeachBum

Brady, I must be blind as a bat. Darn if I can find anything referring to doing something in Setup in the thread. If it's there what do I put in the plugin under setup??

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: November 01 2007 at 18:16 | IP Logged Quote jbbtex

dhoward wrote:


...The Launch Data (ActiveX Classname) is: PH_CID.phcid. The plugin takes 3 initialization parameters separated by a single space. The port, the settins, and an Initialization string. You can leave the Init string blank if one is not required. The Initialization parameter for my particular voice modem on COM3 is:
Code:
3 9600,N,8,1 at#cid=1
...



You create your own ID. The Launch Data is highlighted above. For the Initializtion Data field I believe you use the complete path and filename of the plug-in's INI file (that's what is used for the xPL plug-in).

__________________
Brady

"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
Back to Top View jbbtex's Profile Search for other posts by jbbtex
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 01 2007 at 18:27 | IP Logged Quote BeachBum

So I need to add PH_CIC.phcid in LAUNCH DATA. Cool, thanks. I've already checked the initialization parameters in the phcid.ini in the plugin directory. I did clarify that it was correct for my modem.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 02 2007 at 10:19 | IP Logged Quote BeachBum

OK, I added the ActiveX Classname and still no trigger. Does this rely on TAPI? If so that is my problem. If it connects directly to the Comm Port then I'm missing something.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: November 02 2007 at 10:57 | IP Logged Quote jbbtex

Pete,

In the Plug-in Setup, what do you have in the Initializtion Data field?

It should be the path and file name of the INI file for example C:\Program Files\Powerhome\plug-ins\phcid.ini

__________________
Brady

"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
Back to Top View jbbtex's Profile Search for other posts by jbbtex
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 02 2007 at 11:32 | IP Logged Quote BeachBum

Brady,

Launch Data has PH_CID.phcid and Initialization has C:\Program Files\Powerhome\plugins\phcid.ini These fields were cut & paste just incase the eyeballs missed something. My path is spelled plugins without the dash (-). I just wonder if Dave is using TAPI??


__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 02 2007 at 11:49 | IP Logged Quote dhoward

Pete,

The CID plugin does not use TAPI. It just directly connects to the COM port that the modem is on.

It sounds as if you've got the plugin screen configured properly. Just make sure that you restart or reinitialize in order for the changes to take effect.

Also, I know you had the trigger previously defined (before you added an entry in the plugins table). If you havent gone back and updated this trigger, then it won't work. Part of the trigger definition (the Trigger ID) is the ID that you assigned to the plugin (which you wouldnt have had available before). Go back and set declare the plugin ID as part of the trigger, save, and that should get you going.

HTH,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 02 2007 at 12:04 | IP Logged Quote BeachBum

You are my idol… One quickie, how do I define a USB modem port in the init parameter?

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
jpcurcio
Senior Member
Senior Member
Avatar

Joined: April 01 2007
Location: United States
Online Status: Offline
Posts: 119
Posted: November 03 2007 at 16:07 | IP Logged Quote jpcurcio

BeachBum wrote:
You are my idol� One quickie, how do I define a USB modem port in the init parameter?


BeachBum:

What I did was use hyperterminal (Start-->Programs-->Accessories-->Communications--& gt;HyperTerminal) to test the strings.

When HT opens, enter some string for the connection, click OK, and enter a dummy telephone number (you won't be calling it, but please don't use "911" in case you accidentally dial it). Then hit CANCEL.

In the main white field, type AT&F and press Enter. It should respond with "OK". Then, try entering the various strings that Dave put in the .ini file... if you get an "OK", it took it. Then, call your number from your cell phone. It should respond with the CID info in the HT window.

For mine, a Creative ModemBlaster v.92 USB, it needed the AT+VCID=1. YMMV.

-John
Back to Top View jpcurcio's Profile Search for other posts by jpcurcio
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 03 2007 at 16:46 | IP Logged Quote BeachBum

Thanks John,

I can get the modem to work with Hyoerterminal ok. And also have my original problem resolved. Now I was wondering what to plug into the Initialization Parameters that are defined in CIDID.INF. For a PCI type modem this work fine. "port=3 settings=9600,N,8,1". Since I also use a USB modem I was trying to figure what to plug in for the Port Number.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: November 03 2007 at 17:46 | IP Logged Quote jbbtex

Pete,

You should be able to find out what port it is assigned to in Windows Device Manager.

__________________
Brady

"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
Back to Top View jbbtex's Profile Search for other posts by jbbtex
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 04 2007 at 01:05 | IP Logged Quote BeachBum

Great idea Brady. Sometimes I overlook the simplest things. Thanks...

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 05 2007 at 10:40 | IP Logged Quote BeachBum

My USB modem shows up as Comm 4 so I plugged that into the INI file along with correct INIT CID string. I get the following message when I start up.

An error occurred while calling function PHPI_InitData for Plugin: CID. The return code is: 1.

On another system using the same database all works well but has a built-in modem.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 05 2007 at 13:13 | IP Logged Quote dhoward

Pete,

As Brady suggests, the Device Manager should tell you the COM port under the Modems section.

I checked the code for the CID plugin and a 1 is returned from the PHPI_InitData function if the Initialization field is left blank or points to an INI file that does not exist. A 1 is also returned if the port is set to - 1. The last reason a 1 can be returned is that the specified port could not be intialized, which is probably what your problem is. Usually the only thing that will keep the port from initializing is that the port is already open and in use by another application. Make sure that nothing else is trying to monitor COM 4 and then verify everything works with HyperTerminal. If it works with HyperTerminal, it should work with PowerHome.

HTH,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 05 2007 at 13:26 | IP Logged Quote BeachBum

Yes, I have another application that uses that modem but through TAPI. I also thought the problem was with the port open so I close the app and fired up PH resulting in the same error. I’ll keep plugging at it and if I find the solution I'll pass it on.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 07 2007 at 16:04 | IP Logged Quote BeachBum

After I copied the phcid.ini file from a working system and modified the port I was able to open it without error. The only thing I can figure is I had a finger check somewhere in the INI file. Thanks for the help...

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
sharby
Groupie
Groupie


Joined: May 13 2007
Location: United States
Online Status: Offline
Posts: 50
Posted: November 25 2007 at 23:55 | IP Logged Quote sharby

Update:

This plugin is awesome and has cutdown 90% of my telemarketing phone calls. I'd like to have Powerhome write a log file on every "CALLERID" macro execution. Is it possible to take it a step further and identify what number called and if it was a Telemarketer that was dropped? Thank you all.

-=*Sharby*=-
Back to Top View sharby's Profile Search for other posts by sharby
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: November 26 2007 at 07:27 | IP Logged Quote TonyNo

My CID macros log to a file. Check this thread for the CIDLOG section.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

Page of 2 Next >>
  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum