HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] DID once again
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