<DIV>Hi All</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have problem with LIBMFCR2 for once Exchange</DIV>
<DIV>&nbsp;</DIV>
<DIV>I using Sangoma card, the firstly. my ssystem run successful with MFCR2, connected to E10 (Acatel Exchange), after that, i move connection connect to EWSD (Siemens), my system don't work. error protocol R2.</DIV>
<DIV>my system:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; Asterisk CVS 1.1.X</DIV>
<DIV>&nbsp;LibMFCR2 pre.005 and unicall-pre.005</DIV>
<DIV>&nbsp;</DIV>
<DIV>this's my setting</DIV>
<DIV>&nbsp;</DIV>
<DIV>and my setting wanpipe1.conf</DIV>
<DIV>#================================================<BR># WANPIPE1 Configuration File<BR>#================================================<BR>#<BR># Date: Mon Sep&nbsp; 5 15:37:16 GMT+7 2005<BR>#<BR># Note: This file was generated automatically<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; by /usr/sbin/wancfg program.<BR>#<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If you want to edit this file, it is<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; recommended that you use wancfg program<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to do so.<BR>#================================================<BR># Sangoma Technologies Inc.<BR>#================================================</DIV>
<DIV>[devices]<BR>wanpipe1 = WAN_AFT, Comment</DIV>
<DIV>[interfaces]<BR>w1g1 = wanpipe1, , TDM_VOICE, Comment</DIV>
<DIV>[wanpipe1]<BR>CARD_TYPE &nbsp;= AFT<BR>S514CPU &nbsp;= A<BR>CommPort &nbsp;= PRI<BR>AUTO_PCISLOT &nbsp;= YES<BR>PCISLOT &nbsp;= 2<BR>PCIBUS&nbsp; &nbsp;= 1<BR>FE_MEDIA&nbsp;= E1<BR>FE_LCODE&nbsp;= HDB3<BR>FE_FRAME&nbsp;= NCRC4<BR>FE_LINE&nbsp;&nbsp;= 1<BR>TE_CLOCK &nbsp;= NORMAL<BR>TE_REF_CLOCK &nbsp;= 0<BR>ACTIVE_CH&nbsp;= ALL<BR>TE_HIGHIMPEDANCE&nbsp;= YES<BR>FE_TXTRISTATE&nbsp;= NO<BR>MTU &nbsp;&nbsp;= 2100<BR>UDPPORT &nbsp;= 9000<BR>TTL&nbsp;&nbsp;= 255<BR>IGNORE_FRONT_END = NO<BR>TDMV_SPAN&nbsp;= 1<BR>TDMV_DCHAN&nbsp;= 0</DIV>
<DIV>[w1g1]<BR>ACTIVE_CH&nbsp;= ALL<BR>TDMV_ECHO_OFF&nbsp;= NO </DIV>
<DIV>&nbsp;</DIV>
<DIV>and my setting /etc/zaptel.conf</DIV>
<DIV>#<BR># Zaptel Configuration File<BR>#<BR># This file is parsed by the Zaptel Configurator, ztcfg<BR>#<BR>#<BR># First come the span definitions, in the format<BR># span=&lt;span num&gt;,&lt;timing&gt;,&lt;line build out (LBO)&gt;,&lt;framing&gt;,&lt;coding&gt;[,yellow]<BR># <BR># The timing parameter determines the selection of primary, secondary, and<BR># so on sync sources.&nbsp; If this span should be considered a primary sync<BR># source, then give it a value of "1".&nbsp; For a secondary, use "2", and so on.<BR># To not use this as a sync source, just use "0"<BR>#<BR># The line build-out (or LBO) is an integer, from the following table:<BR># 0: 0 db (CSU) / 0-133 feet (DSX-1)<BR># 1: 133-266 feet (DSX-1)<BR># 2: 266-399 feet (DSX-1)<BR># 3: 399-533 feet (DSX-1)<BR># 4: 533-655 feet (DSX-1)<BR># 5: -7.5db (CSU)<BR># 6: -15db (CSU)<BR># 7: -22.5db (CSU)<BR>#<BR># The framing is one of "d4" or "esf" for T1 or "cas" or "ccs" for E1<BR>#<BR># Note: "d4" could be referred to as
 "sf" or "superframe" <BR>#<BR># The coding is one of "ami" or "b8zs" for T1 or "ami" or "hdb3" for E1<BR>#<BR># E1's may have the additional keyword "crc4" to enable CRC4 checking<BR>#<BR># If the keyword "yellow" follows, yellow alarm is transmitted when no<BR># channels are open.<BR>#<BR>#span=1,0,0,esf,b8zs<BR>#span=2,1,0,esf,b8zs<BR>#span=3,0,0,ccs,hdb3,crc4</DIV>
