<meta charset="utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>Try this:</div><div><br></div><div><extension name="analog test2" continue="true"></div>
<div> <condition field="source" expression="mod_freetdm"><span style="white-space: pre-wrap; ">                                </span></div><div> <span style="white-space: pre-wrap; ">        </span><action application="info"/></div>
<div> </condition></div><div> </extension></div><div><br></div><div>That'll dump all the fields and variables set. Are there any that indicate the FXO port? If not, perhaps you need to configure something - check the card's documentation.</div>
<div><br></div><div>If you find there is a variable containing the port, you can check more than one condition. For example:</div><div><meta charset="utf-8"><span class="Apple-style-span" style="border-collapse: separate; font-family: arial; font-size: small; "><div>
<extension name="analog test2" continue="true"></div><div><meta charset="utf-8"><div> <condition field="source" expression="mod_freetdm"/></div><div> <condition field="${sangoma_fxo_port_variable_name}" expression="^1$"><span style="white-space: pre-wrap; ">                                </span></div>
<span style="white-space: pre-wrap; ">        </span><action application="set" data="domain_name=$${domain}"/></div><div> <span style="white-space: pre-wrap; ">        </span><action application="set" data="transfer_ringback=$${us-ring}"/></div>
<div> <span style="white-space: pre-wrap; ">        </span><action application="answer"/></div><div> <span style="white-space: pre-wrap; ">        </span><action application="transfer" data="1000 XML default"/></div>
<div> </condition></div><div> </extension></div><div><br></div><div>-Steve</div><div><br></div></span></div></span><br><div class="gmail_quote">On 1 February 2011 16:17, Eric Michel <span dir="ltr"><<a href="mailto:eric@bmcrministries.org">eric@bmcrministries.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I've got a Sangoma A200 with six FXO ports and two FXS. I can call out just fine, but I'm having trouble figuring out how to route incoming calls. We've got five POTS lines and all I've been able to do is route all incoming calls to a specific extension. How do I go about routing individual POTS lines to different groups/extensions? <div>
<br></div><div><div><extension name="analog test2" continue="true"></div><div> <condition field="source" expression="mod_freetdm"><span style="white-space:pre-wrap">                                </span></div>
<div> <span style="white-space:pre-wrap">        </span><action application="set" data="domain_name=$${domain}"/></div><div> <span style="white-space:pre-wrap">        </span><action application="set" data="transfer_ringback=$${us-ring}"/></div>
<div> <span style="white-space:pre-wrap">        </span><action application="answer"/></div><div> <span style="white-space:pre-wrap">        </span><action application="transfer" data="1000 XML default"/></div>
<div> </condition></div><div> </extension></div></div><div><br></div><div>That is my current conf/public/inbound dial plan. Shouldn't I be able to add a second condition that tests what FXO port is receiving the call and allow me to route it accordingly? If yes, could I get an example? The answer may be really simple, I've just been unable to find it.</div>
<div><br></div><div>Thanks,</div><div>Eric</div>
<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>