<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.20753" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"
bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks, Mike. But what dialect works when we
make</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> <param name="dialect" value="ABC"
/></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>or </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> <param name="dialect" value="XYZ" /></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>How we can define it
????????????????????????</FONT></DIV>
<DIV><FONT face=Arial size=2>(See example below)</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mike@jerris.com href="mailto:mike@jerris.com">Michael Jerris</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, September 18, 2008 7:43
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users]
mod_openzap & PRI</DIV>
<DIV><BR></DIV>euro should work fine with the q931 dialect.
<DIV><BR></DIV>
<DIV>Miike</DIV>
<DIV><BR>
<DIV>
<DIV>On Sep 18, 2008, at 12:04 PM, Evgeniy Zolotov wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite"><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0">
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2>
<DIV>Thanks for all. But I am in perplexity now - how we can khow, what any
certain dialect is carried out?</DIV>
<DIV> </DIV>
<DIV>Look for this example:</DIV>
<DIV> </DIV>
<DIV>> If we'll specify for nonexistent dialects:</DIV>
<DIV>></DIV>
<DIV>> <pri_spans><BR>> <span
id="1"><SPAN
class=Apple-converted-space> </SPAN><BR>>
<param name="dialect" value="ABC" /><BR>>
</span><BR>> <span id="2"><SPAN
class=Apple-converted-space> </SPAN><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 carried out here?</DIV></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message -----</DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND-COLOR: rgb(228,228,228); -webkit-background-clip: initial; -webkit-background-origin: initial"><B>From:</B><SPAN
class=Apple-converted-space> </SPAN><A title=msc@freeswitch.org
href="mailto:msc@freeswitch.org">Michael Collins</A></DIV>
<DIV style="FONT: 10pt arial"><B>To:</B><SPAN
class=Apple-converted-space> </SPAN><A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A></DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B><SPAN
class=Apple-converted-space> </SPAN>Thursday, September 18, 2008 5:39
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B><SPAN
class=Apple-converted-space> </SPAN>Re: [Freeswitch-users]
mod_openzap & PRI</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>
<DIV dir=ltr>Evgeniy,<BR><BR>I'm not sure why EuroISDN isn't listed in the
enum or string below because I know that Stefan (stkn on IRC) has been
working on it for some time. I'll follow up with him and Mike Jerris to
see what's going on there.<BR><BR>As for seeing the dialect at run-time,
right now you can't, although I don't see what that functionality can't be
added. Most likely you'll need to use the "oz list" CLI command which
gives output like this:<BR><PRE>+OK<BR>span: 1<BR>type: isdn<BR>chan_count: 24<BR>dialplan: XML<BR>context: default<BR>dial_regex: <BR>fail_dial_regex: <BR>hold_music: <BR>analog_options none<BR>+OK<BR>span: 2<BR>type: isdn<BR>chan_count: 24<BR>dialplan: XML<BR>
context: default<BR>dial_regex: <BR>fail_dial_regex: <BR>hold_music: <BR>analog_options none<BR></PRE>Again,
I'll confer with the big boys and see what other information can be added,
or possibly we can create a PRI-specific CLI command like "oz list pri"
that shows only PRI spans. Stay tuned for more
information...<BR><BR>-MC<BR><BR>
<DIV class=gmail_quote>On Thu, Sep 18, 2008 at 6:48 AM, Evgeniy
Zolotov<SPAN class=Apple-converted-space> </SPAN><SPAN dir=ltr><<A
href="mailto:zolotov@altron.ua">zolotov@altron.ua</A>></SPAN><SPAN
class=Apple-converted-space> </SPAN>wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV 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><SPAN class=Apple-converted-space> </SPAN>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></FONT> </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> <SPAN
class=Apple-converted-space> </SPAN><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><FONT face=Arial size=2></FONT> </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"><SPAN
class=Apple-converted-space> </SPAN><BR>
<param name="mode" value="user"
/><BR> <param name="dialect"
value="dms" /><BR> <param
name="dialplan" value="XML"/><BR>
<param name="context" value="public" /> <SPAN
class=Apple-converted-space> </SPAN><BR>
</span><BR> <span id="2"><SPAN
class=Apple-converted-space> </SPAN><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"
target=_blank>freeswitch@opos8.altron.lan</A>> console loglevel
9<BR><A href="mailto:freeswitch@opos8.altron.lan"
target=_blank>freeswitch@opos8.altron.lan</A>> load
mod_openzap<BR>...<BR><A href="mailto:freeswitch@opos8.altron.lan"
target=_blank>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"
target=_blank>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"><SPAN
class=Apple-converted-space> </SPAN><BR>
<param name="dialect" value="ABC" /><BR>
</span><BR> <span id="2"><SPAN
class=Apple-converted-space> </SPAN><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></DIV></BLOCKQUOTE></DIV></DIV></BLOCKQUOTE></DIV></SPAN></BLOCKQUOTE></DIV><BR></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Freeswitch-users
mailing
list<BR>Freeswitch-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></BLOCKQUOTE></BODY></HTML>