<DIV>#span=1,0,0,cas,hdb3,crc4<BR>#span=1,0,0,cas,hdb3,crc4,yellow</DIV>
<DIV>#span=1,0,0,cas,hdb3,crc4<BR>#span=1,0,0,cas,hdb3,ncrc4</DIV>
<DIV>#cantho<BR>span=1,2,0,cas,hdb3<BR>#span=1,1,0,cas,hdb3<BR>#span=1,1,0,ccs,hdb3</DIV>
<DIV>#span=1,0,0,ccs,hdb3,yellow</DIV>
<DIV>#span=2,0,0,cas,hdb3,crc4<BR>#span=3,0,0,cas,hdb3,crc4<BR>#</DIV>
<DIV>#cas=1-15:1001<BR>#cas=17-31:1001</DIV>
<DIV>&nbsp;</DIV>
<DIV>#cas=1-15:0101<BR>#cas=17-31:0101</DIV>
<DIV>#cas=1-15:1111<BR>#cas=17-31:1111</DIV>
<DIV>#cas=1-15:1101<BR>#cas=17-31:1101</DIV>
<DIV>cas=1-15:1101<BR>cas=17-31:1101</DIV>
<DIV>#bchan=1-15<BR>#bchan=17-31</DIV>
<DIV>dchan=16</DIV>
<DIV>#alaw=1-31<BR>alaw=1-15<BR>alaw=17-31</DIV>
<DIV># Next come the dynamic span definitions, in the form:<BR># dynamic=&lt;driver&gt;,&lt;address&gt;,&lt;numchans&gt;,&lt;timing&gt;<BR>#</DIV>
<DIV>#dynamic=w1g1,w1g1/16,31,0</DIV>
<DIV># Where &lt;driver&gt; is the name of the driver (e.g. eth), &lt;address&gt; is the<BR># driver specific address (like a MAC for eth), &lt;numchans&gt; is the number<BR># of channels, and &lt;timing&gt; is a timing priority, like for a normal span.<BR># use "0" to not use this as a timing source, or prioritize them as<BR># primary, secondard, etc.&nbsp; Note that you MUST have a REAL zaptel device<BR># if you are not using external timing.<BR>#<BR># dynamic=eth,eth0/00:02:b3:35:43:9c,24,0<BR>#<BR># Next come the definitions for using the channels.&nbsp; The format is:<BR># &lt;device&gt;=&lt;channel list&gt;<BR>#<BR># Valid devices are:<BR>#<BR># "e&amp;m"&nbsp;&nbsp;&nbsp;&nbsp; : Channel(s) are signalled using E&amp;M signalling (specific<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; implementation, such as Immediate, Wink, or Feature Group D<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; are handled by the userspace
 library).<BR># "fxsls"&nbsp;&nbsp; : Channel(s) are signalled using FXS Loopstart protocol.<BR># "fxsgs"&nbsp;&nbsp; : Channel(s) are signalled using FXS Groundstart protocol.<BR># "fxsks"&nbsp;&nbsp; : Channel(s) are signalled using FXS Koolstart protocol.<BR># "fxols"&nbsp;&nbsp; : Channel(s) are signalled using FXO Loopstart protocol.<BR># "fxogs"&nbsp;&nbsp; : Channel(s) are signalled using FXO Groundstart protocol.<BR># "fxoks"&nbsp;&nbsp; : Channel(s) are signalled using FXO Koolstart protocol.<BR># "sf"&nbsp;&nbsp;&nbsp;&nbsp; : Channel(s) are signalled using in-band single freq tone.<BR>#&nbsp;&nbsp;Syntax as follows: <BR>#&nbsp;&nbsp; channel# =&gt; sf:&lt;rxfreq&gt;,&lt;rxbw&gt;,&lt;rxflag&gt;,&lt;txfreq&gt;,&lt;txlevel&gt;,&lt;txflag&gt;<BR>#&nbsp;&nbsp;rxfreq is rx tone freq in hz, rxbw is rx notch (and decode)<BR>#&nbsp;&nbsp;bandwith in hz (typically 10.0), rxflag is either 'normal' or<BR>#&nbsp;&nbsp;'inverted', txfreq is tx tone freq in hz, txlevel is tx tone
 <BR>#&nbsp;&nbsp;level in dbm, txflag is either 'normal' or 'inverted'. Set <BR>#&nbsp;&nbsp;rxfreq or txfreq to 0.0 if that tone is not desired.<BR># "unused"&nbsp; : No signalling is performed, each channel in the list remains idle<BR># "clear"&nbsp;&nbsp; : Channel(s) are bundled into a single span.&nbsp; No conversion or<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; signalling is performed, and raw data is available on the master.<BR># "indclear": Like "clear" except all channels are treated individually and<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; are not bundled.&nbsp; "bchan" is an alias for this.<BR># "rawhdlc" : The zaptel driver performs HDLC encoding and decoding on the <BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bundle, and the resulting data is communicated via the master<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; device.<BR># "fcshdlc"
 : The zapdel driver performs HDLC encoding and decoding on the<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bundle and also performs incoming and outgoing FCS insertion<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and verification.&nbsp; "dchan" is an alias for this.<BR># "nethdlc" : The zaptel driver bundles the channels together into an<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hdlc network device, which in turn can be configured with<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sethdlc (available separately).<BR># "dacs"&nbsp;&nbsp;&nbsp; : The zaptel driver cross connects the channels starting at<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the channel number listed at the end, after a colon<BR># "dacsrbs" : The zaptel driver cross connects the channels starting
 at<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the channel number listed at the end, after a colon and <BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; also performs the DACSing of RBS bits<BR>#<BR># The channel list is a comma-separated list of channels or ranges, for<BR># example:<BR>#<BR>#&nbsp;&nbsp; 1,3,5 (channels one, three, and five)<BR>#&nbsp;&nbsp; 16-23, 29 (channels 16 through 23, as well as channel 29<BR>#<BR># So, some complete examples are:<BR>#&nbsp;&nbsp; e&amp;m=1-12<BR>#&nbsp;&nbsp; nethdlc=13-24<BR>#&nbsp;&nbsp; fxsls=25,26,27,28<BR>#&nbsp;&nbsp; fxols=29-32<BR>#<BR>#fxoks=1-24<BR>#bchan=25-47<BR>#dchan=48<BR>#fxols=1-12<BR>#fxols=13-24<BR>#e&amp;m=25-29<BR>#nethdlc=30-33<BR>#clear=44<BR>#clear=45<BR>#clear=46<BR>#clear=47<BR>#fcshdlc=48<BR>#dacs=1-24:48<BR>#dacsrbs=1-24:48</DIV>
