Discussion:
making POTS phone calls thru external modem
David McNab
2011-01-29 04:36:01 UTC
Permalink
Hi folks,

I've got an old 56k external voice/fax/data modem, with RS232 serial
connection, phone/line jacks, and also 3.5mm audio in/out jacks on it.

Is it possible to use this modem to make outbound voice calls to the
POTS (regular copper-wire voice telephony) network?

If so, what software do I need?

I've downloaded/installed mgetty/vgetty, but the default install seems
to have no support for outbound voice calls.

What I want to do is have a mic headset plugged into the in/out jacks,
and to dial out and hang up via software.

Thanks in advance for any help

Cheers
David



_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Nevyn
2011-01-29 06:48:01 UTC
Permalink
Post by David McNab
Hi folks,
I've got an old 56k external voice/fax/data modem, with RS232 serial
connection, phone/line jacks, and also 3.5mm audio in/out jacks on it.
Is it possible to use this modem to make outbound voice calls to the
POTS (regular copper-wire voice telephony) network?
If so, what software do I need?
I've downloaded/installed mgetty/vgetty, but the default install seems
to have no support for outbound voice calls.
What I want to do is have a mic headset plugged into the in/out jacks,
and to dial out and hang up via software.
Thanks in advance for any help
Cheers
David
It's certainly possible. I used to do the same back in the day... back
when I was still using Windows. The software to do was horrible and
felt kinda hacked together.

I'm not sure if you'll easily find maintained software to do so on
Linux but the alternative is to figure out the at commands. This seems
a good place to start:
http://en.wikipedia.org/wiki/Voice_modem_command_set

Eventually I needed up just buying a cheap headset and phone from
surplustronics. It had the advantage that I could also walk around
with it on rather than being tied to my computer.

Regards,
Nevyn
http://nevsramblings.blogspot.com/

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Michael Adams
2011-01-29 08:07:32 UTC
Permalink
Post by David McNab
Hi folks,
I've got an old 56k external voice/fax/data modem, with RS232 serial
connection, phone/line jacks, and also 3.5mm audio in/out jacks on it.
Is it possible to use this modem to make outbound voice calls to the
POTS (regular copper-wire voice telephony) network?
If so, what software do I need?
I've downloaded/installed mgetty/vgetty, but the default install seems
to have no support for outbound voice calls.
What I want to do is have a mic headset plugged into the in/out jacks,
and to dial out and hang up via software.
Thanks in advance for any help
Most MoDems have a jack for a phone in the back of them. In normal usage this
gets cut before it dials out. The trick would appear to be to dial the number
and then re-open this circuit. The old, old ones (300 - 2400 buad) we used to
get dialing the bank and entering the user account number and pin for us from
a script, for telephone banking. There may still be a script like that around
somewhere on the Interweb thingy.
--
Michael

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Bruce Kingsbury
2011-01-29 08:29:18 UTC
Permalink
atm1 to turn the speaker on so you can hear it dial
atdt5551212,,,, to dial and wait silently 8 seconds before trying to start a
data connection (pick up the phone now)
once it's finished dialling send another <cr> to cancel dialling and the
phone you picked up will be connected.
Post by Michael Adams
Post by David McNab
Hi folks,
I've got an old 56k external voice/fax/data modem, with RS232 serial
connection, phone/line jacks, and also 3.5mm audio in/out jacks on it.
Is it possible to use this modem to make outbound voice calls to the
POTS (regular copper-wire voice telephony) network?
If so, what software do I need?
I've downloaded/installed mgetty/vgetty, but the default install seems
to have no support for outbound voice calls.
What I want to do is have a mic headset plugged into the in/out jacks,
and to dial out and hang up via software.
Thanks in advance for any help
Most MoDems have a jack for a phone in the back of them. In normal usage this
gets cut before it dials out. The trick would appear to be to dial the number
and then re-open this circuit. The old, old ones (300 - 2400 buad) we used to
get dialing the bank and entering the user account number and pin for us from
a script, for telephone banking. There may still be a script like that around
somewhere on the Interweb thingy.
--
Michael
_______________________________________________
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
--
Disclaimer:
By sending an email to any of my addresses you are agreeing that:
1. I am by definition, "the intended recipient"
2. All information in the email is mine to do with as I see fit and make
such financial profit, political mileage, or good joke as it lends itself
to.
3. I may take the contents as representing the views of your company.
4. This overrides any disclaimer or statement of confidentiality that may
be included on your message.
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
David McNab
2011-01-31 00:50:28 UTC
Permalink
Post by Bruce Kingsbury
atm1 to turn the speaker on so you can hear it dial
atdt5551212,,,, to dial and wait silently 8 seconds before trying to start a
data connection (pick up the phone now)
once it's finished dialling send another <cr> to cancel dialling and the
phone you picked up will be connected.
That part worked out easy.
It's just a shame that my speedcom 56k external modem (conexant chipset)
doesn't have any AT+VLS modes for disconnecting the local phone, or
easily recognising when the local phone is back on-hook.

But at least I have an app for smart dialing and call logging and CRM
interfacing.





_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug

Peter Lambrechtsen
2011-01-29 18:51:10 UTC
Permalink
Post by David McNab
Hi folks,
I've got an old 56k external voice/fax/data modem, with RS232 serial
connection, phone/line jacks, and also 3.5mm audio in/out jacks on it.
Is it possible to use this modem to make outbound voice calls to the
POTS (regular copper-wire voice telephony) network?
If so, what software do I need?
I've downloaded/installed mgetty/vgetty, but the default install seems
to have no support for outbound voice calls.
What I want to do is have a mic headset plugged into the in/out jacks,
and to dial out and hang up via software.
If you are looking to do VoIP or similar telephony through your modem you
won't have any success. If you wanted to run Asterisk then you would need a
X100P or similar FXO PCI card off trademe.

