]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
This patch from Lee helps faxaddmodem cope with some modems:
authorAidan Van Dyk <aidan@ifax.com>
Fri, 21 Jul 2006 17:46:10 +0000 (17:46 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Fri, 21 Jul 2006 17:46:10 +0000 (17:46 +0000)
  this allows us some means of identification for Class 2.0 modems like
  Motorola CE (wireless phone) that don't give us anything with AT+FMM?
  or AT+FMI?

CHANGES
etc/faxaddmodem.sh.in

diff --git a/CHANGES b/CHANGES
index 71828c87ccefcd9389340e689ebc03b005cf10ec..f7aa86435521bafe780e12097a1ea96fbd4aa99a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,7 @@
 
 Changelog since HylaFAX 4.3.0
 
+* faxaddmodem: Allow identification when no AT+FMM? or AT+FMI? (21 Jul 2006)
 * fix error of accepting too-short of DCS signal (20 Jul 2006)
 * fix faxgetty hang in ECM due to missing timeouts (20 Jul 2006)
 * fix indicator when 100% non-zero TCF data is received (20 Jul 2006)
index dad30fddaa8551cef97b2d16c5eb87e26850d5ea..6e5a2cff819caec3bac88938c23767274c90ed74 100644 (file)
@@ -1020,6 +1020,8 @@ configureClass2dot0Modem()
     fi
     #
     SendToModem "$ATSTR" "AT+FMI?"
+    # if we get an ERROR revert to ATI
+    if [ "$RESPONSE" = "ERROR" ]; then SendToModem "$ATSTR" "ATI"; fi
     Manufacturer=$RESPONSE
     echo "Modem manufacturer is \"$Manufacturer\"."