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] Why doesn't my $CIDNUMBER dispatch work?



Hi,guys
i resolve this problem.
I eidt the faxrcvd.sh,I think it necessary insert some sentence in order to let the $CIDNUMBER and $CINNAME get value.
I use awk syntax   to deal with the log/c$COMMID, crawl the cidnumber and cinname ,then give these to the $CIDNUMBER and $CINNAME.
The Caller-ID routing can work now by the etc/FaxDispatch.

2008/2/25 飞飞 <feifeidai@xxxxxxxxx>:
Hi, all
I run a Hylafax 4.2.5 in Ubuntu 6.06.
It can work ,and can route all received facsimile using TSI-based Routing.
but it cann't auto-routing using the Caller-ID based routing.
I use the modem  MultiTech MultiModemZBA-USB-V.92 . This modem is compatible  with hylafax. this modem support Caller-ID reporting , and my local telephone company support this.


some snippet of my log is like this:

Feb 24 17:56:21.93: [10205]: SESSION BEGIN 000000112 +8602163528123
Feb 24 17:56:21.93: [10205]: HylaFAX (tm) Version 4.2.5
Feb 24 17:56:21.93: [10205]: <-- [4:ATA\r]
Feb 24 17:56:23.15: [10205]: --> [9:DATE=0224]
Feb 24 17:56:23.15: [10205]: --> [9:TIME=1756]
Feb 24 17:56:23.15: [10205]: --> [13:NMBR=63528124]
Feb 24 17:56:33.59: [10205]: --> [7:CONNECT]
Feb 24 17:56:33.59: [10205]: ANSWER: FAX CONNECTION  DEVICE '/dev/modem'
Feb 24 17:56:33.59: [10205]: RECV FAX: begin
Feb 24 17:56:33.59: [10205]: <-- data [32]
Feb 24 17:56:33.59: [10205]: <-- data [2]
Feb 24 17:56:33.59: [10205]: --> [7:CONNECT]
Feb 24 17:56:33.59: [10205]: <-- data [23]
Feb 24 17:56:33.59: [10205]: <-- data [2]
Feb 24 17:56:33.59: [10205]: --> [7:CONNECT]
Feb 24 17:56:33.59: [10205]: <-- data [13]
Feb 24 17:56:33.59: [10205]: <-- data [2]
Feb 24 17:56:36.00: [10205]: --> [2:OK]
Feb 24 17:56:36.00: [10205]: <-- [9:AT+FRH=3\r]
Feb 24 17:56:37.22: [10205]: --> [7:CONNECT]
Feb 24 17:56:39.57: [10205]: --> [2:OK]
Feb 24 17:56:39.57: [10205]: REMOTE TSI "+8602163528124"



If i  set my FaxDispatch fie like this:

case "$CIDNUMBER" in
63528124) SENDTO=feifeidai@xxxxxxxxx;;
esac

it will doesn't work!



but ,
If i  set my FaxDispatch fie like this:

case "$SENDER" in
*63528124) SENDTO=feifeidai@xxxxxxxxx;;
esac

it will crawl TSI info, and it can work.




Any mistake I have made? Could somebody give help me?
Thanks.

Feifei




Project hosted by iFAX Solutions