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] Modem Initialization Question
Hello Bodo,
I believe we may have been successful. Both servers are in time sync.
I modified the script which queries CallManager - using " date +'%s' "
to write the current system time to a variable DISCO_TIME when it
starts.
date +'%s'
It's nice since it is in the same format as the Cisco dateTimeDisconnect
field. Then the query can select the first call where
dateTimeDisconnect is <= DISCO_TIME, in addition to original criteria.
I was able to place a valid fax call and then a simulated errant call to
test the query and it did return the faxed-to DID.
I appreciate your experience and assistance. I guess there is always
more than one way to skin a cat...
Thanks,
Greg
-----Original Message-----
From: hylafax-users-bounce@xxxxxxxxxxx
[mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of Bodo Meissner
Sent: Thursday, July 15, 2010 12:43 PM
To: hylafax-users@xxxxxxxxxxx
Subject: Re: [hylafax-users] Modem Initialization Question
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 15.07.2010 17:34, schrieb Greg Youngers:
> Since the CDR database and its timestamps are on a different server
than
> HylaFAX, do you think the time between the two servers would be in
sync
> enough to rely on if they use the same NTP source?
Hello Greg,
normally the clocks should be in sync, if the servers are running
permanently.
If you switch off a server or stop ntpd for some time allowing the
clocks do develop a difference it will take some time to re-synchronize
the clocks.
To avoid possible clock differences you can do something on the DB
server to get the time stamp from the same system clock.
You could run a program remotely to get the current time from the DB
server or you could create a DB record (in a different table or DB) on
the same server which will used for the time comparison after your
waiting time.
Bodo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkw/SKIACgkQnMz9fgzDSqdPnwCfesCPaYJ2r+HNSpW6+OkfAEVe
3asAnRsu5//LJP20g9JOMxrr0lPFJI7v
=dXRR
-----END PGP SIGNATURE-----
____________________ HylaFAX(tm) Users Mailing List
_______________________
To subscribe/unsubscribe, click
http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx <
/dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*