[SlimDevices: Plugins] Re: New addon anouncement - Incoming phone call display
I've just uploaded a new version of the docs and script that fixes the issues you reported. There's now a new option to control adding the zero to numbers. I've also added an option to log debug output to a file (it wasn't much use going to stdout!). Max -- max.spicer The wild things roared their terrible roars and gnashed their terrible teeth and rolled their terrible eyes and showed their terrible claws but Max stepped into his private boat and waved good-bye max.spicer's Profile: http://forums.slimdevices.com/member.php?userid=23 View this thread: http://forums.slimdevices.com/showthread.php?t=17690 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/plugins
[SlimDevices: Plugins] Re: New addon anouncement - Incoming phone call display
Mark Bennett [EMAIL PROTECTED] writes: When I get a suitable modem I'll play with asterix/pingtel and see how it works. I'm probably too much of a novice at perl to handle the plug-in myself though. There is already a plugin for asterisk, but it is only for SlimServer 5.3. Get it here: http://www.dinplug.com/vmplugin/dev_overview.html Because I am using asterisk myself, I will bring it to 6.2 at some point if it is not done then, but first I like to make Max callerid display using ISDN. Gerd ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/plugins
[SlimDevices: Plugins] Re: New addon anouncement - Incoming phone call display
Thanks for the feedback! I'll add the stuff about CSV_XS and the cli port to the docs. I hadn't realised I was running on a non-default port. Maybe it's changed since I started using SlimServer. I've noticed that my version appears to have stopped working over the last couple of days, but I haven't had time to work out why yet. However, please be warned: I think the modem might answer the call if SlimServer isn't running! Again, I haven't had time to look into this properly yet, but it's a nasty bug if it's true! Max malsbury Wrote: Max, I got everything up and running with just a few tweaks. Here they are incase anyone else has similar problems. Server OS: CentOS 4.1 (Redhat Based) SlimServer: v.6.2.1 Clients: SliMP3's Only CallerID: United States First I needed to install Text::CSV_XS as it is not part of the standard CentOS distro. I did using the following command: Code: perl -MCPAN -e install Text::CSV_XS Next, it was having trouble connecting to the server when I tested the script. I noticed that you have a non-defualt port setup on your system (9023). I changed it to the Slim defualt of 9090 and the test displayed fine. Setting up mgetty and inittab: Entry for /etc/mgetty+sendfax/mgetty.config: Code: # Calling Max's Script to pass CallerID info to Slimserver cnd-program /usr/local/sbin/cid.pl init-chat AT#CID=1 Entry for /ect/inittab: Code: # Put a getty on a modem line to monitor after two rings. # S1:2345:respawn:/sbin/mgetty -x0 -n 2 -s 57600 ttyS1 I'll keep playing with it over the weekend. I'll let you know if I run into anything else. Thanks for this great little script. --Tom Malsbury -- max.spicer The wild things roared their terrible roars and gnashed their terrible teeth and rolled their terrible eyes and showed their terrible claws but Max stepped into his private boat and waved good-bye max.spicer's Profile: http://forums.slimdevices.com/member.php?userid=23 View this thread: http://forums.slimdevices.com/showthread.php?t=17690 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/plugins
[SlimDevices: Plugins] Re: New addon anouncement - Incoming phone call display
max.spicer Wrote: Thanks for the feedback! I'll add the stuff about CSV_XS and the cli port to the docs.I set up my contacts.cvs and found a UK assumption that you had made in your code. US CallerID does not have a leading 0 (zero), it is displayed as ten digits. A call from (123)555-1212 would be displayed as 1235551212. I had to comment out the following part of your code: Code: # Add 0 on to front of any number that's missing it (Outlook likes to # strip leading zeros from numbers, assumedly so it can add the country # code at its leisure later on) # $fields[$i] =~ s/^([^0].*)/0$1/; Maybe you should add an option to the setup section asking if the users CallerID system requires the use of the leading zero to turn on and off that formatting section.max.spicer Wrote: Please be warned: I think the modem might answer the call if SlimServer isn't running! Again, I haven't had time to look into this properly yet, but it's a nasty bug if it's true!I tested this out with SlimServer shutdown, and my modem did not answer the line. My answering machine picked up after 4 rings. I turned that off too, and tried again. No pickup, just rang and rang... I'll keep an eye on it though. --Tom Malsbury -- malsbury malsbury's Profile: http://forums.slimdevices.com/member.php?userid=57 View this thread: http://forums.slimdevices.com/showthread.php?t=17690 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/plugins
[SlimDevices: Plugins] Re: New addon anouncement - Incoming phone call display
Mark.Bennett Wrote: Beyond your current plans of caller ID support, you could turn this into an answering machine. Capture messages for unanswered calls to a file, display on the SB that messages are waiting, and play them back through any SB in the house. This sort of technology could also allow different greeting messages to the answer phone depending on who is calling! I think that this sort of technology would be a fantastic add-in to SlimServer. This functionality is covered by existing open source projects such as http://www.asterisk.org/ and http://www.pingtel.com/ therefore it may be easier to interface these applications with Slimserver rather than reinvent the wheel within Slimserver code. -- mikerob ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/plugins
[SlimDevices: Plugins] Re: New addon anouncement - Incoming phone call display
Mark.Bennett Wrote: Can you tell us which modem you are using? I already do! It's linked to in my article under Caller ID Compatible Modems. In the US, you're more likely to get results with cheap modems. In the UK, you probably get what you pay for. There's lots of literature out there on linux and modems (I think I link to some of it). In general, something external and made by USR is never a bad idea. ;-) Beyond your current plans of caller ID support, you could turn this into an answering machine. Capture messages for unanswered calls to a file, display on the SB that messages are waiting, and play them back through any SB in the house. I'm not sure I have a need for that, I'm afraid, but I'm fairly sure there's already work out there on that sort of thing. Asterisk? Max -- max.spicer The wild things roared their terrible roars and gnashed their terrible teeth and rolled their terrible eyes and showed their terrible claws but Max stepped into his private boat and waved good-bye ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/plugins
Re: [SlimDevices: Plugins] Re: New addon anouncement - Incoming phone call display
On Tue, 2005-11-01 at 04:32 -0800, max.spicer wrote: Mark.Bennett Wrote: Can you tell us which modem you are using? I already do! It's linked to in my article under Caller ID Compatible Modems. In the US, you're more likely to get results with cheap modems. In the UK, you probably get what you pay for. There's lots of literature out there on linux and modems (I think I link to some of it). In general, something external and made by USR is never a bad idea. ;-) Ah, thanks - somehow I missed it first time round. Beyond your current plans of caller ID support, you could turn this into an answering machine. Capture messages for unanswered calls to a file, display on the SB that messages are waiting, and play them back through any SB in the house. I'm not sure I have a need for that, I'm afraid, but I'm fairly sure there's already work out there on that sort of thing. Asterisk? Yes, I was expecting there to be open source solutions for this, but it's the integration with Slimserver which I thought could be very useful. -- The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools. (Douglas Adams) ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/plugins
Re: [SlimDevices: Plugins] Re: New addon anouncement - Incoming phone call display
On Tue, 2005-11-01 at 02:05 -0800, mikerob wrote: Mark.Bennett Wrote: Beyond your current plans of caller ID support, you could turn this into an answering machine. Capture messages for unanswered calls to a file, display on the SB that messages are waiting, and play them back through any SB in the house. This sort of technology could also allow different greeting messages to the answer phone depending on who is calling! I think that this sort of technology would be a fantastic add-in to SlimServer. This functionality is covered by existing open source projects such as http://www.asterisk.org/ and http://www.pingtel.com/ therefore it may be easier to interface these applications with Slimserver rather than reinvent the wheel within Slimserver code. I agree, it was really the integration with Slimserver that I thought would be useful. When I get a suitable modem I'll play with asterix/pingtel and see how it works. I'm probably too much of a novice at perl to handle the plug-in myself though. -- The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools. (Douglas Adams) ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/plugins
[SlimDevices: Plugins] Re: New addon anouncement - Incoming phone call display
I'll have to try this--I got callerID working with ncid (http://ncid.sourceforge.net/) and a program that posts to the HTTP interface of my SlimServer. I wrote it up at http://chairthrower.org/blog/?p=23 and http://chairthrower.org/blog/?p=22. It may be worth modifying this program to be a callout option for ncid--I'm using ncid to serve clients that do popup on my Windows PC and as well I'm getting logging of all my incoming calls. ncid also handles all the modem stuff so you don't have too. I'll take a look at it. -- mrfantasy --Mike ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/plugins
[SlimDevices: Plugins] Re: New addon anouncement - Incoming phone call display
max.spicer Wrote: I can't see why this wouldn't work with the slimp3. It should work with US CallerID, but you may find I've made some uk-specific assumptions. Max There are two different types of caller ID display used in the UK... BT have their own method and the cable companies have either the US method or the BT method depending what type of local exchange you are connected to! -- mikerob ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/plugins