<DIV><BR>#e&amp;m=25-29<BR>#nethdlc=30-33<BR>#clear=1-31<BR>#clear=45<BR>#clear=46<BR>#clear=47<BR>#fcshdlc=48<BR>#dacs=1-31:16<BR>#dacsrbs=1-31:16</DIV>
<DIV>#<BR># Finally, you can preload some tone zones, to prevent them from getting<BR># overwritten by other users (if you allow non-root users to open /dev/zap/*<BR># interfaces anyway.&nbsp; Also this means they won't have to be loaded at runtime.<BR># The format is "loadzone=&lt;zone&gt;" where the zone is a two letter country code.<BR># <BR># You may also specify a default zone with "defaultzone=&lt;zone&gt;" where zone<BR># is a two letter country code.<BR>#<BR># An up-to-date list of the zones can be found in the file zaptel/zonedata.c<BR>#<BR>loadzone = nl<BR>#loadzone = cn<BR>loadzone = us-old<BR>loadzone=fr<BR>loadzone=it<BR>loadzone=fr<BR>#loadzone=de<BR>loadzone=uk<BR>loadzone=fi<BR>loadzone=jp<BR>#loadzone=sp<BR>loadzone=no<BR>#defaultzone=nl<BR>defaultzone=fi</DIV>
<DIV>&nbsp;</DIV>
<DIV>I setting succesfull at E10 (ACATEL EXCHANGE). when i move to EWSD (SIEMENS EXCHANGE). i get faill. seems to your card cannot change abcd bits when EWSD change stage.</DIV>
<DIV>please&nbsp;see log file (EWSD)</DIV>
<DIV>Customer call --&gt; telco --&gt; EWSD --&gt; SANGOMA CARD -- ZAPTEL</DIV>
<DIV>&nbsp; EWSD (1001) -&gt; IDLE </DIV>
<DIV>&nbsp; EWSD&nbsp;&nbsp;&nbsp;(1001) &lt;-- IDLE</DIV>
<DIV>&nbsp;EWSD (0001) --&gt; SEIZE SANGOMA CARD</DIV>
<DIV>&nbsp;EWSD (1101) &lt;-- SANGOMA CARD (OK, IT's IDLE, channel available)</DIV>
<DIV>after that SANGOMA CARD move to wait GROUP I Stage but EWSD time out, send </DIV>
<DIV>EWSD (1001) --&gt; SANGOMA CARD.</DIV>
<DIV>&nbsp;</DIV>
<DIV>with E10 Exchange, the flow is difference</DIV>
<DIV>
<DIV>Customer call --&gt; telco --&gt; EWSD --&gt; SANGOMA CARD -- ZAPTEL</DIV>
<DIV>E10(1001) -&gt; IDLE </DIV>
<DIV>E10(1001) &lt;-- IDLE</DIV>
<DIV>E10(0001) --&gt; SEIZE SANGOMA CARD</DIV>
<DIV>E10(1101) &lt;-- SANGOMA CARD (OK, IT's IDLE, channel available)</DIV>
<DIV>E10 is OK, switch to Group I stage, the the call is offer</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>my logging at EWSD (fail)</DIV>
<DIV>Sep&nbsp; 5 12:52:56 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;- 0001&nbsp; [1/40000000/Idle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /Idle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]<BR>Sep&nbsp; 5 12:52:56 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Detected<BR>Sep&nbsp; 5 12:52:56 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Making a new call with CRN 32769<BR>Sep&nbsp; 5 12:52:56 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Debug here (03)<BR>Sep&nbsp; 5 12:52:56 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 1101&nbsp; -&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [2/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2/Idle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /Idle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]<BR>Sep&nbsp; 5 12:52:56 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Debug here (04)<BR>Sep&nbsp; 5 12:52:56 WARNING[3942] chan_unicall.c: Unicall/17 event Detected<BR>Sep&nbsp; 5 12:53:13
 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;- 1001&nbsp; [2/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2/Seize ack&nbsp;&nbsp;&nbsp;&nbsp; /Seize ack&nbsp;&nbsp;&nbsp; ]<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Debug here (01) 0x2,101,8 <BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Far end disconnected(cause=Normal, unspecified cause [31]) - state 0x2<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: Unicall/17 event Far end disconnected<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: CRN 32769 - far disconnected cause=Normal, unspecified cause [31]<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Call control(6)<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Drop call(cause=Normal Clearing [16])<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Call disconnected(cause=Normal, unspecified cause [31]) - state
 0x800<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: Unicall/17 event Drop call<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Call control(7)<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Release call<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 1001&nbsp; -&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [1/&nbsp;&nbsp;&nbsp; 1000/Clear fwd&nbsp;&nbsp;&nbsp;&nbsp; /Seize ack&nbsp;&nbsp;&nbsp; ]<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Release guard expired<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Destroying call with CRN 32769<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: Unicall/17 event Release call<BR>Sep&nbsp; 5 12:53:13 WARNING[3942] chan_unicall.c: MFC/R2 UniCall/17 Channel echo cancel </DIV>
<DIV>&nbsp;</DIV>
<DIV>how to correct above problem ???</DIV>
<DIV>Any suggestion ?</DIV>
<DIV><BR></DIV>