Generate MTA configuration file from command line w/o packetace help ... | docsis.org

You are here

Generate MTA configuration file from command line w/o packetace help ...

2 posts / 0 new
Last post
scramatte
Generate MTA configuration file from command line w/o packetace help ...

Hello

I'm searching for linux compatible command line tool that allow to generate configuration file for MTA.
I've found some tools tha generate simple CM files but neither support Telephony options ...

I would like to use "GUPI" and put one file per mta on our TFTP server ([macaddress].bin)

I want to generate on the fly MTA files from mysql database and php with SIP required informations without
use packet ace. My idea is todo everything from a webgui ...

Thank you for you help
Regards

kwesibrunee
the docsis project at

the docsis project at sourceforge "can" create mta config files though for a complete config file some custom coding may need to be done, depends on what options you want.

you can find it here http://docsis.sourceforge.net

As an example here is a decode of a working MTA config sanitized of course

docsis -d 000000000000.bin > 000000000000.cfg
Main
{
MtaConfigDelimiter 1;
VendorSpecific
{
VendorIdentifier 0x0000ca;
GenericTLV TlvCode 69 TlvStringZero "*[0-4]x|*50x.*x.[T#]|*5[356]x.[T#]|*5[47]|*6[1359]|*6[27]x.[T#]|*7[02]x.[T#]|*7[389]|*74xx*x.[T#]|*75xx|*80*x.*x.*x.[T#]|*82x.[T#]|*8[89]|*9[02689]x.[T#]|*93|"; /* tlv length = 159 */
}
VendorSpecific
{
VendorIdentifier 0x0000ca;
GenericTLV TlvCode 69 TlvStringZero "0[T#]|011x.[T#]|101x.[T#]|1411|[0-1][2-9]xxxxxxxxx|[2-9]11|[2-9]xxxxxx[T#]|[2-9]xxxxxxxxx"; /* tlv length = 90 */
}
SnmpMibObject pktcMtaDevEnabled.0 Integer 1; /* true */
SnmpMibObject enterprises.4115.11.1.27.0 String "5555555555" ;
SnmpMibObject enterprises.4115.11.1.28.0 String "5555555555" ;
SnmpMibObject enterprises.4115.10.1.3.0 IPAddress 10.10.10.10 ;
SnmpMibObject enterprises.4115.11.1.1.1.2.1 String "5551234567" ;
SnmpMibObject enterprises.4115.11.1.1.1.3.1 String "5551234567" ;
SnmpMibObject enterprises.4115.11.1.1.1.4.1 String "5551234567" ;
SnmpMibObject enterprises.4115.11.1.1.1.5.1 String "1234567890" ;
SnmpMibObject pktcNcsEndPntConfigMWD.9 Integer 2 ;
SnmpMibObject ifAdminStatus.9 Integer 1; /* up */
SnmpMibObject enterprises.4115.11.1.3.0 String "xxx.xxx.68.4;5060" ;
SnmpMibObject enterprises.4115.11.1.4.0 Integer 0 ;
SnmpMibObject enterprises.4115.11.1.5.0 String "xxx.xxx.68.4;5060" ;
SnmpMibObject enterprises.4115.11.1.6.0 Integer 0 ;
SnmpMibObject enterprises.4115.11.1.7.0 HexString 0x04808000 ;
SnmpMibObject enterprises.4115.11.1.8.0 String "PCMU;telephone-event" ;
SnmpMibObject enterprises.4115.11.1.9.0 Integer 20 ;
MtaConfigDelimiter 255;
}

You can encode this file with the command
docsis -p 000000000000.cfg 000000000000.bin

Now understanding what each line does in the file is the real trick...

Here is what I know
VendorSpecific stuff is digit map and feature enabling (this is what our SIP provider sets)

SnmpMibObject enterprises.4115.11.1.27.0 String "5555555555" ;
SnmpMibObject enterprises.4115.11.1.28.0 String "5555555555" ;
These lines combat a bug in old sip firmware that causes calls with no caller id to be dropped the value you set these to is not important as long as it is not a real telephone number.

SnmpMibObject enterprises.4115.10.1.3.0 IPAddress 10.10.10.10 ;
Syslog server address

SnmpMibObject enterprises.4115.11.1.1.1.2.1 String "5551234567" ;
SnmpMibObject enterprises.4115.11.1.1.1.3.1 String "5551234567" ;
SnmpMibObject enterprises.4115.11.1.1.1.4.1 String "5551234567" ;
SnmpMibObject enterprises.4115.11.1.1.1.5.1 String "1234567890" ;
These are username, displayname, login, and password respectfully

SnmpMibObject pktcNcsEndPntConfigMWD.9 Integer 2 ;
SnmpMibObject ifAdminStatus.9 Integer 1; /* up */
These turn the EMTA on and set its admin status to up.

SnmpMibObject enterprises.4115.11.1.3.0 String "xxx.xxx.68.4;5060" ;
SnmpMibObject enterprises.4115.11.1.4.0 Integer 0 ;
Proxy Address:port and type 0=ipv4

SnmpMibObject enterprises.4115.11.1.5.0 String "xxx.xxx.68.4;5060" ;
SnmpMibObject enterprises.4115.11.1.6.0 Integer 0 ;
Registrar Address:port and type 0=ipv4

SnmpMibObject enterprises.4115.11.1.7.0 HexString 0x04808000 ;
SIP Feature Switch options (our sip provider set this)

SnmpMibObject enterprises.4115.11.1.8.0 String "PCMU;telephone-event" ;
provisioned codecs

SnmpMibObject enterprises.4115.11.1.9.0 Integer 20 ;
packetization rate in millisecs

Log in or register to post comments