diff options
author | gnhb <gnoahb@gmail.com> | 2010-04-05 17:18:04 +0700 |
---|---|---|
committer | gnhb <gnoahb@gmail.com> | 2010-04-05 17:18:04 +0700 |
commit | 29851d8eb230c72d5e1d3f6dff18516ca29bca15 (patch) | |
tree | 9aae94fc4c0617677709ba2f2717c230cd582fd5 /usr/local/sbin | |
parent | 0a59624c95095e5fe4eea3e1b2594189b2952750 (diff) | |
download | pfsense-29851d8eb230c72d5e1d3f6dff18516ca29bca15.zip pfsense-29851d8eb230c72d5e1d3f6dff18516ca29bca15.tar.gz |
Added some more information to error messages for easier debugging.
Diffstat (limited to 'usr/local/sbin')
-rw-r--r-- | usr/local/sbin/mpd.script | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/usr/local/sbin/mpd.script b/usr/local/sbin/mpd.script index aa2501e..5188848 100644 --- a/usr/local/sbin/mpd.script +++ b/usr/local/sbin/mpd.script @@ -77,7 +77,7 @@ DialPeer1: set $ModTelephone $Telephone call ModemIdent if $ModemDescription != "" goto DialPeer2 - log "The modem is not responding." + log "No match found in the ModemIdent function in the chat script." failure DialPeer2: @@ -352,16 +352,13 @@ ModemIdent: print "ATI\r\n" match "ADTRAN EXPRESS XR" ModemIdentAdtranXRT match "Model: Ovation MC950D Card" ModemIdentMC950D - match "C885" ModemIdentC885 match "ERR" ModemIdentGeneric match "OK\r\n" ModemIdentGeneric wait 3 - print "ATI8\r\n" - match "BitSURFR PRO\r" ModemIdentBitsurfr - match "BitSURFR PRO EZ" ModemIdentBitsurfrEZ - match "3C882" ModemIdentImpactIQ - match "ERR" - match "OK\r\n" + print "ATI1\r\n" + match "NTK omni.net" ModemIdentNTK + match "ERR" ModemIdentGeneric + match "OK\r\n" ModemIdentGeneric wait 3 print "ATI3\r\n" match "Courier" ModemIdentUsr @@ -381,12 +378,19 @@ ModemIdent: match "ERR" match "OK\r\n" wait 3 - print "ATI1\r\n" - match "NTK omni.net" ModemIdentNTK - match "ERR" ModemIdentGeneric + print "ATI5\r\n" + match "C885" ModemIdentC885 + match "ERR" match "OK\r\n" ModemIdentGeneric wait 3 - log "The modem is not responding." + print "ATI8\r\n" + match "BitSURFR PRO\r" ModemIdentBitsurfr + match "BitSURFR PRO EZ" ModemIdentBitsurfrEZ + match "3C882" ModemIdentImpactIQ + match "ERR" + match "OK\r\n" + wait 3 + log "The modem is not responding to any ATI[1,3-5,8] commands." failure ModemIdentGeneric: @@ -1432,7 +1436,7 @@ ModemCmd0: wait $modemCmdTimeout set $modemCmdResult "TIMEOUT" ModemCmdTimeout: - set $ErrorMsg "The modem is not responding." + set $ErrorMsg "The modem is not responding to AT$modemCmd." return ModemCmdOk: set $modemCmdResult "OK" @@ -1518,7 +1522,7 @@ ReadLineDone: GetOK: match "OK\r\n" GotOK wait 3 - log "The modem is not responding." + log "The modem did not respond with \"OK\"." failure GotOK: return |