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 class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div><div>> originate openzap/smg_prid/a/<num> &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> 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 class="webkit-indent-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">what'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"><<a href="mailto:moises.silva@gmail.com">moises.silva@gmail.com</a>></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/<span>/<chan_code>/[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 <span_name>] 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, "a" is top down and "A" 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/<number></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 class="im"><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 class="h5"><div class="gmail_quote">On Sat, May 15, 2010 at 6:26 PM, Neil Patel <span dir="ltr"><<a href="mailto:neilp@cs.stanford.edu" target="_blank">neilp@cs.stanford.edu</a>></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'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"><<a href="mailto:moises.silva@gmail.com" target="_blank">moises.silva@gmail.com</a>></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"><<a href="mailto:neilp@cs.stanford.edu" target="_blank">neilp@cs.stanford.edu</a>></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 => smg_prid</div></div><div><div>trunk_type =>e1</div>
</div><div><div>b-channel => 1:1-15</div></div><div><div>b-channel => 1:17-31</div></div><div><div>trunk_type =>e1</div></div><div><div>b-channel => 2:1-15</div></div><div><div>b-channel => 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><configuration name="openzap.conf" description="OpenZAP Configuration"></div>
</div><div><div> <settings></div></div><div><div> <param name="debug" value="0"/></div></div><div><div> </div></div><div><div> </settings></div></div><div><div> <boost_spans></div>
</div><div><div> <span id="smg_prid"></div></div><div><div> <param name="dialplan" value="XML"/></div></div><div><div> <param name="context" value="default"/></div>
</div><div><div> </span></div></div><div><div> </boost_spans></div></div><div><div> </div></div><div><div> <analog_spans></div></div><div><div> <span id="smg_prid"></div>
</div><div><div> <param name="dialplan" value="XML"/></div></div><div><div> <param name="context" value="default"/></div></div><div><div> </div></div>
<div><div> </span></div></div><div><div> </analog_spans></div></div><div><div></configuration></div></div></blockquote><div><br></div><div>And here is the lua code I'm using to dial out:</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>sessiondata = "OpenZAP/smg_prid/<num>"</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>_______________________________________________<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></blockquote></div><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></blockquote></div><br></div>
<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></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></div>