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