<DIV>
<DIV>Dear Steve and other * e1r2 developers and users;</DIV>
<DIV> </DIV>
<DIV>Please allow me for relatively a long post.</DIV>
<DIV> </DIV>
<DIV>Thanks to Steve's work, I downloaded libunicall, spandsp and libmfcr2 and it seems those libraries are successfully compiled.</DIV>
<DIV> </DIV>
<DIV>Now I faced trouble compiling Asterisk. I have installed and operated many * boxes under T1/PRI and analog environment, but it is first time to install * for e1r2. I would like to ask this community's help.<BR></DIV>
<DIV>1. ztcfg seems to have succeeded. I ran zttool and monitor the status of live e1 (from Telefonica/BR), and it seems the line is physically up. zaptel.conf is as in <text1>.</DIV>
<DIV><BR>2. testcall application is also compiled but it does not seem to take nor generate calls. The testcall.c paramters are defined as in <text2> and the runtime messages are like <text3>. If I make incoming call on the span then "Unexpected CAS bit pattern" message is generated as at the bottom of the log.<BR><BR>3. Giving up the testcall, then following the instruction on opencall.org page, I have copied chan_unicall.c and patched the Makefile appropriately (the downloaded patch file did not work with current * CVS sources, though). While compiling several errors are reported and the compilation interrupted like in <text4>.</DIV>
<DIV> </DIV>
<DIV>4. My environment is as follows:<BR>RH9 on P4/3G</DIV>
<DIV>Asterisk (tested CVS both latest and 1.0 stable)</DIV>
<DIV>libunicall-0.0.1 (tested a, c, and d)</DIV>
<DIV>spandsp-0.0.2 (tested pre3 and pre4)</DIV>
<DIV>
<DIV> (libtiff 3.6.1 (compiled from source))</DIV>libmfcr2-0.0.1 (tested a, c, and d against the same level of libunicall)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Have I missed something to include? Any suggestion is appreciated.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Hosin</DIV>
<DIV>-------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV>
<DIV>-------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV><text1></DIV>
<DIV>span=1,1,0,cas,hdb3<BR>cas=1-15:1101<BR>cas=17-31:1101</DIV>
<DIV>loadzone=us</DIV>
<DIV>defaultzone=us<BR></DIV></DIV>
<DIV>
<DIV>-------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV><text2></DIV></DIV>
<DIV>#define PROTOCOL_CLASS "mfcr2"<BR>#define PROTOCOL_VARIANT "br,20,20"<BR>#define PROTOCOL_END UC_MODE_CPE</DIV>
<DIV>#define BASE_ANI 3372xxxx</DIV>
<DIV>#define BASE_DNIS 9538xxxx</DIV>
<DIV>#define FIRST_TRUNK_CIRCUIT 1<BR>#define NUM_TRUNKS 31<BR>#define FIRST_OG_TRUNK 0<BR>#define NUM_OG_TRUNKS 2</DIV>
<DIV> </DIV>
<DIV>-------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV><text2></DIV>
<DIV> </DIV>
<DIV>[root@localhost libunicall]# ./testcall<BR>0 0 2 1024 -1 -1<BR>0 0 4 160 -1 -1<BR>Thread for channel 0<BR>Loading protocol mfcr2<BR>2004/10/29 23:40:19 Chan 1: mfcr2_Unblock()<BR>2004/10/29 23:40:19 Chan 1: Tx bits 0x9 [1/40000000/ 0/ 0]<BR>0 0 2 1024 -1 -1<BR>0 0 4 160 -1 -1<BR>Thread for channel 1<BR></DIV>
<DIV>(snip)</DIV>
<DIV> </DIV>
<DIV>Chan 1: -- Protocol failure on channel 0, cause (32773) Unexpected CAS bit pattern<BR>Chan 1: -- Protocol failure on channel 0, cause (32773) Unexpected CAS bit pattern<BR>Chan 2: -- Protocol failure on channel 0, cause (32773) Unexpected CAS bit pattern<BR>Chan 2: -- Protocol failure on channel 0, cause (32773) Unexpected CAS bit pattern<BR></DIV>
<DIV>(snip)</DIV>
<DIV> </DIV>
<DIV>Chan 32: -- Protocol failure on channel 0, cause (32773) Unexpected CAS bit pattern<BR>Chan 32: -- Protocol failure on channel 0, cause (32773) Unexpected CAS bit pattern<BR>2004/10/29 23:40:19 Chan 1: local_unblocking_expired<BR>Chan 1: -- Local end unblocked! :-)<BR>Chan 1: -- Local end unblocked! :-)<BR>2004/10/29 23:40:19 Chan 2: local_unblocking_expired<BR>Chan 2: -- Local end unblocked! :-)<BR>Chan 2: -- Local end unblocked! :-)<BR></DIV>
<DIV>(snip)</DIV>
<DIV> </DIV>
<DIV>2004/10/29 23:40:19 Chan 32: local_unblocking_expired<BR>Chan 32: -- Local end unblocked! :-)<BR>Chan 32: -- Local end unblocked! :-)<BR>Main thread</DIV>
<DIV> </DIV>
<DIV>
<DIV>(snip)</DIV></DIV>
<DIV> </DIV>
<DIV>Main thread<BR>2004/10/30 00:11:31 Chan 1: Rx bits 0x3 [1/40000000/ 0/ 0]<BR>2004/10/30 00:11:31 Chan 1: R2 prot. err. [1/40000000/ 0/ 0] cause 32773<BR>2004/10/30 00:11:31 Chan 1: Tx bits 0x9 [1/40000000/ 0/ 0]<BR>Chan 1: -- Protocol failure on channel 0, cause (32773) Unexpected CAS bit pattern<BR>Chan 1: -- Protocol failure on channel 0, cause (32773) Unexpected CAS bit pattern<BR>Main thread<BR>2004/10/30 00:11:39 Chan 2: Rx bits 0x3 [1/40000000/ 0/ 0]<BR>2004/10/30 00:11:39 Chan 2: R2 prot. err. [1/40000000/ 0/ 0] cause 32773<BR>2004/10/30 00:11:39 Chan 2: Tx bits 0x9 [1/40000000/ 0/ 0]<BR>Chan 2: -- Protocol failure on channel 0, cause (32773) Unexpected CAS bit pattern<BR>Chan 2: -- Protocol failure on channel 0, cause (32773)
Unexpected CAS bit pattern<BR>Main thread<BR>Main thread<BR>2004/10/30 00:11:47 Chan 3: Rx bits 0x3 [1/40000000/ 0/ 0]<BR>2004/10/30 00:11:47 Chan 3: R2 prot. err. [1/40000000/ 0/ 0] cause 32773<BR>2004/10/30 00:11:47 Chan 3: Tx bits 0x9 [1/40000000/ 0/ 0]<BR>Chan 3: -- Protocol failure on channel 0, cause (32773) Unexpected CAS bit pattern<BR>Chan 3: -- Protocol failure on channel 0, cause (32773) Unexpected CAS bit pattern<BR>Main thread<BR>Main thread<BR></DIV>
<DIV>
<DIV>-------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV>
<DIV><text3></DIV>
<DIV>.........(snip)</DIV>
<DIV>gcc -shared -Xlinker -x -o chan_oss.so chan_oss.o<BR>gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT<BR> -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS -DASTERISK_VERSION=\"CVS-HEAD-10/09/04-06:16:40\" -DINSTALL_PR<BR>EFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN -Wno-missing-prototypes -Wno-missing-declarations -DZAPATA_PRI -DIAX_TRUNKING -DCRYPTO -fPIC -c -o chan_phone.o chan_phone.c<BR>gcc -shared -Xlinker -x -o chan_phone.so chan_phone.o<BR>gcc -c -o
chan_unicall.o chan_unicall.c<BR>In file included from chan_unicall.c:18:<BR>/usr/include/asterisk/lock.h: In function `ast_mutex_init':<BR>/usr/include/asterisk/lock.h:311: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)<BR>/usr/include/asterisk/lock.h:311: (Each undeclared identifier is reported only once<BR>/usr/include/asterisk/lock.h:311: for each function it appears in.)<BR>chan_unicall.c: In function `unicall_call':<BR>chan_unicall.c:939: structure has no member named `callerid'<BR>chan_unicall.c:941: structure has no member named `callerid'<BR>chan_unicall.c: In function `unicall_hangup':<BR>chan_unicall.c:1171: structure has no member named `bridge'<BR>chan_unicall.c:1172: structure has no member named `bridge'<BR>chan_unicall.c:1203: structure has no member named `bridge'<BR>chan_unicall.c:1204: structure has no member named `bridge'<BR>chan_unicall.c:1222: structure has no member named `bridge'<BR>chan_unicall.c:1223: structure has no member named
`bridge'<BR>chan_unicall.c: In function `unicall_read':<BR>chan_unicall.c:2020: structure has no member named `callerid'<BR>chan_unicall.c:2029: structure has no member named `callerid'<BR>chan_unicall.c:2174: structure has no member named `callerid'<BR>chan_unicall.c: In function `unicall_new':<BR>chan_unicall.c:2512: structure has no member named `callerid'<BR>chan_unicall.c:2513: structure has no member named `ani'<BR>chan_unicall.c:2517: structure has no member named `rdnis'<BR>chan_unicall.c: In function `handle_uc_event':<BR>chan_unicall.c:2612: structure has no member named `callerid'<BR>chan_unicall.c:2613: structure has no member named `ani'<BR>chan_unicall.c: In function `do_monitor':<BR>chan_unicall.c:3054: too few arguments to function `ast_app_has_voicemail'<BR>chan_unicall.c: In function `load_module':<BR>chan_unicall.c:4188: warning: passing arg 4 of `ast_channel_register' from incompatible pointer type<BR>chan_unicall.c:4196: warning: passing arg 4 of
`ast_channel_register' from incompatible pointer type<BR>make[1]: *** [chan_unicall.o] Error 1<BR>make[1]: Leaving directory `/usr/src/asterisk/channels'<BR>make: *** [subdirs] Error 1<BR>
<DIV>-------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV> </DIV></DIV></DIV></DIV></DIV><p>
                <hr size=1>Do you Yahoo!?<br>
Express yourself with Y! Messenger! Free. <a
href="http://us.rd.yahoo.com/mail_us/taglines/msgr/evt=26089/*http://messenger.yahoo.com">Download now</a>.