<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1255">
<META content="MSHTML 6.00.2737.800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT size=3> Hello,<BR> <BR> We
have a Digium E100P card.<BR> We work with a digital PBX, PRI-30
(EuroISDN).<BR> In the zaptel.conf file there is
defined:<BR> span=1,1,0,ccs,hdb3,crc4<BR> bchan=1-15<BR> dchan=16<BR> bchan=17-31<BR> <BR>
The card functions as the Network, and the PBX as CPE.<BR> PRI calls in the
direction PBX->card arrive ok.<BR> We have a problem when placing a call
from the card to the PBX:<BR> we immediately get RELEASE COMPLETE with
Cause 'Incompatible<BR> destination',<BR> followed by
Hangup.<BR> <BR> We use the libpri functions - similarly to Asterisk - like
this:<BR> pri_table = pri_new(dfd, PRI_NETWORK,
PRI_SWITCH_EUROISDN_E1);<BR> q931_call *call =
pri_new_call(pri_table);<BR> pri_call(pri_table, call,
PRI_TRANS_CAP_SPEECH,<BR>
30, // the
channel<BR>
0, // we are the
Network<BR>
1, // non
ISDN<BR> "9220374",
PRI_NIP_NATIONAL, "company
name",<BR>
PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN,<BR>
"210", // the number to
call<BR>
PRI_PRIVATE, //
dialplan<BR>
PRI_LAYER_1_ULAW);<BR> <BR> Here is what the q931_dump
prints:<BR> > Protocol Discriminator: Q.931 (8) len=45<BR> >
Call Ref: len= 2 (reference 2/0x2) (Originator)<BR> > Message type:
SETUP (5)<BR> > Bearer Capability (len= 3) [Ext: 1 Q.931 Std: 0
Info transfer<BR> capability: Speech
(0)<BR> >
Ext: 1 Trans mode/rate: 64kbps,<BR> circuit-mode
(16)<BR> >
Ext: 1 User information layer 1: u-Law<BR> (34)<BR> > Channel
ID (len= 5) [Ext: 1 IntID: Implicit, PRI Spare: 0,<BR> Preferred
Dchan:
0<BR> >
ChanSel:
Reserved<BR> >
Ext: 1 Coding: 0 Number Specified Channel<BR> Type:
3<BR> >
Ext: 1 Channel: 30 ]<BR> > Display (len=10) [ 1company name
]<BR> > Calling Number (len=11) [Ext: 0 TON: Unknown Number type
(0) NPI:<BR> National Standard Numbering Plan
(8)<BR> >
Presentation: Presentation permitted, user<BR> number passed network
screening '9220374' ]<BR> > Called Number (len= 6) [Ext: 1 TON:
Sunscriber Number (4) NPI:<BR> Private Numbering Plan (9) '210'
]<BR> > Sending Complete (len= 0)<BR> - - - - - - - - - -
-<BR> < Protocol Discriminator: Q.931 (8) len=9<BR> < Call Ref:
len= 2 (reference 32770/0x8002) (Terminator)<BR> < Message type: RELEASE
COMPLETE (90)<BR> < Cause (len= 2) [Ext: 1 Coding: CCITT (ITU)
Standard (0) 0: 0<BR> Location: User
(0)<BR> <
Ext: 1 Cause: Incompatible destination (88), class<BR> = Invalid
message (5)<BR> <BR> <BR> What can be the cause for this
?</FONT><BR></FONT></DIV></BODY></HTML>