Hi Moises,<br><br>I recently added a second PRI line to my A102 and followed your instructions below (modified /etc/wanpipe/smg_pri.conf; openzap.conf as shown below) and can successfully dial out with g1, but not the recently added second line set on g2. Below is the error we get:<br>
<br>freeswitch@otalo> originate openzap/smg_prid/a/<num>@g2 &echo<br>2010-06-21 19:15:59.591930 [WARNING] ozmod_sangoma_boost.c:344 TX EVENT: CALL_START:(80) [w1g1] CSid=3 Seq=4 Cn=[N/A] Cd=[9586550654] Ci=[N/A] Rdnis=[]<br>
2010-06-21 19:15:59.624992 [WARNING] ozmod_sangoma_boost.c:1632 RX EVENT (N): CALL_START_ACK:(81) [w2g1] Rc=0 CSid=3 Seq=6 <br>2010-06-21 19:15:59.625987 [NOTICE] switch_channel.c:675 New Channel OpenZAP/1:31/<num>@g2 [19ae26fb-f9e4-480a-9cc7-11fa91b8bb1c]<br>
2010-06-21 19:15:59.724996 [WARNING] ozmod_sangoma_boost.c:1632 RX EVENT (N): CALL_STOPPED:(85) [w2g1] Rc=3 CSid=3 Seq=7 <br>2010-06-21 19:15:59.724996 [NOTICE] mod_openzap.c:1935 Hangup OpenZAP/1:31/<num>@g2 [CS_CONSUME_MEDIA] [NO_ROUTE_DESTINATION]<br>
<br>-ERR NO_ROUTE_DESTINATION<br><br>Seems like a config issue, but not sure what I'm missing. Any ideas?<br><br>Thanks in advance,<br>Neil<br><br><div class="gmail_quote">On Sun, May 16, 2010 at 10:50 AM, 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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><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"><<a href="mailto:neilp@cs.stanford.edu" target="_blank">neilp@cs.stanford.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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="border: medium none ; margin: 0pt 0pt 0pt 40px; 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="border: medium none ; margin: 0pt 0pt 0pt 40px; 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="border: medium none ; margin: 0pt 0pt 0pt 40px; 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" 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>