| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | RE: [ECS] Programming and Phone Question David Kindred Wed, 1 Mar 2000 10:41:28 -0500 |
Scott, I'm going to send you what I've got so far. It's far from perfect, but seems to work most of the time. Maybe you can help me fix it up. :-) One of the tricks is to set up a tab-delimited text file that has all your numbers in it. Each entry has an ID number set for it. I only have a couple of categories in my setup. One for regular callers, one for family and one for solicitors. Family and friends get the same regular message. Solicitors (which have ID numbers in the 9000-9999 range) get a WAV files of "The number you have reached has been disconnected." and then they're hung up upon. Caller-ID information is only announced during waking hours, but is always forwarded to ACE. It's not exactly what you want, but maybe it'll give you a starting point? --David -----Original Message----- From: Scott Danks [mailto:sdanks@ci.tulsa.ok.us] Sent: Wednesday, March 01, 2000 10:20 AM To: ecs-list@netbloc.com Subject: Re: [ECS] Programming and Phone Question I have had a few hours to get enthrawled in the ECS events lately, and I have some questions for you guru's. Question 1: Is there a built in way to play a specialized greeting based on caller Id.? I am operating under the assumption that I have to write my own but the toolsa re there. So, I got it to work by patching the "phone service" event, and playing a different wav file based on the callerid. The problem is I have to patch the event everytime I have a new callerid to setup. SO, I thought I would make an event that reads a text file and parses it for the callerid lookup and associated wav file (or .RPC) file to play and if it does not find one, play the normal greeting. . . . Question 2: Has anyone already done this? I may be making it harder than it is (Mark probably has this done already and it may be internal to ecs) Question 3: Mine is ALMOST working. BUT, I can't figure out how to set a text variable to nothing to clear it. I tried copying a <NUL> to the variable and that did not work, the text variable I build looks like this when trace is turned on: "<NUL>918-835-xxxx". When setting it to a value it just seems to append on the text line. I should probably learn how to do this even if one of you has a routine I can use so I will know how to do this in later events. BTW, the way I set it to <NUL> is: text-char set <NUL> text-string t1/a<-stt Question 4: Could it be that my remote phone stuff is not working because I'm using an "answer/w"? Does that stop it from figuring out what macros, etc. are coming in? Any ideas whould be helpful. If I can make this work and no one is using one I will be happy to share the events, as usual. Scott Danks