I&#39;m not sure why you are matching on &quot;chan_name&quot; but even so, you should be able to do it with the groups:<br>&lt;condition field=&quot;chan_name&quot; expression=&quot;OpenZAP/1/(\d+)\@g1&quot;&gt;<br>... stuff for group 1<br>
&lt;/condition&gt;<br>&lt;condition field=&quot;chan_name&quot; expression=&quot;OpenZAP/1/(\d+)\@g2&quot;&gt;<br>
... stuff for group 2<br>
&lt;/condition&gt;<br>
<br>-MC<br><br><div class="gmail_quote">On Thu, Apr 1, 2010 at 9:49 PM, Nagalenoj H. <span dir="ltr">&lt;<a href="mailto:nagalenoj@gmail.com">nagalenoj@gmail.com</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;">
Moises,<br>      In all cases, I should use openzap/1/a/123 and there is no chance for configuring like openzap/1 and openzap/2. Am I right?<br>      <br>      The difficulty I face here is, In dialplan I&#39;m unable to route the calls based on spans, like,<br>

   &lt;condition field=&quot;chan_name&quot; expression=&quot;^OpenZAP/1.*/(.*)&quot;&gt;<br>       &lt;action application=&quot;bridge&quot; data=&quot;openzap/3/a/$1&quot;/&gt;<br>   &lt;/condition&gt;<br>   &lt;condition field=&quot;chan_name&quot; expression=&quot;^OpenZAP/2.*/(.*)&quot;&gt;<br>


       &lt;action application=&quot;playback&quot; data=&quot;under_maintenance.wav&quot;/&gt;<br>
   &lt;/condition&gt;<br><br>       Is there any other way to right the expression to match the spans?<br><br><div class="gmail_quote">On Thu, Apr 1, 2010 at 6:34 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">There can be only 1 boost span currently. All b-channels must be added to that span. Then, in /etc/wanpipe/smg_pri.conf you configure which channels belong to which group. You can see how to configure spans, channels and groups here: <div>


<br><div><a href="http://wiki.sangoma.com/wanpipe-pri-advanced-options" target="_blank">http://wiki.sangoma.com/wanpipe-pri-advanced-options</a><div><br></div><div><a href="http://wiki.sangoma.com/wanpipe-pri-advanced-options" target="_blank"></a>Then when dialing from FreeSWITCH use the syntax requested:</div>


<div><br></div><div>openzap/1/1234@g1 to dial using group 1 defined in smg_pri.conf or openzap/1/1234@g2 to dial using group 2 and so on.</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 class="gmail_quote"><div><div></div><div>On Thu, Apr 1, 2010 at 6:37 AM, Nagalenoj H. <span dir="ltr">&lt;<a href="mailto:nagalenoj@gmail.com" target="_blank">nagalenoj@gmail.com</a>&gt;</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>
Dear friends,<br>    I&#39;m using Sangoma A102 and I&#39;ve configured it with wanpipe. I&#39;ve question with regard to grouping the spans. There are 2 spans in the card and I would want to group the spans separately, so when I want to make call I could specify as either openzap/1/ or openzap/2/...<br>



    But, Now I&#39;m unable to make calls like this. It is asking me to give the dial string as openzap/1/a/123@g1, openzap/1/a/123@g2..<br><br>    I don&#39;t want this way., I would want to group the spans differently. Kindly help me.<br clear="all">



<br>-- <br>Regards,<br><font color="#888888">Nagalenoj H.<br>
</font><br></div></div><div class="im">_______________________________________________<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></blockquote></div><br></div></div></div><div class="im">
<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></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><font color="#888888">Nagalenoj H.<br>
</font><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>