<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> </div><div>We have added new dialect ( li_ewsd, similar to Q.931, but different that bytes of data SUBADDRES do not mask with & 0x7F -</div><div>- so the specifications of telephone stations EWSD & Surpass demands, which place into SUBADDRES special user info ( different</div><div>for EWSD & Surpass stations) ).</div><div> </div><div>We have made some changes in libs/openzap/src/isdn/include/Q931.h:</div></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> Q931_Dialect_li_ewsd = 8, // Coming soon to a PRI stack near you!</div><div> </div><div> Q931_Dialect_Count<br>} Q931Dialect_t;<br>#define DIALECT_STRINGS "q931", "", "national", "", "dms", "", "5ess", "", "li_ewsd", ""</div><div> </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> </div><div>[host 1, X-Lite] -SIP-> [host 2, FS] -PRI-> [host 3, FS] -> record_session()</div><div> </div><div>Written *.wav the file is identical to that was told from X-Lite softphone</div><div> </div><div>Записанный *.wav файл идентичен тому, что говорилось из X-Lite softphone...</div><div> </div><div>But periodically ( > than minute ) such messages are output on FreeSWITCH console:</div><div> </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> </div><div>We can suppose, that it because of both sides of PRI channel are configured in such manner</div><div><br> <pri_spans><br> <span id="1"><span class="Apple-converted-space"> </span><br> <param name="mode" value="user" /><br> <param name="dialect" value="li_ewsd" /><br> ....<br> </span><br>- because of "user".</div><div> </div><div>Are we right?</div><div> </div></font><div> </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. FreeSWITCH won't be able to do that until we complete the q931 timer support. 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>