Asterisk with MFC/R2 in chan_zap

I’ve been working lately in a library for the MFC/R2 telephony signalling. I named this library “OpenR2”. My goal is to include support for this signaling in the Asterisk project and eventually in FreeSwitch if possible. I just created a new issue in the bugtracker, that is the first patch I have to give MFC/R2 support in the Asterisk channel driver chan_zap. Hopefully this will eventually be the standard MFC/R2 implementation for Asterisk and finally it will “just work”.

If you are from the many people with R2 issues in Mexico or other country, you should consider to give this thing a try.

The code of the library is LGPL and is available temporarily to download from http://www.moythreads.com/openr2-april21.tar.gz.

I am in the process of getting an SVN account and will post later the link.

Patch for chan_zap: http://www.moythreads.com/chan_zap-mfr2.patch

All you have to do is download Asterisk from this branch: http://svn.digium.com/svn/asterisk/team/markster/mfr2

Then apply the patch. You will also need zaptel from this branch: http://svn.digium.com/svn/zaptel/branches/1.4

After applying the patch, please run ./bootstrap.sh in the Asterisk root directory. Then ./configure –prefix=/usr –with-openr2=/usr

Please report feedback in the bugtracker or contact me via e-mail or IM. My user at gmail it’s quite easy to remember: moises.silva

This entry was posted in asterisk, linux. Bookmark the permalink.

5 Responses to Asterisk with MFC/R2 in chan_zap

  1. moy says:

    sorry, there is not much I can do, MFC/R2 has NOTHING to do with the IP phones configuration, your problem must exist in sip.conf or iax.conf or whichever protocol you are using. Try asterisk-users and voip-info.org

  2. karolina says:

    hi,
    I read http://bugs.digium.com/view.php?id=12509, and I did some changes in my configurations, but I have the same problem my IP Phone does not register in asterisk. Could you help me, please?

    My configuration is:

    sip.conf
    [general]
    language=es
    context=default
    bindport=8060
    bindaddr=0.0.0.0
    srvlookup=yes
    jitterbuffer=yes

    [authentication]

    [8901]
    type=friend
    username=8901
    secret=xxxx
    nat=no
    qualify=yes
    canreinvite=no
    host=dynamic
    context=ldnyc
    mailbox=8901@default
    callgroup=1
    pickupgroup=1,2,3
    disallow=all
    allow=alaw

    zapata.conf
    [trunkgroups]

    [channels]
    language=es
    usecallerid=yes
    callwaiting=yes
    callwaitingcallerid=yes
    threewaycalling=yes
    transfer=yes
    cancallforward=yes
    callreturn=yes
    echocancel=yes
    echocancelwhenbridged=yes

    signalling=mfcr2
    mfcr2_variant=mx
    mfcr2_get_ani_first=no
    mfcr2_max_ani=10
    mfcr2_max_dnis=4
    mfcr2_category=national_subscriber
    mfcr2_logdir=span
    mfcr2_logging=all

    context=menu1
    group=1
    callgroup=1
    pickupgroup=1
    channel => 1-15
    channel => 17-31

    zaptel.conf
    span=1,1,0,cas,hdb3
    cas=1-15:1101
    cas=17-31:1101
    loadzone=us
    defaultzone=us

    Thanks.

  3. moy says:

    you are totally lost, you say your IP phone does not register, what does this has to do with the zapata.conf (NOT zapata.com) configuration?

    also, you are mixing up configuration keywords of my R2 implementation like mfcr2_logging but at the same time you are using unicall keywords like protocolclass=mfcr2

    If you want to test this R2 support you need to read http://bugs.digium.com/view.php?id=12509 ALL of it and understand it.

  4. karolina says:

    hello,
    I have a problem, my IP-PHONE can’t registered in asterisk. My configuration is:
    zaptel.com
    span=1,1,0,cas,hdb3
    cas=1-15:1101
    cas=17-31:1101
    loadzone=us
    defaultzone=us

    zapata.com
    [Channels]
    language=es
    context=central
    mfcr2_logging=all
    jbenable=yes
    jbforce=yes
    usecallerid=yes
    hidecallerid=no
    callwaitingcallerid=yes
    threewaycalling=yes
    transfer=yes
    cancallforward=yes
    callreturn=yes
    echocancel=32
    echocancelwhenbridged=no
    ;echotraining=no
    relaxdtmf=no
    rxgain=0
    txgain=0
    group=1
    callgroup=1
    pickupgroup=1
    immediate=no
    callerid=asreceived
    amaflags=default
    musiconhold=default
    protocolclass=mfcr2
    protocolvariant=mx,10,4
    channel => 1-15
    channel => 17-31

    Can you help me?

  5. Pingback: Blog about Digiums » Blog Archive » ‘digium’ on the web

Leave a Reply to karolina Cancel reply

Your email address will not be published. Required fields are marked *

*