From: Mickey A. <mi...@ao...> - 2002-03-17 04:46:40
|
That was the clue I was looking for...it works now! Now to add in extra things like pausing Winamp whenever the phone rings ;-) Mickey -----Original Message----- From: mis...@li... [mailto:mis...@li...]On Behalf Of Bruce Winter Sent: Saturday, March 16, 2002 10:33 PM To: Misterhouse-Users Subject: RE: [misterhouse-users] NetCallID.pl and phone_netcallerid.pl > A little more information... > > Changed the debug to serial and then called myself. The > following is in my > error log: > > serial name=serial_netcallerid type= data2= > ###DATE03162051. > --- > serial name=serial_netcallerid type= data2= > ###DATE03162051...NMBR2104163469...NAMEARGO MICK > --- > serial name=serial_netcallerid type= data2= > ###DATE03162051...NMBR2104163469...NAMEARGO MICKEY +++ --- > > But nothing was announced (I currently have NetCallerID.pl in my code > directory). > > Anyone care to share a clue? I know I sure could use one right about now > ;-) There should have been <cr> between the last +++ and ---, from the 2nd to last \n in this debug print in mh: print " serial name=$port_name type=$Serial_Ports{$port_name}{datatype} data2=\n$Serial_Ports{$port_name}{data}\n---\n" What version of mh do you have? By default, the Serial_Item 'said' method will return data only when a \n or \r (newline or linefeed) is detected. In the case of my netcallerid, I get a \r. Here is the errata I see when running phone_netcallerid.pl: -------------- serial name=serial_netcallerid type= data2= ###DATE03162226...NMBR5072881030...NAMEWINTER BRUCE LA+++ --- NetCallerID data=###DATE03162226...NMBR5072881030...NAMEWINTER BRUCE LA ------------- Sounds like for some reason yours is not sending \r, or someone the OS or perl is dropping it. You can override the 'break' from \n or \r to +++ with this mh.ini parm: serial_netcallerid_break = \+\+\+ Bruce ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |