Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Mgetty Not Answering when Calling from Outside Post 302928445 by mrm5102 on Thursday 11th of December 2014 05:44:06 PM
Old 12-11-2014
Quote:
Originally Posted by blackrageous
Are you sure the number you calling into has DID (direct inward dial) capability, in other words can you make a call to that number (where mgetty is) from the outside and have it answer?
Hey, thanks for the reply..

Yes, I have one line coming out of the ATA and going into a splitter and from that splitter one end goes into the PC running mgetty and the other end goes into a dumb phone that has caller ID. And when I make the call I can see the dumb phone ringing with the correct caller ID number as well as I can see mgetty Ringing while watching the log file.

So both my laptop and the PC running Mgetty both have DID numbers assigned to them.

Also, if I call the mgetty PC from my cell phone, I can see my cell number on the dumb phone's Caller ID but mgetty shows it as "none"...

Thanks Again,
Matt

---------- Post updated at 04:46 PM ---------- Previous update was at 03:51 PM ----------

Ahh crap....

So other then the 15 Zoom USB modems I already purchased for a project, I have 2 or 3 TrendNET USB Modems...

So I shutdown mgetty, unplugged the Zoom modem and connected the TrendNET modem, then restarted mgetty. I did NOT change any of the init-string
stuff or any configuration data and this time when I called from my cell phone, the correct caller-id number showed instantly in the mgetty log file... I really hope
this is not an issue with all the Zoom modems or else I'm SOL.

I was wondering if it was the Caller-ID's AT Command I'm sending to the modem as part of mgetty's config, which is AT+VCID=1, the 1 simply means to show
formatted CID information. So I changed it to AT+VCID=2, which means to use unformatted CID information, but that didn't seem to change anything
in terms of receiving any CID information from an outside caller...

Any advice or suggestions??

Thanks Again,
Matt

---------- Post updated at 05:44 PM ---------- Previous update was at 04:46 PM ----------

******** UPDATE ********

So I just tried something else...

I connected the same USB Modem to my Windows XP VM and started Putty Serial connection for the USB Modem. Then the ONLY AT command that I sent to the
Modem was the Caller-ID Command, which is AT+VCID=1. Then I called the USB Modem connected to the Windows XP machine from an internal extension and got the
4-digit extension as expected in the Caller-ID information. So I hung up that call and called the full DID number from my cell phone this time and Putty then
displayed the FULL, correct Caller-ID information...

So it looks like it might be an issue with mgetty. Any ideas what it could possibly be, I'm at a bit of a loss here..?

Thanks again and sorry for the consecutive posts.

Thanks,
Matt
 

8 More Discussions You Might Find Interesting

1. BSD

Answering posts

Hi Guys...(if anyone is out there), do these specialist posts ever get answered and do we just have to bide our time and be patient, or whats the deal (3 Replies)
Discussion started by: Gerry405
3 Replies

2. Shell Programming and Scripting

Perl: answering automatically to install questions

Hi everybody, I have been looking for an answer to this issue both on google and on the forum, but I couldn't find anything. please help me :eek: As part of an automated (in perl) install of Solaris 9, I would like to be able to answer automaticaly to the question the installer asks.... (2 Replies)
Discussion started by: zaap
2 Replies

3. UNIX for Dummies Questions & Answers

help - question needs answering????

hey, have been set this question at school and cannot think for the life of me how to do this. Ive thought about setuid/setgid and things like that but cant make any snese of it. Can anyone help? question reads: You have a file which has the names, email addresses, mobile numbers and sales... (1 Reply)
Discussion started by: biffa
1 Replies

4. Shell Programming and Scripting

No 1 answering my question... any reason ?

can some one please help me at my post ? for hours yet being ignored Need help on this: nonsense. can't even solve forum ask people redo whole code. LMAO - after asking 101 qns the pre result should be like this: A A A A A A A A A A A A A A A A A A A A A A A A A... (27 Replies)
Discussion started by: nanochan1
27 Replies

5. Shell Programming and Scripting

ssh -t answering automatically to the password

hi, i'm using the folowing ssh command to list the newuser "crontab' from myuser ssh -t myuser@host1 "sudo -u newuser crontab -l" this is ok but it is asking me a password. Mot de passe de myuser: The problem is that i want to answer it automatically in a shell script with the... (22 Replies)
Discussion started by: Nicol
22 Replies

6. Shell Programming and Scripting

Perl Debug Stepping Answering Questions

I am new to perl and want to get a little better understanding of debugging code in perl. I have a perl script that has questions to be answered like: he following PERL modules are recommended: Crypt::DES Crypt::PasswdMD5 IO::Pty Net::Write::Layer2 String::CRC32 Attempt to install... (0 Replies)
Discussion started by: metallica1973
0 Replies

7. UNIX for Dummies Questions & Answers

How to Send AT Commands to mgetty?

Hello All, I've been working on something which requires a dialup USB Modem. I have been using minicom with success entering "AT Commands" directly into the terminal window that shows after running the minicom command. I had already configured the modem through minicom and was able to... (2 Replies)
Discussion started by: mrm5102
2 Replies

8. SuSE

Starting mgetty with systemd?

Hello All, OS: openSUSE 13.1 (Bottle) (armv7hl) uname -a: Linux linux.site 3.14.14-cubox-i #1 SMP Sat Sep 13 03:48:24 UTC 2014 armv7l armv7l armv7l GNU/Linux So this is my first attempt at starting a service at boot with systemd. I've done this with inittab in the past, but I'm having... (0 Replies)
Discussion started by: mrm5102
0 Replies
mgetty(8)						       mgetty+sendfax manual							 mgetty(8)

