<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<META content="MSHTML 6.00.6000.20753" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is how it is to see really used dialect for
span:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1. To write down
erroneous /etc/openzap/openzap.conf - nonconsistent trunk_type</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>$ cat /etc/openzap/openzap.conf<BR>[span
zt]<BR>name => OpenZAP<BR>number => 1<BR>trunk_type =>
Z1<BR>#trunk_type => E1<BR>b-channel => 1-15<BR>d-channel =>
16<BR>b-channel => 17-31</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[span zt]<BR>name => OpenZAP<BR>number =>
2<BR>trunk_type => Z1<BR>#trunk_type => E1<BR>b-channel =>
32-46<BR>d-channel => 47<BR>b-channel => 48-62</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>[span zt]<BR>name => OpenZAP<BR>number =>
3<BR>trunk_type => Z1<BR>#trunk_type => E1<BR>b-channel =>
63-77<BR>d-channel => 78<BR>b-channel => 79-93</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>[span zt]<BR>name => OpenZAP<BR>number =>
4<BR>trunk_type => Z1<BR>#trunk_type => E1<BR>b-channel =>
94-108<BR>d-channel => 109<BR>b-channel => 110-124</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2. And then in error message of mod_openzap's
loading it's possible to see dialect's index:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2008-09-19 16:12:48 [ERR] mod_openzap.c:1638
load_config() Error starting OpenZAP span 1 mode: 0 dialect: 0 error: Unknown
trunk type!<BR>2008-09-19 16:12:48 [ERR] mod_openzap.c:1638 load_config() Error
starting OpenZAP span 2 mode: 0 dialect: 2 error: Unknown trunk
type!<BR>2008-09-19 16:12:48 [ERR] mod_openzap.c:1638 load_config() Error
starting OpenZAP span 3 mode: 0 dialect: 4 error: Unknown trunk
type!<BR>2008-09-19 16:12:48 [ERR] mod_openzap.c:1638 load_config() Error
starting OpenZAP span 4 mode: 0 dialect: 6 error: Unknown trunk
type!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>- this conforms to PRI configuration:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><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="dialect" value="q931"
/><BR> ...<BR>
</span><BR> <span
id="2"><BR> <param name="dialect"
value="national" /><BR>
...<BR> </span><BR> <span
id="3"><BR> <param name="dialect"
value="dms"/><BR> ...<BR>
</span><BR> <span id="4">
<BR> <param name="dialect" value="5ess"
/><BR>
...
<BR>
</span> <BR>
</pri_spans><BR></configuration><BR>
</FONT></DIV>
<DIV><FONT face=Arial size=2>But if now to write unknown FreeSWITCH dialects
into a PRI configuration,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> <span
id="3"><BR> <param name="dialect"
value="XYZ" /> <BR>
...<BR> </span><BR> <span
id="4"> <BR> <param name="dialect"
value="euro" /> <BR>
...
<BR>
</span> </FONT></DIV>
<DIV><FONT face=Arial size=2>
</pri_spans><BR></configuration></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>- then we'll get such mistake message:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2008-09-19 16:25:44 [ERR] mod_openzap.c:1638
load_config() Error starting OpenZAP span 1 mode: 0 dialect: 0 error: Unknown
trunk type!<BR>2008-09-19 16:25:44 [ERR] mod_openzap.c:1638 load_config() Error
starting OpenZAP span 2 mode: 0 dialect: 2 error: Unknown trunk
type!<BR>2008-09-19 16:25:44 [ERR] mod_openzap.c:1638 load_config() Error
starting OpenZAP span 3 mode: 0 dialect: 2 error: Unknown trunk
type!<BR>2008-09-19 16:25:44 [ERR] mod_openzap.c:1638 load_config() Error
starting OpenZAP span 4 mode: 0 dialect: 2 error: Unknown trunk
type!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It's visible that:</FONT></DIV>
<DIV><FONT face=Arial size=2>1. FreeSWITCH doesn't identify dialects "euro" É
"XYZ"...<BR>2. Insted them it substitutes dialect "national" => 2
without any debug message.<BR></FONT></DIV></BODY></HTML>