Mgetty Not Answering when Calling from Outside


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mgetty Not Answering when Calling from Outside
# 1  
Old 12-11-2014
Mgetty Not Answering when Calling from Outside

Hello All,

mgetty Version: 1.1.36
OS: OpenSuSE 13.1 (armv7l)
Modem: Zoom 56K USB Modem Model 3095

So I've been playing with mgetty for weeks now testing dialing into the USB modem from another PC using the same modem and connecting
using minicom (*minicom ---dials to---> mgetty). I had to recompile mgetty from source so I could enable support for the dialin.config file
which tells mgetty what calls to answer using the Caller-ID.

Internal Testing:
The testing I was doing was internal using a Cisco ATA 186 with 2 phone lines (*one to my laptop and one to the PC running mgetty). Since these
tests were internal the Caller-ID was showing up as 4 digit extensions. Which seemed to work fine. If I put the extension my laptop was using
inside dialin.config it would ONLY issue a CONNECT to my laptop' extension and I could remotely login to that PC over dialup.

External Testing:
Now for External testing, i.e. where the call actually leaves the building in order to reach the PC running mgetty...
What I did was I added the full external Phone Number Mask to the dialin.config file for what my laptop will display after it leaves my building. I restarted
mgetty to take the new config and now when I dial to mgetty it is no longer accepting my call and mgetty is saying the Caller-ID is "none".

I know that the Caller-ID is displaying correctly because before the phone line goes into the USB modem it is attached to a splitter and the other
end is connected to a dumb phone with Caller-ID on it. So when I dial the mgetty PC I can see mgetty is RINGING in the log and that the dumb phone
is displaying the Caller-ID information... So I'm really confused as to why the Caller-ID is showing as 'none' when there is a phone number present for
my outbound call.

Thinking that maybe the issue was with the External Phone number mask that gets assigned when it leaves my building, I added my cell phone
number to dialin.config and called the mgetty PC from my cell, and that also displayed in the mgetty log as 'none'...

Anybody have any idea what could be going on here... I'm really confused why it works for 4-digit extension, but not a full 10-digit phone number?

ANY thoughts or suggestions AT ALL would be greatly appreciated!

Thanks in Advance,
Matt
# 2  
Old 12-11-2014
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? Is the dumb phone after the splitter with the usb-modem? Meaning that you can pick up the dumb phone and answer the outside call?

Last edited by blackrageous; 12-11-2014 at 05:02 PM..
This User Gave Thanks to blackrageous For This Post:
# 3  
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
# 4  
Old 12-15-2014
********* ANOTHER UPDATE *********

If you remember what I said above, that the Zoom Modem wasn't working with mgetty and Caller-ID when coming from outside the building, but the TrendNET
modem was working for that...

If I check /var/log/messages when I connect the USB modems, which by the way BOTH modems look the EXACT same, except one is white and the other
is black. Other than that, and the stickers on the modems, they basically look like the exact same modem...

Here is "/var/log/messages" when connecting each modem:
Code:
Zoom Modem:
    2014-12-12T16:24:05.583126-05:00 CuBox-ExtonHQ kernel: [  4839.360245] usb 2-1.4: new full-speed USB device number 11 using  ci_hdrc
    2014-12-12T16:24:05.648151-05:00 CuBox-ExtonHQ kernel: [ 4839.425279] usb 2-1.4: device descriptor read/64, error -32
    2014-12-12T16:24:05.812072-05:00 CuBox-ExtonHQ kernel: [ 4839.589253] usb 2-1.4: device descriptor read/64, error -32
    2014-12-12T16:24:05.975006-05:00 CuBox-ExtonHQ kernel: [  4839.752205] usb 2-1.4: new full-speed USB device number 12 using  ci_hdrc
    2014-12-12T16:24:08.516192-05:00 CuBox-ExtonHQ kernel: [  4842.293374] usb 2-1.4: New USB device found, idVendor=0803,  idProduct=3095
    2014-12-12T16:24:08.516274-05:00 CuBox-ExtonHQ kernel: [  4842.293407] usb 2-1.4: New USB device strings: Mfr=1, Product=2,  SerialNumber=3
    2014-12-12T16:24:08.516295-05:00 CuBox-ExtonHQ kernel: [ 4842.293428] usb 2-1.4: Product: USB Modem
    2014-12-12T16:24:08.516308-05:00 CuBox-ExtonHQ kernel: [ 4842.293447] usb 2-1.4: Manufacturer: Conexant
    2014-12-12T16:24:08.516320-05:00 CuBox-ExtonHQ kernel: [ 4842.293464] usb 2-1.4: SerialNumber: 24680246
    2014-12-12T16:24:08.525119-05:00 CuBox-ExtonHQ kernel: [ 4842.302398] cdc_acm 2-1.4:1.0: ttyACM0: USB ACM device
    2014-12-12T16:24:08.552706-05:00 CuBox-ExtonHQ mtp-probe: checking  bus 2, device 12:  /sys/devices/soc0/soc.1/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb2/2-1/2-1.4
    2014-12-12T16:24:08.555742-05:00 CuBox-ExtonHQ mtp-probe: bus: 2, device: 12 was not an MTP device
    2014-12-12T16:24:12.524584-05:00 CuBox-ExtonHQ ModemManager[406]:  <info>  Creating modem with plugin 'Generic' and '1' ports
    2014-12-12T16:24:12.528150-05:00 CuBox-ExtonHQ ModemManager[406]:  <info>  Modem for device at  '/sys/devices/soc0/soc.1/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb2/2-1/2-1.4'  successfully created
    2014-12-12T16:24:12.614658-05:00 CuBox-ExtonHQ ModemManager[406]:  <warn>  Modem couldn't be initialized: couldn't load current  capabilities: Failed to determine modem capabilities.


