<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 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 size="2" face="Arial">We have a lot of questions about mod_openzap &
PRI.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">1. If to see directory
libs/openzap/src/isdn it is possible to see, there are defined
</font></div>
<div><font size="2" face="Arial">such dialects</font> :<font size="2" face="Arial">
Q931, national, EvroISDN, DMS, 5ESS.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">$ 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 size="2" face="Arial"> </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></div>