<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. <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> </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-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"> </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"> </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"> </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"> </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-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 & 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></body></html>