I believe we started a boost section on the openzap wiki page. If not, would you mind adding these config examples? It would be very helpful for the next poor soul coming along trying to work on this.<br><br>Thanks,<br>MC<br>
<br><div class="gmail_quote">On Wed, May 5, 2010 at 11:40 AM, Bryan Vyhmeister <span dir="ltr">&lt;<a href="mailto:freeswitch@bsdjournal.net">freeswitch@bsdjournal.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I just spoke with Sangoma tech support. I am posting a workaround solution here in case someone else runs into the same problem. As long as both spans use the same switch type, FreeSWITCH can see both as the same span. In /etc/wanpipe/smg_pri.conf, you need to define a separate group for each span.<div>

<br></div><div><div>;AFT-A102 on port 1</div><div>signalling=pri_cpe</div><div>switchtype=national</div><div>group=1</div><div>spans=1</div><div><br></div><div>;AFT-A102 on port 2</div><div>signalling=pri_cpe</div><div>switchtype=national</div>

<div>group=2</div><div>spans=2</div><div><br></div><div>In openzap.conf.xml you only need one span:</div><div><br></div><div><div class="im"><div>&lt;configuration name=&quot;openzap.conf&quot; description=&quot;OpenZAP Configuration&quot;&gt;</div>

<div>  &lt;settings&gt;</div><div>    &lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;</div><div>  &lt;/settings&gt;</div><div>  &lt;boost_spans&gt;</div><div><span style="white-space: pre;">        </span>&lt;span id=&quot;1&quot;&gt;</div>

<div>        &lt;param name=&quot;node&quot; value=&quot;cpe&quot;/&gt;</div><div>        &lt;param name=&quot;switch&quot; value=&quot;ni2&quot;/&gt;</div><div><span style="white-space: pre;">        </span>&lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;</div>

<div><span style="white-space: pre;">        </span>&lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</div><div><span style="white-space: pre;">        </span>&lt;/span&gt;</div>
</div><div class="im"><div>  &lt;/boost_spans&gt;</div><div>   &lt;analog_spans&gt;</div><div>  &lt;/analog_spans&gt;</div><div> &lt;/configuration&gt;</div><div><br></div></div><div>And the same in openzap.conf however you need to define the channels of both physical PRI circuits.</div>

<div><br></div><div><div class="im"><div>[span wanpipe 1]</div><div>name =&gt; 1</div><div>trunk_type =&gt;t1</div><div>b-channel =&gt; 1:1-23</div></div><div class="im"><div>b-channel =&gt; 2:1-23</div><div><br></div></div>
<div>When you dial, instead of using openzap/1 or openzap/2 you have to use groups. This would be the first PRI dial string:</div>
<div><br></div><div><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">&lt;action application=&quot;bridge&quot; data=&quot;openzap/1/a/$1@g1&quot;/&gt;</span></div>
<div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse: collapse;">This would be the second PRI dial string:</span></font></div>

<div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><span style="font-size: 13px;">&lt;action application=&quot;bridge&quot; data=&quot;openzap/1/a/$1@g2&quot;/&gt;</span></span></font></div>

<div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse: collapse;">This works as expected. Apparently there will be a new way of interacting with smg_prid coming out at some point that will address these issues and allow multiple spans and switch types in the openzap configs. Thanks to Sangoma for the great hardware and drivers and the FreeSWITCH project for a fantastic product!</span></font></div>

<div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><font color="#888888"><div><font face="arial, sans-serif"><span style="border-collapse: collapse;">Bryan</span></font></div>

<div><br></div></font></div></div><div><div></div><div class="h5"><br><div class="gmail_quote">On Wed, May 5, 2010 at 11:01 AM, Bryan Vyhmeister <span dir="ltr">&lt;<a href="mailto:freeswitch@bsdjournal.net" target="_blank">freeswitch@bsdjournal.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I setup a FreeSWITCH pbx with a Sangoma A102D card, the latest FreeSWITCH as of yesterday, and Wanpipe 3.5.11. I have found that I cannot use both PRI ports with Sangoma&#39;s smg_prid. The first one always works great but the second one never works. I get the following error:<div>



<br></div><div><div>2010-05-05 09:42:02.573743 [CRIT] ozmod_sangoma_boost.c:257 SPAN is not online.</div><div>2010-05-05 09:42:02.573743 [ERR] switch_ivr_originate.c:2480 Cannot create outgoing channel of type [openzap] cause: [NORMAL_CIRCUIT_CONGESTION]</div>



<div><br></div><div>When I start FreeSWITCH up I get this error on the console right after all the channels are activated.</div><div><br></div><div><div>2010-05-05 07:25:59.414444 [ERR] ozmod_sangoma_boost.c:1534 Error: Opening MCON Socket [-1] Address already in use</div>



<div><br></div><div>The configs are below:</div><div><br></div><div>openzap.conf</div><div><div>[span wanpipe 1]</div><div>name =&gt; 1</div><div>trunk_type =&gt;t1</div><div>b-channel =&gt; 1:1-23</div><div>[span wanpipe 2]</div>



<div>name =&gt; 2</div><div>trunk_type =&gt;t1</div><div>b-channel =&gt; 2:1-23</div><div><br></div><div>openzap.conf.xml</div><div><div>&lt;configuration name=&quot;openzap.conf&quot; description=&quot;OpenZAP Configuration&quot;&gt;</div>



<div>  &lt;settings&gt;</div><div>    &lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;</div><div>  &lt;/settings&gt;</div><div>  &lt;boost_spans&gt;</div><div><span style="white-space: pre;">        </span>&lt;span id=&quot;1&quot;&gt;</div>



<div>        &lt;param name=&quot;node&quot; value=&quot;cpe&quot;/&gt;</div><div>        &lt;param name=&quot;switch&quot; value=&quot;ni2&quot;/&gt;</div><div><span style="white-space: pre;">        </span>&lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;</div>



<div><span style="white-space: pre;">        </span>&lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</div><div><span style="white-space: pre;">        </span>&lt;/span&gt;</div>
<div><span style="white-space: pre;">        </span>&lt;span id=&quot;2&quot;&gt;</div><div>        &lt;param name=&quot;node&quot; value=&quot;cpe&quot;/&gt;</div><div>        &lt;param name=&quot;switch&quot; value=&quot;ni2&quot;/&gt;</div>



<div><span style="white-space: pre;">        </span>&lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;</div><div><span style="white-space: pre;">        </span>&lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</div>



<div>  &lt;/boost_spans&gt;</div><div>  &lt;analog_spans&gt;</div><div>  &lt;/analog_spans&gt;</div><div>&lt;/configuration&gt;</div><div><br></div><div>I&#39;m dialing with this dial string.</div><div><br></div><div><div>



        &lt;action application=&quot;bridge&quot; data=&quot;{origination_caller_id_number=${outbound_caller_id_number}}openzap/2/a/$1&quot;/&gt;</div><div><br></div><div>I am certain the rest of this config works fine because the other PRI works great. I have also attempted to use FreeSWITCH without Sangoma&#39;s smg_prid by specifying a d-channel in openzap.conf. That seems to work but calls tend to drop frequently. I would rather just use Sangoma&#39;s smg_prid. I also attempted a hybrid config where FreeSWITCH worked without smg_prid on the first PRI and the second PRI was handled by smg_prid. That config worked except for the dropped calls that happen with using FreeSWITCH to manage the d-channel.</div>


<div><br></div><div>My question is how can I get two PRI&#39;s working with Sangoma&#39;s smg_prid? Thank you.</div><div><br></div><font color="#888888"><div>Bryan</div>
</font></div></div></div></div></div>
</blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>