![]() |
Lee: I am doing exactly as you say (and, glad to say, I figured it out on my own - I guess great minds think alike ;-). I hacked faxgetty rather crudely to write the CID and DNIS info into the log files. I also posted later about a couple of the other things that have to be done. I don't mind testing from cvs at this point. I may have to have drop-dead reliable faxing in a few weeks if a big deal I am working on comes together, but until then, I can always switch everyone over to the manual fax. Let me know what I need to be doing. I'm happy to work with you. Keep in mind that my knowledge of c++ is miniscule to non-existent. I've also found that there are actually three numbers that bear watching: the number the calling fax identifies itself as, CID, and DNIS. The faxrcvd script should be able to intelligently handle those, and refax/print/email (in specified format, ps/pdf/tiff as a minimum)/ftp/etc based on those numbers and according to some file. I started work on a faxroute.conf that tells faxrcvd how to dispose of a fax; basically it now has three columns: DNIS, email, printer. Very limited, but all I need at this point. It really needs to expand to handle all of the above, as well as include support for custom handling in a "pluggable" manner. --Yan Lee Howard wrote: > > At 02:54 PM 11/18/01 -0500, Yan Seiner wrote: > >I'm starting to play with DID - routing faxes based on called number ID > >(DNIS). > > > >My modem reports CID and DNIS. Here's what's in /var/log/messages: > > > >Nov 18 15:25:41 pythia FaxGetty[2675]: --> [4:RING] > >Nov 18 15:25:46 pythia FaxGetty[2675]: --> [12:NDID=5213011] > >Nov 18 15:25:46 pythia FaxGetty[2675]: --> [15:NMBR=8435214934] > >Nov 18 15:25:47 pythia FaxGetty[2675]: --> [4:RING] > > > > > >I will have a total 8 fax lines; I can't rely on scanning > >/var/log/messages for this stuff. It does not appear in any of the > >hylafax logs, which start with the ATA command. > > > >How do I get this stuff into /var/spool/hylafax/log? Or give it to > >notify? > > > >There is no documentation (that I've found) on what hylafax does with > >CIDName and CIDNumber. > > Well, there are a couple of ways that this could be handled. You could > change CIDName and CIDNumber to be "NDID=" and "NMBR=" respectively, then > the CID and DNIS both come through HylaFAX's existing CID handling. If > you're using CVS HylaFAX, then the the number is pumped to faxgetty as a > fifth parameter, and you can use that for routing via FaxDispatch. > > It's also possible to follow the same pattern as CID for DID in the code > (adding code to faxgetty) to acheive this. The entire trick is that the > modem *must* report this to faxgetty as you show yours doing. > > In your case, however, it should be easier just to redefine CID with the > existing mechanisms to suit your CID/DNIS needs. > > Lee. ____________________ HylaFAX(tm) Users Mailing List _______________________ To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null