1#! /usr/sbin/chat -vEf
2# ^^^ all options MUST be given as ONE word only (all are passed as ARGV[1])
3#     add/remove letter 'v' to echo all the commends to your syslog
4TIMEOUT 3 "" "ATZ" "OK-ATZ-OK" "" ABORT "BUSY" ABORT "NO CARRIER" ABORT "NO DIAL TONE" ABORT "ERROR" ABORT "VOICE" ""
5ATL2 OK
6ATD$TELEPHONE
7TIMEOUT 90 CONNECT \c ^M \c
8