I used to use an application called Kermit (I think it was) back in the System 6/7 days. It opened an effective shell to the modem so you could type 'atdt 02 6474 4722' (attention and dial tone <#>). I'm sure there must be a command-line tool that starts an interactive session like with telnet.