NAME
mgetty - smart modem getty SYNOPSIS
mgetty [options] ttydevice [gettydefs] DESCRIPTION
Mgetty is a ``smart'' getty replacement, designed to be used with hayes compatible data and data/fax modems. Mgetty knows about modem ini- tialization, manual modem answering (so your modem doesn't answer if the machine isn't ready), UUCP locking (so you can use the same device for dial-in and dial-out). Mgetty provides very extensive logging facilities. This manpage doesn't try to detail mgetty setup in detail, it just lists the most important options. For detailed instructions, see the info file mgetty.info (mgetty.texi). OPTIONS
-k <space> Tells mgetty to leave <space> kbytes free on disk when receiving a fax. -x <debug level> Use the given level of verbosity for logging - 0 means no logging, 9 is really noisy. The log file is usually /tmp/log_mg.<device> -s <speed> Set the port speed to use, e.g. "-s 19200". -r Tells mgetty that it is running on a direct line. UUCP locking is done, but no modem initialization whatsoever. -p <login prompt> Use the given string to prompt users for their login names. Various tokens are allowed in this string. These tokens are: @ for the system name, , , g, , v, f, for newline, carriage return, bell, backspace, vertical tab, form feed, and tab, respec- tively. P and L will expand to the tty name ("ttyS0"). Y will give the Caller ID, I the "CONNECT foobar" string returned by the modem, and S will output the port speed. s, m, V, R represent the operating system, the hardware name, the OS version, the OS release. N and U give the number of users currently logged in. C will be changed into the result of ctime(), and D and T will output the date and time, respectively. Finally, <digit> will use digit as octal/decimal/hexadecimal representation of the charac- ter to follow. The default prompt is specified at compile time. -n # Tells mgetty to pick up the phone after the #th RING. Default is 1. -R <t> Tells mgetty to go into "ringback" (aka "ring-twice") mode. That means: the first call is never answered, instead the caller has to hang up after the phone RINGs, wait 30 seconds, and then call again in the next <t> seconds for mgetty to pick up. If no call comes, mgetty will exit. I do not really recommend using this, better get a second phone line for the modem. -i <issue file> Output <issue file> instead of /etc/issue before prompting for the user name. The same token substitutions as for the the login prompt are done in this file. -D Tells mgetty that the modem is to be treated as a DATA modem, no fax initalization is attempted. -F Tells mgetty that DATA calls are not allowed and the modem should be set to Fax-Only. -C <class> Tells mgetty how to treat the modem. Possible values for <class> are "auto" (default, try to find out whether the modem supports fax), "cls2" (use the class 2 fax command set, even if the modem supports class 2.0), "c2.0" (use the class 2.0 fax command set), "data" (data only, exactly as the -D switch). -S <g3 file> If a call comes in and requests fax polling, mgetty will send the named file. Note: not all fax modems support poll sending. -I <fax id> Use the given fax station ID for fax identification. Not used for data modems. -b Open the port in blocking mode. Best used in combination with "-r". This is the default if mgetty is called as getty. You may want to use this if you want to make use of the two-device / kernel-locking scheme of the Linux and SunOS operating systems (/dev/ttyS.. and /dev/cua..). I do not recommend it, it's just include for completeness, and to be able to use mgetty as a full-featured getty replacement. -a Use autobauding. That is, after a connection is made, mgetty parses the "CONNECT foo" response code of the modem and sets the port speed to the first integer found after the "CONNECT" string, "foo" in this example. You need this if your modem insist on changing its DTE speed to match the line speed. I recommend against using it, better leave the port speed locked at a fixed value. The fea- ture is included because there exist old modems that cannot use a fixed (locked) port speed. -m 'expect send ...' Set the "chat sequence" that is used to initialize the modem. For an empty expect part, use empty double quotes (""). Since the sequence contains spaces, you have to enclose all of it in single quotes(''). Example: mgetty -m '"" ATH0 OK' FILES
/etc/mgetty/mgetty.config Main configuration file. /etc/mgetty/login.config controls whether (and when) mgetty should call some other program for user login instead of /bin/login. How this is done is explained in this file. /etc/mgetty/dialin.config controls acceptance/denial of incoming calls based on the caller's number. Available only if you have "caller ID" and your modem supports it. /etc/nologin.ttyxx controls whether mgetty should pick up the phone upon incoming calls. If the file exists, calls are completely ignored. You can use this, for example, to stop mgetty during day time, and let it pick up at night only, by creating and removing /etc/nologin.ttyxx via the cron program at the appropriate time. /etc/issue will be printed after a connection is established, and before the with the '-i' option. /var/log/mgetty/mg_ttyxx.log Debug log file, see below. DIAGNOSTICS
If mgetty doesn't work the way it should, the main source of diagnostic data is the log file. It can be found in "/var/log/mgetty/mg_ttyxx.log" (for the mgetty process handling "ttyxx"). If it doesn't contain enough details, enhance the log level with the '-x' option to mgetty, e.g. "-x 5". Many of the common problems and solutions are discussed in the mgetty manual and the FAQ. Please see the WWW page at http://alpha.gree- nie.net/mgetty/ for both. BUGS
Not all of mgetty configuration can be done at run-time yet. Things like flow control and file paths (log file / lock file) have to be con- figured by changing the source and recompiling. Users never read manuals... SEE ALSO
g32pbm(1), sendfax(8), getty(8), mgettydefs(4), mgetty.info AUTHOR
mgetty is Copyright (C) 1993 by Gert Doering, <gert@greenie.muc.de>. greenie 27 Oct 93 - 21 Jul 98 mgetty(8)
All times are GMT -4. The time now is 02:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy