<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 18, 2008, at 1:13 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"><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>&nbsp;</div><div>We have added new dialect ( li_ewsd, similar to Q.931, but&nbsp;different that bytes of data SUBADDRES do not mask with &amp; 0x7F -</div><div>- so the specifications of telephone stations EWSD &amp; Surpass&nbsp;demands, which place into SUBADDRES&nbsp;special user info ( different</div><div>for EWSD &amp; Surpass stations)&nbsp;).</div><div>&nbsp;</div><div>We have&nbsp;made some changes in libs/openzap/src/isdn/include/Q931.h:</div></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; Q931_Dialect_li_ewsd&nbsp; = 8,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Coming soon to a PRI stack near you!</div><div>&nbsp;</div><div>&nbsp;&nbsp; Q931_Dialect_Count<br>} Q931Dialect_t;<br>#define DIALECT_STRINGS "q931", "", "national", "", "dms", "", "5ess", "", "li_ewsd", ""</div><div>&nbsp;</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>&nbsp;</div><div>[host 1, X-Lite] -SIP-> [host 2, FS] -PRI-> [host 3, FS] -> record_session()</div><div>&nbsp;</div><div>Written *.wav the file is identical to that was told from X-Lite softphone</div><div>&nbsp;</div><div>Записанный *.wav файл идентичен тому, что говорилось из X-Lite softphone...</div><div>&nbsp;</div><div>But periodically ( > than minute ) such messages are&nbsp;output on FreeSWITCH console:</div><div>&nbsp;</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>&nbsp;</div><div>We can suppose, that it because of both sides of PRI channel are configured in such manner</div><div><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="li_ewsd" /><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ....<br>&nbsp; &lt;/span><br>-&nbsp;because of "user".</div><div>&nbsp;</div><div>Are we right?</div><div>&nbsp;</div></font><div>&nbsp;</div></div></span></blockquote><br></div><div>You can't do 2 hosts back to back both set to user, one end must be the net. &nbsp;FreeSWITCH won't be able to do that until we complete the q931 timer support. &nbsp;Let's move this conversation to the -dev mailing list or hop on irc.freenode.net #openzap and we can discuss in real time.</div><div><br></div><div>Mike</div><div><br></div></body></html>