Nice, glad it worked :-)<div><br clear="all">Moises Silva<br>Senior Software Engineer<br>Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada<br>t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com">moy@sangoma.com</a><br>

<br><br><div class="gmail_quote">On Tue, May 18, 2010 at 12:07 PM, Neil Patel <span dir="ltr">&lt;<a href="mailto:neilp@cs.stanford.edu">neilp@cs.stanford.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hey Moises,<div><br></div><div>Upgrading wanpipe and FS to the latest did the trick. Thanks!</div><div><br></div><div>-Neil<br><br><div class="gmail_quote">On Mon, May 17, 2010 at 7:44 AM, Moises Silva <span dir="ltr">&lt;<a href="mailto:moises.silva@gmail.com" target="_blank">moises.silva@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try taking a protocol dump using wanpipemon on the d-channel so we can see the full details of the call setup.<div><br>



</div><div><a href="http://wiki.sangoma.com/wanpipe-wireshark-pcap-pri-bri-wan-t1-e1-tracing#pri_bri_wireshark" target="_blank">http://wiki.sangoma.com/wanpipe-wireshark-pcap-pri-bri-wan-t1-e1-tracing#pri_bri_wireshark</a></div>




<div><br></div><div>Then paste a link here to the pcap file somewhere.</div><div><div><br clear="all">Moises Silva<br>Senior Software Engineer<br>Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada<br>




t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com" target="_blank">moy@sangoma.com</a><br>
<br><br></div><div><div></div><div><div class="gmail_quote">On Sun, May 16, 2010 at 8:16 PM, Neil Patel <span dir="ltr">&lt;<a href="mailto:neilp@cs.stanford.edu" target="_blank">neilp@cs.stanford.edu</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Moises, this is very helpful!<div><br></div><div>After fixing the dialstring, I am still getting the following error from FS:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">

<div><div>&gt; originate openzap/smg_prid/a/&lt;num&gt; &amp;echo</div></div><div><div>-ERR NORMAL_CIRCUIT_CONGESTION</div></div><div><div><br></div></div><div><div>2010-05-17 05:39:02.883264 [WARNING] ozmod_sangoma_boost.c:346 TX EVENT: CALL_START:(80) [w1g1] CSid=1 Seq=0 Cn=[FreeSWITCH] Cd=[9428500597] Ci=[0000000000] Rdnis=[]</div>






</div><div><div>freeswitch@internal&gt; 2010-05-17 05:39:02.955336 [WARNING] ozmod_sangoma_boost.c:1312 RX EVENT (N): CALL_START_NACK:(82) [w256g256] Rc=0 CSid=1 Seq=1 </div></div><div><div>2010-05-17 05:39:02.955336 [WARNING] sangoma_boost_client.c:220 TX EVENT (N): CALL_START_NACK_ACK:(83) [w1g1] Rc=0 CSid=1 Seq=1 </div>






</div><div><div>2010-05-17 05:39:02.956586 [ERR] mod_openzap.c:1154 No channels available</div></div><div><div>2010-05-17 05:39:02.956586 [ERR] switch_ivr_originate.c:2249 Cannot create outgoing channel of type [openzap] cause: [NORMAL_CIRCUIT_CONGESTION]</div>






</div></blockquote><div><br></div><div><br></div><div>Here is the relevant logging from /var/log/sangoma_mgd.log:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">

<div><div>May 17 05:39:02 otalo sangoma_prid: Rx SMG [CALL_START s:0 c:0 id:1] </div></div><div><div>May 17 05:39:02 otalo sangoma_prid: g1:Outgoing call (Smg-ID:1)  </div></div><div><div>May 17 05:39:02 otalo sangoma_prid: s1:Outgoing call ChanRq:1 Called-Nb[9428500597] Calling-Nb[0000000000] (Smg-ID:1) </div>






</div><div><div>May 17 05:39:02 otalo sangoma_prid: Rx Tsoft [7:StatusIn id:0] </div></div><div><div>May 17 05:39:02 otalo sangoma_prid: s1:Received cause-ind-An IE or parameter does not exist(99) </div></div><div><div>May 17 05:39:02 otalo sangoma_prid: Rx Tsoft [2:DiscIn id:0] </div>






</div><div><div>May 17 05:39:02 otalo sangoma_prid: s1c1:Remote released-Unknown(0)  </div></div><div><div>May 17 05:39:02 otalo sangoma_prid: Rx SMG [CALL_START_NACK_ACK s:0 c:0 id:1] </div></div><div><div>May 17 05:39:02 otalo sangoma_prid: g1:Call cleared (SMG-ID:1) </div>






</div></blockquote><div><div><br></div><div>I updated /etc/wanpipe/smg_pri.conf to have group=1 uncommented.</div><div><br></div><div>Please note that my box is in India, making calls over a PRI line set up there. I also changed my tones.conf to match <a href="http://wiki.freeswitch.org/wiki/Tones.conf_Example" target="_blank">what&#39;s on the wiki</a> for India.</div>






<div><br></div><div>Thanks,</div><div>Neil</div><br><div class="gmail_quote">On Sat, May 15, 2010 at 10:20 PM, Moises Silva <span dir="ltr">&lt;<a href="mailto:moises.silva@gmail.com" target="_blank">moises.silva@gmail.com</a>&gt;</span> wrote:<br>






<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi Again Neil,</div><div><br></div><div>I just noticed your dial string is incorrect. The correct syntax is:</div>






<div><br></div><div>OpenZAP/&lt;span&gt;/&lt;chan_code&gt;/[number]</div><div><br></div><div>The span and chan code are mandatory. The number is optional ( FXS channels do not require a number, they just ring the FXO device connected to them).</div>







