<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi Chris,<br>
    <br>
    correct vars defines for ANI/DNIS lengths<br>
    is<br>
    <br>
    mfcr2_max_ani<br>
    mfcr2_max_dnis<br>
    <div class="moz-signature"><br>
      Oscar<br>
    </div>
    <br>
    On 07/27/2011 07:37 PM, Chris Twombly wrote:
    <blockquote
cite="mid:CACoQzf7=7cFkWkN=XimQF0pLe9GkBcKnBKqajM2SfbcGkOXiJw@mail.gmail.com"
      type="cite">Hello all,
      <div><br>
      </div>
      <div>I'm new to libopenr2 and I'm currently having a problem where
        changes made to the variable mfcr2_max_dnis inside
        chan_dahdi.conf are not taking effect.  The length of the DNIS
        that I would like Asterisk to receive for an incoming call from
        the PSTN is 7 digits.  I specify the value mfcr2_max_dnis=7
        within chan_dahdi.conf and then restart Asterisk, but this is
        unsuccessful.  The problem is the default value of 4 is used for
        mfcr2_max_dnis so Asterisk stops receiving DNIS once it hits the
        4th digit.  I have been able to get around this by modifying the
        dialing plan, but I wanted to know where in code this variable
        is declared so that I could try to modify it there?  Anyone else
        had issues with this?  </div>
      <div><br>
      </div>
      <div>As a second question, I defined the context within
        chan_dahdi.conf to originally be [incoming], but Asterisk kept
        looking for context [users], which I did not have defined.
         Again, it seems like the context variable was not taking effect
        either so I was also able to get around this by making an
        extension called [users] within extensions.conf which worked.  I
        also set the context variable to users just to be consistent.
         Any thoughts on why this is happening?  Just to make it known,
        my reset procedure for asterisk is as follows:</div>
      <div><br>
      </div>
      <div> >core stop gracefully</div>
      <div> #asterisk stop</div>
      <div> asterisk -rTvvvv </div>
      <div><br>
      </div>
      <div>I am using Asterisk 1.6.2 with libopenr2 1.3.1 and the
        current DAHDI drivers (can't recall the number off the top of my
        head) with a Digium TE420 4 Span E1 card.  I appreciate any help
        and send my thanks in advance!  Below you will find my basic
        configurations:</div>
      <div><br>
      </div>
      <div><b>system.conf</b></div>
      <div><b><br>
        </b></div>
      <div>
        <div>### Span 4: TE4/0/4 "T4XXP (PCI) Card 0 Span 4" </div>
        <div>span=4,1,0,cas,hdb3</div>
        <div>cas=94-108:1101                </div>
        <div>cas=110-124:1101<span class="Apple-tab-span"
            style="white-space: pre;"> </span></div>
        <div>echocanceller=mg2,94-108,110-124</div>
      </div>
      <div><b><br>
        </b></div>
      <div><b><br>
        </b></div>
      <div><b>chan_dahdi.conf</b></div>
      <div><b><br>
        </b></div>
      <div>
        <div>;;; Span 4: TE4/0/3 "T4XXP (PCI) Card 0 Span 4" </div>
        <div><br>
        </div>
        <div>context=users</div>
        <div>signalling=mfcr2</div>
        <div>mfcr2_variant=itu </div>
        <div>mfcr2_category=national_subscriber</div>
        <div>maxani=8</div>
        <div>maxdnis=7</div>
        <div>mfcr2_mfback_timeout=-1</div>
        <div><br>
        </div>
        <div>;call logging parameters</div>
        <div>mfcr2_logdir=span4</div>
        <div>mfcr2_call_files=yes</div>
        <div>mfcr2_logging=all</div>
        <div style="font-weight: bold;"><br>
        </div>
      </div>
      <div style="font-weight: bold;"><br>
      </div>
      <div style="font-weight: bold;">extensions.conf</div>
      <div style="font-weight: bold;"><br>
      </div>
      <div>
        <div>[users]</div>
        <div>;test incoming r2 (temporary extension here)</div>
        <div>exten => _888X,1,NoOp(Call Type : Incoming CAS-MFC/R2
          from PSTN)</div>
        <div>exten => _888X,n,Dial(SIP/1000)</div>
        <div style="font-weight: bold;"><br>
        </div>
      </div>
      <div style="font-weight: bold;"><br>
      </div>
      <div>
        <div><br>
        </div>
        Chris Twombly<br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
asterisk-r2 mailing list
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-r2">http://lists.digium.com/mailman/listinfo/asterisk-r2</a></pre>
    </blockquote>
  </body>
</html>