Great. :)<div><br></div><div>I think that 1:1 is equivalent to ${<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><span style="font-family: sans-serif; font-size: 13px; line-height: 19px; ">freetdm_span_number}:${</span><span class="Apple-style-span" style="font-family: sans-serif; line-height: 19px; ">freetdm_chan_number}</span></span></div>

<div><br></div><div>-Steve</div><div><br></div><div><br><div class="gmail_quote">On 2 February 2011 12:08,  <span dir="ltr">&lt;<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I used channel_name like this &lt;condition field=&quot;${Channel_Name}&quot;<br>
expression=&quot;^FreeTDM/1:1/$&quot;&gt;  and that has been working -- freetdm is<br>
not working well, but that is another story.<br>
<div class="im"><br>
Steven Ayre &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt; wrote:<br>
<br>
</div><div><div></div><div class="h5">&gt; Try this:<br>
&gt;<br>
&gt; &lt;extension name=&quot;analog test2&quot; continue=&quot;true&quot;&gt;<br>
&gt;     &lt;condition field=&quot;source&quot; expression=&quot;mod_freetdm&quot;&gt;<br>
&gt;         &lt;action application=&quot;info&quot;/&gt;<br>
&gt;     &lt;/condition&gt;<br>
&gt;  &lt;/extension&gt;<br>
&gt;<br>
&gt; That&#39;ll dump all the fields and variables set. Are there any that indicate<br>
&gt; the FXO port? If not, perhaps you need to configure something - check the<br>
&gt; card&#39;s documentation.<br>
&gt;<br>
&gt; If you find there is a variable containing the port, you can check more than<br>
&gt; one condition. For example:<br>
&gt; &lt;extension name=&quot;analog test2&quot; continue=&quot;true&quot;&gt;<br>
&gt;     &lt;condition field=&quot;source&quot; expression=&quot;mod_freetdm&quot;/&gt;<br>
&gt;     &lt;condition field=&quot;${sangoma_fxo_port_variable_name}&quot; expression=&quot;^1$&quot;&gt;<br>
&gt;      &lt;action application=&quot;set&quot; data=&quot;domain_name=$${domain}&quot;/&gt;<br>
&gt;        &lt;action application=&quot;set&quot; data=&quot;transfer_ringback=$${us-ring}&quot;/&gt;<br>
&gt;        &lt;action application=&quot;answer&quot;/&gt;<br>
&gt;        &lt;action application=&quot;transfer&quot; data=&quot;1000 XML default&quot;/&gt;<br>
&gt;     &lt;/condition&gt;<br>
&gt;  &lt;/extension&gt;<br>
&gt;<br>
&gt; -Steve<br>
&gt;<br>
&gt;<br>
&gt; On 1 February 2011 16:17, Eric Michel &lt;<a href="mailto:eric@bmcrministries.org">eric@bmcrministries.org</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; I&#39;ve got a Sangoma A200 with six FXO ports and two FXS.  I can call out<br>
&gt; &gt; just fine, but I&#39;m having trouble figuring out how to route incoming calls.<br>
&gt; &gt;  We&#39;ve got five POTS lines and all I&#39;ve been able to do is route all<br>
&gt; &gt; incoming calls to a specific extension.  How do I go about routing<br>
&gt; &gt; individual POTS lines to different groups/extensions?<br>
&gt; &gt;<br>
&gt; &gt; &lt;extension name=&quot;analog test2&quot; continue=&quot;true&quot;&gt;<br>
&gt; &gt;     &lt;condition field=&quot;source&quot; expression=&quot;mod_freetdm&quot;&gt;<br>
&gt; &gt;      &lt;action application=&quot;set&quot; data=&quot;domain_name=$${domain}&quot;/&gt;<br>
&gt; &gt;        &lt;action application=&quot;set&quot; data=&quot;transfer_ringback=$${us-ring}&quot;/&gt;<br>
&gt; &gt;        &lt;action application=&quot;answer&quot;/&gt;<br>
&gt; &gt;        &lt;action application=&quot;transfer&quot; data=&quot;1000 XML default&quot;/&gt;<br>
&gt; &gt;     &lt;/condition&gt;<br>
&gt; &gt;  &lt;/extension&gt;<br>
&gt; &gt;<br>
&gt; &gt; That is my current conf/public/inbound dial plan.  Shouldn&#39;t I be able to<br>
&gt; &gt; add a second condition that tests what FXO port is receiving the call and<br>
&gt; &gt; allow me to route it accordingly?  If yes, could I get an example?  The<br>
&gt; &gt; answer may be really simple, I&#39;ve just been unable to find it.<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Eric<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; FreeSWITCH-users mailing list<br>
&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
</div></div>&gt; ----------------------------------------------------<br>
&gt; Alternatives:<br>
&gt;<br>
&gt; ----------------------------------------------------<br>
<div class="im">&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
</div><font color="#888888">--<br>
Your life is like a penny.  You&#39;re going to lose it.  The question is:<br>
How do<br>
you spend it?<br>
<br>
         John Covici<br>
         <a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a><br>
</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br></div>