<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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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>