Using Cable Modems with Embedded ATAs with Asterisk
Ok here's the a challenge. I have just recieved a Motorola SBV5120 cable modem with two analog telephone ports. I didnt sign up for the cable phone service (of course) because I have my own Asterisk box. There is no configuration option on the internal modems config screens to configure these ports (at least as far as I can tell). I've searched the web and cant find any info about how to configure the ATA ports either. So I'm turning to the benovolent Asterisk gods to help me unlock this mystery. How can I can configure these ports to run with Asterisk?
Not sure how you put a screenshot on the wiki, but heres the main menu.
Configuration Manager
Status Signal Addresses Configuration Logs Help <=== menu options
This page provides information about the startup process of the Cable Modem. If there is a problem with
the startup, the word "Failed" may appear in the Status column. Should this occur, visit the Help area and
perform the Checkup procedures listed there. If the problem continues, click on the word "Failed" for more
detailed information about the failure, or call your service provider for assistance.
Task Status
Acquire Downstream Channel Done
Obtain Upstream Parameters Done
Establish IP Connectivity using DHCP Done
Establish Time Of Day Done
Transfer Operational Parameters through TFTP Done
Register Connection Done
Initialize Baseline Privacy Done
Status | Signal | Addresses | Configuration | Logs | Help
� Copyright 1997-2000
None of the settings seem to be configurable. Its more like info only.
Must be another page in their for the ATA stuff
Daniel: This cable modem's ports are configured by your cable provider, for what i know you cant configurate it by hand.
09-08-2005:
Well, this modem had appeared lately where I live too, and I've decided to take a wiff at trying to hack it. From the
documentation I couldn't gather if this a SIP device or some kind of other device. However, from the way it was provisioned
by the cable operator, I believe I can assume the following:
a. This modem is NOT a SIP enabled device.
b. This modem appears to be lacking the ability to manage it self, which most probably means that it uses MGCP as the signaling layer.
c. In order to configure it by the ISP, I had to give them the modem MAC address, which was then identified by their LDAP systems - which only strengthens point (b).
Anyone else wants to take a wiff at this one?
23-08-2005:
These modems don't use SIP. They use a special telephony service over PacketCable (google), so they're not really useful for us. Besides, they're configured through the DOCSIS configuration file that the modem gets from your ISP and you can't get between that.
24-08-2005:
This eMTA do not support SIP.
The signaling protocol used for VoIP is NCS, a MGCP variant specified by PacktCable. In fact NCS is very similar to MGCP.
As it was said, the config of the cable modem and the embebed MTA is done by the service provider. When you turn it on, it comunicates with a CMTS via DOCSIS and then it gets config files from dhcp and ftp servers. You can use a software named "Incognito" as configuration server. In most cases, Incognito sends a binary config file to the MTA (via ftp or tftp). I dont know how to generate this binary. In the lab I work, we asked Motorola to generate one for us. Incognito has other features, and using it I believe its possible to setup the MTA without using a binary config file. The purpose of the binary config file is mass configuration. Try to use the Incognito provisioning server.
Page Changes
Re: Motorola SBV5120 / NCS 1.0 / Asterisk
We are not installing a PRI until March 2007 and have stopped working on NCS 1.0 and checking for responses on this website due to other software developments. ie. Perl/SNMP Web Based Modem Diagnostics Software, Interested?. Anyhow it seems that noone has really worked on the NCS 1.0 patch for asterisk for some time and never received any responses on my comments I left at asterisk.urtho.com. I know there is 2 HOOKSTATE issues I want to fix. I purchased a small C/Unix Programming book and by looking through the chan_mgcp.c file a few times I have a grasp of what needs to be done. It is time to sit in a dark quiet room and do some experimental debugging. I should be able to figure out these problems within a month or two.
I must say incoming/outgoing calls DO work and that I'm quite pleased with the quality and functionality. I find it puzzling, however, that the sound quality is poor using Polycom 501 sip hardphones when compared to using analog handset/mta/ata combinations. Digiums TDM cards are always blamed for this degradation of quality due to the switching of digital->analog voice signals. The quality issues I'm referring o consist of hum and light echo. Using an ATA still converts analog(HANDSET)->(ATA)digital(ASTERISK)->analog(TDM) and yet I get superior quality. If someone has an answer as to why, please share it with me!
I'm starting to hypothesis that analog handsets are designed for not so perfect phone lines and thus remove a lot of the noise and light echo during the call. I'm not an electrical engineer so it beats me..
Motorola SBV5120 / NCS 1.0 / Asterisk
I have to provision a Motorola SBV4200 and a Motorola SBV5120.
I can see the DHCP flow between the CM and the DHCP server and between the eMTA and the DHCP server. At the end the eMTA doesnt ask for the configuration file to the TFTP server and therefore it doesnt get provisioned.
JASON, please can you send me the template of the config file for the Motorola and the BTIConfig compilator? I dont know how to contact you by email. I hope you read this..
Thanks a lot
Re: Motorola SBV5120 / NCS 1.0 / Asterisk
option PC-MTA.DHCP-server-1 code 1 = ip-address;
option PC-MTA.DHCP-server-2 code 2 = ip-address;
option PC-MTA.Provision-server code 3 = {integer 8, string };
- Another way to represent prov. server's address in dotted notation
- option PC-MTA.Provision-server code 3 = { integer 8, ip-address };
option PC-MTA.AS-REQ_AS-REP code 4 = { integer 32, integer 32, integer 32 };option PC-MTA.AP-REQ_AP-REP code 5 = { integer 32, integer 32, integer 32 };
option PC-MTA.Kerberos-realm code 6 = string;
option PC-MTA.TGS-util code 7 = integer 8;
option PC-MTA.Provision-timer code 8 = integer 8;
option PC-MTA.Ticket-ctrl-mask code 9 = integer 16;
option PC-MTA-122 code 122 = encapsulate PC-MTA;
option PC-MTA.DHCP-server-1 192.168.0.1;
option PC-MTA.Provision-server 0 "\006mtaprov\005myisp\003net\000";
option PC-MTA.Kerberos-realm "\005BASIC\0011\000";
Make sure that the octal escapes in Provision-server are correct with the length of the word following. For example mtaprov is 6 bytes and the octal representation of decimal 6 is 006. This is the part I was stuck on until I found information in ISC DHCP forum. For BASIC.1 Provisioning you only need to populate the 3 fields above. You need some utilities from motorola to create a working mta config file. If your wondering about the \000 octal it is used to terminate the domain name. Your modem should accept this option 160 and ACK the dhcp offer. Check out http://asterisk.urthro.net/ for asterisk packetcable packages.
Re: Motorola SBV5120 / NCS 1.0 / Asterisk
Thanks!
Motorola SBV5120 / NCS 1.0 / Asterisk
If Caller1 phones Caller2 with callwaiting; Caller2 will hear a beep; Caller1 hangs up because Caller2 doesn't answer; Both Callers hear a Busy/Conjestion tone and connections are terminated.
Caller1 is calling PSTN. During ringing Caller2 calls Caller 1, Caller 1 hears a callwaiting tone. Caller1 loses the ringing tone?? is that normal?
I've looked at the C code myself in chan_mgcp.c but the code is hard to follow. I'd rather pay someone to do it for us. Making sure that NCS works well with asterisk will allow us to generate 10K a year so I'm willing to offer some money for the development of this feature so that other small ISPs can benefit from this as well. To buy a cisco router with pri card and dsp modules it will cost 6 thousand. If I use asterisk with a pri card it will cost me 3 thousand (that includes a nice server). The money we are saving would justify using it for some code development.
If anyone needs sample DHCP server configs and a sample Motorola Config for the SBV5120 you can email me. I'll be glad to help. I might try and deploy my voip system within the next 2 months even with the buggy chan_mgcp.c. My wishlist includes SIP T.38 working for the Cisco ATA186's at remote sites and NCS 1.0 (Even without DQOS) working for Local Broadband sites. SIP Trunking to my existing PBX's is going to be a piece of cake.
The story of my last 4 weeks of late nights :)
Jason,
Couldnt reach you by email, here's the answer:
Hello Patrick
Yes I was using SIP on the THG520 and Asterisk.
There's a SIP Image from Thomson which you can use on the THG-520. You can do setup with DOCSIS-Config or with a Web-Interface. On the Web-Interface you need a password of the day and a special tool from thomson. So, config can be done only from the provider.
Sorry, since beginning of this month I'm not working anymore in the company who integrate the THG-520 in networks and I have no access anymore to firmware or similar.
But the people at thomson can help you maybe?
Hope this helps a little bit.
Greetings
Peter
Re: SIP capable cable modems
I have a Thomson THG520 at home now. How could I do to use its SIP features?
I see that you were playing with a sip image on that modem. Any more info on that topic?
Thank you!
Patrick