<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">euro should work fine with the q931 dialect. &nbsp;<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="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -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>&nbsp;</div><div>Look for this example:</div><div>&nbsp;</div><div>> If we'll specify for nonexistent dialects:</div><div>></div><div>>&nbsp; &lt;pri_spans><br>>&nbsp;&nbsp;&nbsp; &lt;span id="1"><span class="Apple-converted-space">&nbsp;</span><br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="dialect" value="ABC" /><br>>&nbsp;&nbsp;&nbsp; &lt;/span><br>>&nbsp;&nbsp;&nbsp; &lt;span id="2"><span class="Apple-converted-space">&nbsp;</span><br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="dialect" value="XYZ" /><br>>&nbsp;&nbsp;&nbsp; &lt;/span><br>>&nbsp; &lt;/pri_spans></div><div>></div><div>>&nbsp;- then >load mod_openzap is&nbsp;carried out successfully and >oz dump &lt;i> &lt;j> gives us same result like before.</div><div>&nbsp;</div><div>What dialect is carried out here?</div></font></div><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left-color: rgb(0, 0, 0); border-left-width: 2px; border-left-style: solid; margin-right: 0px; "><div style="font: normal normal normal 10pt/normal arial; ">----- Original Message -----</div><div style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(228, 228, 228); font: normal normal normal 10pt/normal arial; background-position: initial initial; "><b>From:</b><span class="Apple-converted-space">&nbsp;</span><a title="msc@freeswitch.org" href="mailto:msc@freeswitch.org">Michael Collins</a></div><div style="font: normal normal normal 10pt/normal arial; "><b>To:</b><span class="Apple-converted-space">&nbsp;</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: normal normal normal 10pt/normal arial; "><b>Sent:</b><span class="Apple-converted-space">&nbsp;</span>Thursday, September 18, 2008 5:39 PM</div><div style="font: normal normal normal 10pt/normal arial; "><b>Subject:</b><span class="Apple-converted-space">&nbsp;</span>Re: [Freeswitch-users] mod_openzap &amp; 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">&nbsp;</span><span dir="ltr">&lt;<a href="mailto:zolotov@altron.ua">zolotov@altron.ua</a>></span><span class="Apple-converted-space">&nbsp;</span>wrote:<br><blockquote class="gmail_quote" style="padding-left: 1ex; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; "><div bgcolor="#ffffff"><div><font face="Arial" size="2">We have a lot of questions about mod_openzap &amp; PRI.</font></div><div><font face="Arial" size="2"></font>&nbsp;</div><div><font face="Arial" size="2">1. If to see directory libs/openzap/src/isdn&nbsp;it is possible to see, there are defined</font></div><div><font face="Arial" size="2">such dialects</font>&nbsp;:<font face="Arial" size="2"><span class="Apple-converted-space">&nbsp;</span>Q931, national, EvroISDN, DMS, 5ESS.</font></div><div><font face="Arial" size="2"></font>&nbsp;</div><div><font face="Arial" size="2">$ ls *.c<br>5ESSmes.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DMSStateNT.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mfifo.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Q921.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Q931mes.c<br>5ESSStateNT.c&nbsp; DMSStateTE.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nationalmes.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Q931api.c&nbsp;&nbsp; Q931StateNT.c<br>5ESSStateTE.c&nbsp; EuroISDNStateNT.c&nbsp; nationalStateNT.c&nbsp; Q931.c&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Q931StateTE.c<br>DMSmes.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EuroISDNStateTE.c&nbsp; nationalStateTE.c&nbsp; Q931ie.c&nbsp;&nbsp;&nbsp; Q932mes.c</font></div><div><font face="Arial" size="2"></font>&nbsp;</div><div>Into&nbsp;the file libs/openzap/src/isdn/include/Q931.h (line ~500) are defined only 4 dialects</div><div>&nbsp;</div><div>typedef enum&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Dialect enum<br>{<br>&nbsp;&nbsp; Q931_Dialect_Q931&nbsp;&nbsp;&nbsp;&nbsp; = 0,<br>&nbsp;&nbsp; Q931_Dialect_National = 2,<br>&nbsp;&nbsp; Q931_Dialect_DMS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 4,<br>&nbsp;&nbsp; Q931_Dialect_5ESS&nbsp;&nbsp;&nbsp;&nbsp; = 6,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Coming soon to a PRI stack near you!<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span><br>&nbsp;&nbsp; Q931_Dialect_Count<br>} Q931Dialect_t;<br>#define DIALECT_STRINGS "q931", "", "national", "", "dms", "", "5ess", ""</div><div>&nbsp;</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>&nbsp;</div><div><br>================================================================================</div><div>&nbsp;</div><div>2. We start zaptel :</div><div>&nbsp;</div><div># ls /dev/zap<br>1&nbsp;&nbsp; 12&nbsp; 15&nbsp; 18&nbsp; 20&nbsp; 23&nbsp; 26&nbsp; 29&nbsp; 31&nbsp; 34&nbsp; 37&nbsp; 4&nbsp;&nbsp; 42&nbsp; 45&nbsp; 48&nbsp; 50&nbsp; 53&nbsp; 56&nbsp; 59&nbsp; 61&nbsp; 8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctl<br>10&nbsp; 13&nbsp; 16&nbsp; 19&nbsp; 21&nbsp; 24&nbsp; 27&nbsp; 3&nbsp;&nbsp; 32&nbsp; 35&nbsp; 38&nbsp; 40&nbsp; 43&nbsp; 46&nbsp; 49&nbsp; 51&nbsp; 54&nbsp; 57&nbsp; 6&nbsp;&nbsp; 62&nbsp; 9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pseudo<br>11&nbsp; 14&nbsp; 17&nbsp; 2&nbsp;&nbsp; 22&nbsp; 25&nbsp; 28&nbsp; 30&nbsp; 33&nbsp; 36&nbsp; 39&nbsp; 41&nbsp; 44&nbsp; 47&nbsp; 5&nbsp;&nbsp; 52&nbsp; 55&nbsp; 58&nbsp; 60&nbsp; 7&nbsp;&nbsp; channel&nbsp; timer</div><div>&nbsp;</div><div>- zaptel is started and configured normally.</div><div>&nbsp;</div><div>Next load FreeSWITCH...</div><div>&nbsp;</div><div>We use such configuration file for mod_openzap :</div><div>&nbsp;</div><div>&lt;configuration name="openzap.conf" description="OpenZAP Configuration"><br>&nbsp; &lt;settings><br>&nbsp;&nbsp;&nbsp; &lt;param name="debug" value="1"/><br>&nbsp; &lt;/settings><br>&nbsp; &lt;pri_spans><br>&nbsp;&nbsp;&nbsp; &lt;span id="1"><span class="Apple-converted-space">&nbsp;</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="mode" value="user" /><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="dialect" value="dms" /><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="dialplan" value="XML"/><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="context" value="public" />&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span><br>&nbsp;&nbsp;&nbsp; &lt;/span><br>&nbsp;&nbsp;&nbsp; &lt;span id="2"><span class="Apple-converted-space">&nbsp;</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="mode" value="user" /><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="dialect" value="q931" /><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="dialplan" value="XML"/><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="context" value="public" /><br>&nbsp;&nbsp;&nbsp; &lt;/span><br>&nbsp; &lt;/pri_spans><br>&lt;/configuration></div><div>&nbsp;</div><div><br>Next we&nbsp;start (from FreeSWITCH console):</div><div>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</div><div>If we'll specify for nonexistent dialects:</div><div>&nbsp;</div><div>&nbsp; &lt;pri_spans><br>&nbsp;&nbsp;&nbsp; &lt;span id="1"><span class="Apple-converted-space">&nbsp;</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="dialect" value="ABC" /><br>&nbsp;&nbsp;&nbsp; &lt;/span><br>&nbsp;&nbsp;&nbsp; &lt;span id="2"><span class="Apple-converted-space">&nbsp;</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="dialect" value="XYZ" /><br>&nbsp;&nbsp;&nbsp; &lt;/span><br>&nbsp; &lt;/pri_spans></div><div>&nbsp;</div><div>- then >load mod_openzap is&nbsp;carried out successfully and >oz dump &lt;i> &lt;j> gives us same result like before.</div><div>&nbsp;</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></body></html>