That would allow you to run a Softphone on your PC and plus the headset into
the sound card on your PC. And then dial out via the card to the POTS
network.

The other option if you are wanting to do what you are talking about is to
install "minicom" which lets you do a "at" dial commands in a text window.
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Bruce Kingsbury
2011-01-29 19:57:31 UTC
Permalink
The thing I was using in 1998 was a program Perry Lorier helped me with (and
by helped, I mean mostly wrote for me..) called vax, along with another
program vmcp which would send the AT commands to answer and which could just
as easily have dialled out too.

This doesn't do VoIP though, and the modem records in a format that I never
figured out how to play other than sending it back through the modem.

If you think this might be useful I can dig up the source code..

VAX(8)

NAME
vax - Vertical Access

SYNOPSIS
vax [mode] [exitstr] [file .. ]

DESCRIPTION
This program plays or records audio in 'raw modem' format,
and extracts 'DLE-shielded' codes (DTMF, busy, etc)

OPTIONS
mode
R - record: record to [file]
I - immediate: play from [file ..], exit right after
M - menu: play from [file ..], exit right after
P - prompt: play from [file ..], mute on non-exit
keypresses, exit after a short pause

Differences between modes are subtle, sometimes nonexistent. I
realised that the code could be less complex than it was. Eg menus
I can just play "$menu pause $menu pause.." to make them repeat
rather than it being part of vax.

Various debugging info is sent to stderr. There's no -v flag for
more verbose debugging. For less info use "2>/dev/null".


All DLE-escaped characters are sent to stdout, and to stderr in []'s
Normally used prompting for input (capture stdout, exit only on #)
but I also capture the numbers when recording (I could send them
via SMS, etc.. )

If a character is recieved that is in [exitstr], vax will exit()
with the position of the character in [exitstr]. After playing
the last file, vax will exit(0)

In prompt mode, any DTMF aborts playing, but does not exit unless
the character is also in [exitstr]. After a short pause without
any keypresses, the program exits. Not everyone knows to press #..

After 5 minutes of play/record, vax will exit(100). Normally, this
is a fatal error but when recording it might just be that the user
didn't stop talking for five solid minutes.. some people are like
that! On fatal errors, vax will fwrite(stderr) and exit(255).


EXIT STATUS
0 End of input file(s) reached, sent DLE-ETX and
recieved OK from the modem.

1-99 Recieved a DLE-escaped character contained in
exitstr, exit code indicates which character..

100 Timeout has expired.

255 Fatal error, description written to stderr.


ENVIROMENT VARABLES
PORT
the serial device that the modem is on, excluding /dev/
eg "ttyS0"
PLAY
command to put the modem in play mode ("AT#VPL\n")
REC
command to make a beep and begin recording ("AT#VBP#VRD\n")
ETX
the dle sequence to exit from play mode,
normally DLE-ETX ("\020\003")
CAN
the dle sequence to flush the modem's buffer
normally DLE-CAN ("\020\030")

LIB
Directory where recordings can be found when they're
not explicitly specified.

BUGS
none

UNINTENTIONAL OR UNDESIRABLE FEATURES

Various modems send "OK" or "CONNECT" or "VCON" in response to
modem commands. I should wait for the full string but the code
got too complex and wasn't working so now I just wait for 'O'
which should work fine for most modems. It doesn't seem to cause
any problems, so I don't see much reason to change it :)

To init the modem, answer the phone, etc, use vmcp or chat.
I really should write something myself to chat and configure
the comport but for now I'll recommend vmcp and linres, which do
an OK job.

Most modems default to using AD4 compression, and a comm speed
of 38400. I don't recommend trying to use any of the other modes
or speeds that your modem might claim to support. I tried and
couldn't get any of them to work.

Some modems (and commercial CIT cards) apparently operate more
like a soundcard in voice mode. This version of vax does not
support Vos Dialogic cards, soundcards, or modems that think
they are soundcards. If someone wants to give me a Dialogic
card I'll be happy to write support for it!



AUTHORS
Bruce Kingsbury (zcat)
Post by Peter Lambrechtsen
Post by David McNab
Hi folks,
I've got an old 56k external voice/fax/data modem, with RS232 serial
connection, phone/line jacks, and also 3.5mm audio in/out jacks on it.
Is it possible to use this modem to make outbound voice calls to the
POTS (regular copper-wire voice telephony) network?
If so, what software do I need?
I've downloaded/installed mgetty/vgetty, but the default install seems
to have no support for outbound voice calls.
What I want to do is have a mic headset plugged into the in/out jacks,
and to dial out and hang up via software.
If you are looking to do VoIP or similar telephony through your modem you
won't have any success. If you wanted to run Asterisk then you would need a
X100P or similar FXO PCI card off trademe.
That would allow you to run a Softphone on your PC and plus the headset into
the sound card on your PC. And then dial out via the card to the POTS
network.
The other option if you are wanting to do what you are talking about is to
install "minicom" which lets you do a "at" dial commands in a text window.
_______________________________________________
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
--
Disclaimer:
By sending an email to any of my addresses you are agreeing that:
1. I am by definition, "the intended recipient"
2. All information in the email is mine to do with as I see fit and make
such financial profit, political mileage, or good joke as it lends itself
to.
3. I may take the contents as representing the views of your company.
4. This overrides any disclaimer or statement of confidentiality that may
be included on your message.
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Continue reading on narkive:
Loading...