Home > Техника > Asterisk NCS patch

Asterisk NCS patch

март 28th, 2008

Disclaimer: I’m not a programmer! If you decide to use this, use it at your own risk!

For a couple of days I’ve been trying to find a working patch for Asterisk PBX, that would allow me to use an eMTA device (which is essentially a cable modem with voice terminal adapter), provisioned according to [some of] the PacketCable specifications—i.e. with MGCP/NCS. So, I’ve found a patch on the Net, written by Jason Burton in 2006.

Disclaimer: I’m not a programmer! If you decide to use this, use it at your own risk!

When I tried to apply it on a vanilla 1.4.18 Asterisk source tree, it spew a lot of rejects, which then I kind of fixed. So, here you can find the patch itself.

Apply it like this:

cd /usr/src/asterisk-1.4.18/channels/
patch –dry-run -p1 < [full path to/]ncs-packetcable-minus273.patch

Look carefully if there are any rejects. If not:

patch -p1 < [full path to/]ncs-packetcable-minus273.patch

Then, of course, you have to recompile and configure asterisk to accept eMTA devices.

Disclaimer: I’m not a programmer! If you decide to use this, use it at your own risk!

Please, note, that I’m not responsible for any problems, that could arise after applying this patch!

Edit: You have to enter ncs=1 in every endpoint’s configuration in your mgcp.conf. E.g.:

[192.168.200.2]
host=192.168.200.2
dtmfmode=rfc2833
ncs=1
nat=no
slowsequence=yes
canreinvite=yes
wcardep=aaln/*
context = eMTAs
immediate=no
line => aaln/1
context = eMTAs
immediate=no
line => aaln/2

Техника , , ,

  1. Duarte Alencastre
    април 3rd, 2008 at 19:26 | #1

    Хелло,

    Did you have any success getting your eMTAs to talk to asterisk ?
    I’ve applied your patch, but when the eMTA tries to talk to the
    RQNT, DLCX, CRCX requests from cms all get an „incompatible
    protocol version“ (528) response from the eMTA.

    Any suggestions?

    As an aside, comments are refused if they don’t include cyrillic
    characters.

    Thanks in advance,
    Duarte

  2. април 4th, 2008 at 10:04 | #2

    Yes, I’m using an anti-spam protection, which includes mandatory cyrillic text in comments. Have turned it off now, though.

    As for the eMTAs—yes, I have currently around 20 devices working. You have to include „ncs=1″ in every endpoint’s entry in mgcp.conf. Sorry, I forgot to mention that.

  3. Francisco José
    юни 18th, 2008 at 20:27 | #3

    Hi.
    Thanks for the patch.
    I have 700 Arris e-MTAs working with this patch.

  4. юни 19th, 2008 at 10:12 | #4

    Hey, that’s great, Fransisco! But you should thank to the unnamed (as it seems) real author, who posted it on asterisk-{users|dev}. I’ve just cleaned it up in order to apply it on recent versions of Asterisk.

  1. No trackbacks yet.