TrendNET Modem:
    2014-12-12T16:24:42.717085-05:00 CuBox-ExtonHQ kernel: [  4876.492256] usb 2-1.4: new full-speed USB device number 13 using  ci_hdrc
    2014-12-12T16:24:42.792011-05:00 CuBox-ExtonHQ kernel: [ 4876.567091] usb 2-1.4: device descriptor read/64, error -32
    2014-12-12T16:24:42.956010-05:00 CuBox-ExtonHQ kernel: [ 4876.731081] usb 2-1.4: device descriptor read/64, error -32
    2014-12-12T16:24:43.130084-05:00 CuBox-ExtonHQ kernel: [  4876.905131] usb 2-1.4: new full-speed USB device number 14 using  ci_hdrc
    2014-12-12T16:24:45.636100-05:00 CuBox-ExtonHQ kernel: [  4879.411123] usb 2-1.4: New USB device found, idVendor=0572,  idProduct=1329
    2014-12-12T16:24:45.636187-05:00 CuBox-ExtonHQ kernel: [  4879.411154] usb 2-1.4: New USB device strings: Mfr=1, Product=2,  SerialNumber=3
    2014-12-12T16:24:45.636208-05:00 CuBox-ExtonHQ kernel: [ 4879.411175] usb 2-1.4: Product: USB Modem
    2014-12-12T16:24:45.636223-05:00 CuBox-ExtonHQ kernel: [ 4879.411193] usb 2-1.4: Manufacturer: Conexant
    2014-12-12T16:24:45.636235-05:00 CuBox-ExtonHQ kernel: [ 4879.411211] usb 2-1.4: SerialNumber: 24680246
    2014-12-12T16:24:45.642124-05:00 CuBox-ExtonHQ kernel: [ 4879.416925] cdc_acm 2-1.4:1.0: ttyACM0: USB ACM device
    2014-12-12T16:24:45.662219-05:00 CuBox-ExtonHQ mtp-probe: checking  bus 2, device 14:  /sys/devices/soc0/soc.1/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb2/2-1/2-1.4
    2014-12-12T16:24:45.665112-05:00 CuBox-ExtonHQ mtp-probe: bus: 2, device: 14 was not an MTP device
    2014-12-12T16:24:49.622621-05:00 CuBox-ExtonHQ ModemManager[406]:  <info>  Creating modem with plugin 'Generic' and '1' ports
    2014-12-12T16:24:49.625595-05:00 CuBox-ExtonHQ ModemManager[406]:  <info>  Modem for device at  '/sys/devices/soc0/soc.1/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb2/2-1/2-1.4'  successfully created
    2014-12-12T16:24:49.716013-05:00 CuBox-ExtonHQ ModemManager[406]:  <warn>  Modem couldn't be initialized: couldn't load current  capabilities: Failed to determine modem capabilities.

According to the kernel in the above messages, it doesn't even seem like it sees any difference between the 2 modems, which is why I'm so
confused as to why one is working correctly and the other is NOT...?

It's even showing the exact same Manufacturer and Serial Number for BOTH modems, weird....

FYI: I also, got the External Caller-ID information working in Putty on Linux as well, and the only AT Command I sent to the modem was the
CID one, "AT+VCID=1" and it worked correctly. I was trying to see if Putty sends some sort of Initialization string to the modem, but nothing shows
in the log, even after setting the Logging Settings to log basically everything.

Any ideas?

Thanks Again,
Matt

Last edited by mrm5102; 12-15-2014 at 12:38 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
Login or Register to Ask a Question