I'm not sure why you are matching on "chan_name" but even so, you should be able to do it with the groups:<br><condition field="chan_name" expression="OpenZAP/1/(\d+)\@g1"><br>... stuff for group 1<br>
</condition><br><condition field="chan_name" expression="OpenZAP/1/(\d+)\@g2"><br>
... stuff for group 2<br>
</condition><br>
<br>-MC<br><br><div class="gmail_quote">On Thu, Apr 1, 2010 at 9:49 PM, Nagalenoj H. <span dir="ltr"><<a href="mailto:nagalenoj@gmail.com">nagalenoj@gmail.com</a>></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'm unable to route the calls based on spans, like,<br>
<condition field="chan_name" expression="^OpenZAP/1.*/(.*)"><br> <action application="bridge" data="openzap/3/a/$1"/><br> </condition><br> <condition field="chan_name" expression="^OpenZAP/2.*/(.*)"><br>
<action application="playback" data="under_maintenance.wav"/><br>
</condition><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"><<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;">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"><<a href="mailto:nagalenoj@gmail.com" target="_blank">nagalenoj@gmail.com</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>
Dear friends,<br> I'm using Sangoma A102 and I've configured it with wanpipe. I'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'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'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>