<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.20753" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff><FONT face=Arial size=2>
<DIV><BR>> Is it possible to add our own dialect PRI (for another submission
of SUBBADDRESS, for example), if we'll add
<DIV>> new files *mess.c, *StateNT.c, *StateTE and definition * into the
Q931Dialect_t ?</DIV>
<DIV> </DIV>
<DIV>We have added new dialect ( li_ewsd, similar to Q.931, but different
that bytes of data SUBADDRES do not mask with & 0x7F -</DIV>
<DIV>- so the specifications of telephone stations EWSD &
Surpass demands, which place into SUBADDRES special user info (
different</DIV>
<DIV>for EWSD & Surpass stations) ).</DIV>
<DIV> </DIV>
<DIV>We have made some changes in
libs/openzap/src/isdn/include/Q931.h:</DIV></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> Q931_Dialect_li_ewsd
= 8, // Coming soon to a PRI stack near you!</DIV>
<DIV> </DIV>
<DIV> Q931_Dialect_Count<BR>} Q931Dialect_t;<BR>#define
DIALECT_STRINGS "q931", "", "national", "", "dms", "", "5ess", "", "li_ewsd",
""</DIV>
<DIV> </DIV>
<DIV>After recompilation mod_openzap we connect 2 FreeSWITCH on different hosts
with PRI channel through 2xE1.</DIV>
<DIV>Then we manage to receive.</DIV>
<DIV> </DIV>
<DIV>[host 1, X-Lite] -SIP-> [host 2, FS] -PRI-> [host 3, FS] ->
record_session()</DIV>
<DIV> </DIV>
<DIV>Written *.wav the file is identical to that was told from X-Lite
softphone</DIV>
<DIV> </DIV>
<DIV>Записанный *.wav файл идентичен тому, что говорилось из X-Lite
softphone...</DIV>
<DIV> </DIV>
<DIV>But periodically ( > than minute ) such messages are output on
FreeSWITCH console:</DIV>
<DIV> </DIV>
<DIV>2008-09-18 18:53:47 [WARNING] zap_zt.c:668 zt_next_event() Unhandled event
8<BR>2008-09-18 18:53:47 [DEBUG] zap_isdn.c:790 process_event() EVENT
[INVALID][1:16] STATE [UP]</DIV>
<DIV> </DIV>
<DIV>We can suppose, that it because of both sides of PRI channel are configured
in such manner</DIV>
<DIV><BR> <pri_spans><BR> <span id="1">
<BR> <param name="mode" value="user"
/><BR> <param name="dialect" value="li_ewsd"
/><BR> ....<BR>
</span><BR>- because of "user".</DIV>
<DIV> </DIV>
<DIV>Are we right?</DIV>
<DIV> </DIV>
<DIV></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=anthony.minessale@gmail.com
href="mailto:anthony.minessale@gmail.com">Anthony Minessale</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 5:39
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users]
mod_openzap & PRI</DIV>
<DIV><BR></DIV>
<DIV dir=ltr>the dialects are not all done. we so far can do DMS100 and
euro <BR><BR>please join #openzap on <A
href="http://irc.freenode.net">irc.freenode.net</A> and join the
effort.<BR><BR><BR>
<DIV class=gmail_quote>On Thu, Sep 18, 2008 at 8:48 AM, Evgeniy Zolotov <SPAN
dir=ltr><<A
href="mailto:zolotov@altron.ua">zolotov@altron.ua</A>></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> 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>
<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"
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">
<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></DIV><BR>_______________________________________________<BR>Freeswitch-users
mailing list<BR><A
href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</A><BR><A
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>UNSUBSCRIBE:<A
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR><A
href="http://www.freeswitch.org"
target=_blank>http://www.freeswitch.org</A><BR><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Anthony Minessale II<BR><BR>FreeSWITCH <A
href="http://www.freeswitch.org/">http://www.freeswitch.org/</A><BR>ClueCon <A
href="http://www.cluecon.com/">http://www.cluecon.com/</A><BR><BR>AIM:
anthm<BR><A
href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</A><BR>GTALK/JABBER/<A
href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</A><BR>IRC:
<A href="http://irc.freenode.net">irc.freenode.net</A>
#freeswitch<BR><BR>FreeSWITCH Developer Conference<BR><A
href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</A><BR><A
href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</A><BR><A
href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</A><BR>pstn:213-799-1400<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>