[asterisk-r2] Error on ztcfg using libopenr2

Norman Schmidt norman at omegatecnologia.com
Tue Mar 17 10:53:19 CDT 2009


http://pastebin.com/m403adb6b

> ----- Mensagem Original -----
> Assunto: Re: [asterisk-r2] Error on ztcfg using libopenr2
> De: Moises Silva <moises.silva at gmail.com>
>  Para: "Norman Schmidt"
<norman at omegatecnologia.com>,asterisk-r2 at lists.digium.com
> Data: 17/03/2009 12:42
> 
> 
> <br />
> Norman Schmidt Jr<br />
> <br />
> Omega | Ditel - Solu&ccedil;&otilde;es que geram produtividade<br />
> <br />
> Santa Maria e Interior RS: (55) 3025.2000<br />
> Porto Alegre e Metropolitana RS: (51) 4009.7500<br />
> Caxias do Sul e Serra RS: (54) 3533.4343<br />
> Email: <a class="blue"
href="javascript:top.main.popup('/office/modules/email/send.php?mail_to=norman at omegatecnologia.com','780','580')">norman at omegatecnologia.com</a><br
/>
> <br />
> <br />
> <blockquote style="border-style: none none none solid; border-color:
-moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(34, 67,
127); border-width: 0pt 0pt 0pt 2px; margin: 0px 0px 0px 5px; padding: 0px
0px 0px 5px;"><font face="verdana" size="2">----- Mensagem Original -----<br
/>
> <strong>Assunto:&nbsp;</strong>Re: [asterisk-r2] Error on ztcfg using
libopenr2<br />
> <strong>De: &nbsp;</strong>Moises Silva &lt;moises.silva at gmail.com&gt;<br
/>
> <strong> Para:&nbsp;</strong>&quot;Norman Schmidt&quot;
&lt;norman at omegatecnologia.com&gt;,asterisk-r2 at lists.digium.com<br />
> <strong>Data:&nbsp;</strong>17/03/2009 12:42<br />
> </font><br />
> <br />
> pastebin.com the output of 'cat /proc/zaptel/*'<br />
> <br />
> On Tue, Mar 17, 2009 at 11:25 AM, Norman Schmidt<br />
> &lt;norman at omegatecnologia.com&gt; wrote:<br />
> &gt; Hello friends,<br />
> &gt;<br />
> &gt; I compiled zaptel 1.4.12.1, libpri-1.4.9, openr2 1.1.0, Asterisk
1.4.21.2,<br />
> &gt; using the 1.4.21 openR2 patch on Asterisk. Im trying to configure a
test<br />
> &gt; server for openr2 using a 2xE1 digium board with a cross E1 cable:<br
/>
> &gt;<br />
> &gt; My zaptel.conf:<br />
> &gt; span=1,1,0,cas,hdb3<br />
> &gt; span=2,0,0,cas,hdb3<br />
> &gt; cas=1-15:1101<br />
> &gt; cas=17-31:1101<br />
> &gt; cas=32-46:1101<br />
> &gt; cas=48-62:1101<br />
> &gt;<br />
> &gt; My zapata.conf:<br />
> &gt; [channels]<br />
> &gt; usecallerid=yes<br />
> &gt; callwaiting=yes<br />
> &gt; usecallingpres=yes<br />
> &gt; callwaitingcallerid=yes<br />
> &gt; threewaycalling=yes<br />
> &gt; transfer=yes<br />
> &gt; canpark=yes<br />
> &gt; cancallforward=yes<br />
> &gt; callreturn=yes<br />
> &gt; echocancel=yes<br />
> &gt; echotrainning=yes<br />
> &gt; echocancelwhenbridged=yes<br />
> &gt; signalling=mfcr2<br />
> &gt; mfcr2_variant=br<br />
> &gt; mfcr2_get_ani_first=no<br />
> &gt; mfcr2_max_ani=20<br />
> &gt; mfcr2_max_dnis=20<br />
> &gt; mfcr2_category=national_subscriber<br />
> &gt; mfcr2_logdir=span1<br />
> &gt; mfcr2_logging=all<br />
> &gt; group=1<br />
> &gt; callgroup=1<br />
> &gt; pickupgroup=1<br />
> &gt; callerid=asreceived<br />
> &gt; context=from-pstn<br />
> &gt; channel =&gt; 1-15,17-31<br />
> &gt;<br />
> &gt; The zaptel and board modules are loaded, the board got its IRQ,
everything<br />
> &gt; seems fine on dmesg (modules output), but when I try to run ztcfg
-vvvvvf,<br />
> &gt; it bombs out with &quot;ZT_SPANCONFIG failed on span 1: Invalid
argument (22)&quot;.<br />
> &gt;<br />
> &gt; I tried to use r2test creating a testr2.conf :<br />
> &gt; variant=br<br />
> &gt; caller=no<br />
> &gt; maxani=10<br />
> &gt; maxdnis=4<br />
> &gt; channel=1-15<br />
> &gt;<br />
> &gt; and:<br />
> &gt; r2test -c testr2.conf<br />
> &gt;<br />
> &gt; also ends in a &quot;SYSTEM CALL FAILED&quot; error:<br />
> &gt;<br />
> &gt; found R2 variant = br<br />
> &gt; found MAX ANI= 10<br />
> &gt; found MAX DNIS= 4<br />
> &gt; found channel range = 1-15<br />
> &gt; failed to create R2 channel 1: System call failed<br />
> &gt; Aborting test.<br />
> &gt;<br />
> &gt; Did I compiled something wrong? I followed &quot;The OpenR2 Guide
&ndash; January<br />
> &gt; 2009 - Version 0.1&quot; from Mois&eacute;s Silva to do it.<br />
> &gt;<br />
> &gt;<br />
> &gt;<br />
> &gt; _______________________________________________<br />
> &gt; --Bandwidth and Colocation Provided by
http://www.api-digital.com--<br />
> &gt;<br />
> &gt; asterisk-r2 mailing list<br />
> &gt; To UNSUBSCRIBE or update options visit:<br />
> &gt; &nbsp; http://lists.digium.com/mailman/listinfo/asterisk-r2<br />
> <br />
> <br />
> <br />
> -- <br />
> &quot;I do not agree with what you have to say, but I&rsquo;ll defend to
the<br />
> death your right to say it.&quot; Voltaire<br />
> </blockquote>pastebin.com the output of 'cat /proc/zaptel/*'
> 
> On Tue, Mar 17, 2009 at 11:25 AM, Norman Schmidt
> <norman at omegatecnologia.com> wrote:
> > Hello friends,
> >
> > I compiled zaptel 1.4.12.1, libpri-1.4.9, openr2 1.1.0, Asterisk
1.4.21.2,
> > using the 1.4.21 openR2 patch on Asterisk. Im trying to configure a test
> > server for openr2 using a 2xE1 digium board with a cross E1 cable:
> >
> > My zaptel.conf:
> > span=1,1,0,cas,hdb3
> > span=2,0,0,cas,hdb3
> > cas=1-15:1101
> > cas=17-31:1101
> > cas=32-46:1101
> > cas=48-62:1101
> >
> > My zapata.conf:
> > [channels]
> > usecallerid=yes
> > callwaiting=yes
> > usecallingpres=yes
> > callwaitingcallerid=yes
> > threewaycalling=yes
> > transfer=yes
> > canpark=yes
> > cancallforward=yes
> > callreturn=yes
> > echocancel=yes
> > echotrainning=yes
> > echocancelwhenbridged=yes
> > signalling=mfcr2
> > mfcr2_variant=br
> > mfcr2_get_ani_first=no
> > mfcr2_max_ani=20
> > mfcr2_max_dnis=20
> > mfcr2_category=national_subscriber
> > mfcr2_logdir=span1
> > mfcr2_logging=all
> > group=1
> > callgroup=1
> > pickupgroup=1
> > callerid=asreceived
> > context=from-pstn
> > channel => 1-15,17-31
> >
> > The zaptel and board modules are loaded, the board got its IRQ,
everything
> > seems fine on dmesg (modules output), but when I try to run ztcfg
-vvvvvf,
> > it bombs out with "ZT_SPANCONFIG failed on span 1: Invalid argument
(22)".
> >
> > I tried to use r2test creating a testr2.conf :
> > variant=br
> > caller=no
> > maxani=10
> > maxdnis=4
> > channel=1-15
> >
> > and:
> > r2test -c testr2.conf
> >
> > also ends in a "SYSTEM CALL FAILED" error:
> >
> > found R2 variant = br
> > found MAX ANI= 10
> > found MAX DNIS= 4
> > found channel range = 1-15
> > failed to create R2 channel 1: System call failed
> > Aborting test.
> >
> > Did I compiled something wrong? I followed "The OpenR2 Guide – January
> > 2009 - Version 0.1" from Moisés Silva to do it.
> >
> >
> >
> > _______________________________________________
> > --Bandwidth and Colocation Provided by http://www.api-digital.com--
> >
> > asterisk-r2 mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-r2
> 
> 
> 
> -- 
> "I do not agree with what you have to say, but I’ll defend to the
> death your right to say it." Voltaire





More information about the asterisk-r2 mailing list