<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<META content="MSHTML 6.00.6000.20753" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>We have a lot of questions about mod_openzap &
PRI.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1. If to see directory
libs/openzap/src/isdn it is possible to see, there are defined
</FONT></DIV>
<DIV><FONT face=Arial size=2>such dialects</FONT> :<FONT face=Arial size=2>
Q931, national, EvroISDN, DMS, 5ESS.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>$ ls
*.c<BR>5ESSmes.c DMSStateNT.c
mfifo.c
Q921.c Q931mes.c<BR>5ESSStateNT.c
DMSStateTE.c
nationalmes.c Q931api.c
Q931StateNT.c<BR>5ESSStateTE.c EuroISDNStateNT.c
nationalStateNT.c Q931.c
Q931StateTE.c<BR>DMSmes.c
EuroISDNStateTE.c nationalStateTE.c Q931ie.c
Q932mes.c</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV>Into the file libs/openzap/src/isdn/include/Q931.h (line ~500) are
defined only 4 dialects</DIV>
<DIV> </DIV>
<DIV>typedef
enum
// Dialect enum<BR>{<BR> Q931_Dialect_Q931 =
0,<BR> Q931_Dialect_National = 2,<BR>
Q931_Dialect_DMS = 4,<BR>
Q931_Dialect_5ESS = 6, //
Coming soon to a PRI stack near
you!<BR>
<BR> Q931_Dialect_Count<BR>} Q931Dialect_t;<BR>#define
DIALECT_STRINGS "q931", "", "national", "", "dms", "", "5ess", ""</DIV>
<DIV> </DIV>
<DIV>Is it possible to add our own dialect PRI (for another submission of
SUBBADDRESS, for example), if we'll add</DIV>
<DIV>new files *mess.c, *StateNT.c, *StateTE and definition * into the
Q931Dialect_t ?</DIV>
<DIV> </DIV>
<DIV><BR>================================================================================</DIV>
<DIV> </DIV>
<DIV>2. We start zaptel :</DIV>
<DIV> </DIV>
<DIV># ls /dev/zap<BR>1 12 15 18 20 23
26 29 31 34 37 4 42 45
48 50 53 56 59 61
8 ctl<BR>10 13 16
19 21 24 27 3 32 35 38
40 43 46 49 51 54 57 6
62 9 pseudo<BR>11 14
17 2 22 25 28 30 33 36
39 41 44 47 5 52 55 58
60 7 channel timer</DIV>
<DIV> </DIV>
<DIV>- zaptel is started and configured normally.</DIV>
<DIV> </DIV>
<DIV>Next load FreeSWITCH...</DIV>
<DIV> </DIV>
<DIV>We use such configuration file for mod_openzap :</DIV>
<DIV> </DIV>
<DIV><configuration name="openzap.conf" description="OpenZAP
Configuration"><BR> <settings><BR> <param
name="debug" value="1"/><BR> </settings><BR>
<pri_spans><BR> <span id="1">
<BR> <param name="mode" value="user"
/><BR> <param name="dialect" value="dms"
/><BR> <param name="dialplan"
value="XML"/><BR> <param name="context"
value="public" /> <BR>
</span><BR> <span id="2">
<BR> <param name="mode" value="user"
/><BR> <param name="dialect" value="q931"
/><BR> <param name="dialplan"
value="XML"/><BR> <param name="context"
value="public" /><BR> </span><BR>
</pri_spans><BR></configuration></DIV>
<DIV> </DIV>
<DIV><BR>Next we start (from FreeSWITCH console):</DIV>
<DIV> </DIV>
<DIV><A
href="mailto:freeswitch@opos8.altron.lan">freeswitch@opos8.altron.lan</A>>
console loglevel 9<BR><A
href="mailto:freeswitch@opos8.altron.lan">freeswitch@opos8.altron.lan</A>>
load mod_openzap<BR>...<BR><A
href="mailto:freeswitch@opos8.altron.lan">freeswitch@opos8.altron.lan</A>> oz
dump 1 16<BR>API CALL [oz(dump 1 16)] output:<BR>span_id: 1<BR>chan_id:
16<BR>physical_span_id: 1<BR>physical_chan_id: 16<BR>type: DQ921<BR>state:
UP<BR>last_state:
DOWN<BR>cid_date:<BR>cid_name:<BR>cid_num:<BR>ani:<BR>aniII:<BR>dnis:<BR>rdnis:<BR>cause:
NONE</DIV>
<DIV> </DIV>
<DIV><BR><A
href="mailto:freeswitch@opos8.altron.lan">freeswitch@opos8.altron.lan</A>> oz
dump 2 16<BR>API CALL [oz(dump 2 16)] output:<BR>span_id: 2<BR>chan_id:
16<BR>physical_span_id: 2<BR>physical_chan_id: 47<BR>type: DQ921<BR>state:
UP%!<BR>last_state:
DOWN<BR>cid_date:<BR>cid_name:<BR>cid_num:<BR>ani:<BR>aniII:<BR>dnis:<BR>rdnis:<BR>cause:
NONE</DIV>
<DIV> </DIV>
<DIV>In what manner ( using console or debugging messages ) we can see in
run-time mode under what type of a dialect</DIV>
<DIV>every "span" is configured ?</DIV>
<DIV> </DIV>
<DIV>If we'll specify for nonexistent dialects:</DIV>
<DIV> </DIV>
<DIV> <pri_spans><BR> <span id="1">
<BR> <param name="dialect" value="ABC"
/><BR> </span><BR> <span
id="2"> <BR> <param name="dialect"
value="XYZ" /><BR> </span><BR>
</pri_spans></DIV>
<DIV> </DIV>
<DIV>- then >load mod_openzap is carried out successfully and >oz
dump <i> <j> gives us same result like before.</DIV>
<DIV> </DIV>
<DIV>What dialect is used by "span" in this case? How it can be
looked?</DIV></FONT></BODY></HTML>