<div><br></div><div>The span is either a number ( span id, the id is a number assigned in the order in which the span is defined in openzap.conf ) or a span name also as specified in the [span wanpipe &lt;span_name&gt;] line in openzap.conf</div>







<div><br></div><div>The chan code is either a number ( for spans that support individual channel selection, boost is NOT one of them ), or a channel hunting mode, there is currently 2 modes, &quot;a&quot; is top down and &quot;A&quot; is bottom up.</div>







<div><br></div><div>So, this is a valid string for you case:</div><div><br></div><div>OpenZAP/smg_prid/a/&lt;number&gt;</div><div><br></div><div>In the specific case of boost in socket mode ( openzap only supports socket mode ) the number may contain @gX where X is a group ( for hunting as configured in /etc/wanpipe/smg_pri.conf). Boost signaling are a special case because the hunting for channels is not done within FreeSWITCH but in sangoma_prid binary ( in the new OpenZAP version called FreeTDM this has changed depending on configuration).</div>







<div><br></div><div>Bottom line, this should work:</div><div><br></div><div>OpenZAP/smg_prid/a/1234@g1</div><div><br></div><div>If you have g1 configured in /etc/wanpipe/smg_pri.conf</div><div><div><br clear="all">

Moises Silva<br>
Senior Software Engineer<br>Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada<br>t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com" target="_blank">moy@sangoma.com</a><br>
<br><br></div><div><div></div><div><div class="gmail_quote">On Sat, May 15, 2010 at 6:26 PM, Neil Patel <span dir="ltr">&lt;<a href="mailto:neilp@cs.stanford.edu" target="_blank">neilp@cs.stanford.edu</a>&gt;</span> wrote:<br>






<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Span was originally in the boost section when I got this error, so I thought I&#39;d try it in analog and both. None work.<div><br></div><div>-Neil<br><br><div class="gmail_quote">On Sat, May 15, 2010 at 3:18 PM, Moises Silva <span dir="ltr">&lt;<a href="mailto:moises.silva@gmail.com" target="_blank">moises.silva@gmail.com</a>&gt;</span> wrote:<br>









<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Why do you have 2 spans in openzap.conf.xml with the same name, in both the boost and analog sections?<br clear="all">









Moises Silva<br>Senior Software Engineer<br>Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada<br>
t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com" target="_blank">moy@sangoma.com</a><br>
<br><br><div class="gmail_quote"><div><div></div><div>On Sat, May 15, 2010 at 3:52 PM, Neil Patel <span dir="ltr">&lt;<a href="mailto:neilp@cs.stanford.edu" target="_blank">neilp@cs.stanford.edu</a>&gt;</span> wrote:<br>









</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Hi All,<div><br></div><div>I am trying to dial out over my PRI, and am getting this error:</div><div><br></div><div><div>2010-05-16 01:01:21.452392 [CRIT] zap_io.c:1139 SPAN NOT DEFINED!</div><div>2010-05-16 01:01:21.452392 [ERR] mod_openzap.c:1154 No channels available</div>












<div>2010-05-16 01:01:21.452392 [ERR] switch_ivr_originate.c:2249 Cannot create outgoing channel of type [OpenZAP] cause: [NORMAL_CIRCUIT_CONGESTION]</div></div><div><br></div><div><br></div><div>This is my openzap.conf:</div>












<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>[span wanpipe smg_prid]</div></div><div><div>name =&gt; smg_prid</div></div><div><div>trunk_type =&gt;e1</div>

</div><div><div>b-channel =&gt; 1:1-15</div></div><div><div>b-channel =&gt; 1:17-31</div></div><div><div>trunk_type =&gt;e1</div></div><div><div>b-channel =&gt; 2:1-15</div></div><div><div>b-channel =&gt; 2:17-31</div></div>












</blockquote><div><br></div><div>This is my openzap.conf.xml:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>&lt;configuration name=&quot;openzap.conf&quot; description=&quot;OpenZAP Configuration&quot;&gt;</div>












</div><div><div>  &lt;settings&gt;</div></div><div><div>    &lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;</div></div><div><div>   </div></div><div><div>  &lt;/settings&gt;</div></div><div><div>  &lt;boost_spans&gt;</div>












</div><div><div>        &lt;span id=&quot;smg_prid&quot;&gt;</div></div><div><div>        &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;</div></div><div><div>        &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;</div>












</div><div><div>        &lt;/span&gt;</div></div><div><div>  &lt;/boost_spans&gt;</div></div><div><div>  </div></div><div><div>  &lt;analog_spans&gt;</div></div><div><div>        &lt;span id=&quot;smg_prid&quot;&gt;</div>












</div><div><div>        &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;</div></div><div><div>        &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;</div></div><div><div>      </div></div>












<div><div>        &lt;/span&gt;</div></div><div><div>  &lt;/analog_spans&gt;</div></div><div><div>&lt;/configuration&gt;</div></div></blockquote><div><br></div><div>And here is the lua code I&#39;m using to dial out:</div>












<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>sessiondata = &quot;OpenZAP/smg_prid/&lt;num&gt;&quot;</div></div><div><div>new_session = freeswitch.Session(sessiondata)</div>

</div></blockquote><div><br></div><div>What am I missing here? </div><div>Thanks,</div><div>Neil</div><font color="#888888"><div><br></div><div><br></div>
</font><br></div></div><div><div></div><div class="h5">_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div></blockquote></div><div><div></div><div class="h5"><br>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div></blockquote></div><br></div><div><div></div><div class="h5">
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div></blockquote></div><br></div></div></div><div><div></div><div class="h5">
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div></blockquote></div><br></div><div><div></div><div class="h5">
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div></blockquote></div><br></div></div></div><div><div></div><div class="h5">
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div></blockquote></div><br></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></div>