<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Please have a look into here</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">
<a href="http://wiki.freeswitch.org/wiki/Multi-tenant">http://wiki.freeswitch.org/wiki/Multi-tenant</a><br></div><div class="gmail_extra"><br clear="all"><div><font face="verdana, sans-serif"><div><font face="verdana, sans-serif"><span></span><span></span><a></a><div class="gmail_default" style="font-family:verdana,sans-serif;display:inline">
Lloyd</div></font></div></font><div><font face="verdana, sans-serif" color="#cc6600" size="1"><b> <a href="http://www.sunteltech.ca/blog/" target="_blank"></a></b></font></div></div>
<br><br><div class="gmail_quote">On Tue, Oct 8, 2013 at 10:51 AM, Grant Bagdasarian <span dir="ltr"><<a href="mailto:GB@cm.nl" target="_blank">GB@cm.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hello,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’m trying to configure FreeSWITCH to have multiple contexts per sip profile like below.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">But this does not seem to work.<u></u><u></u></p><p class="MsoNormal">The reason I want this, is to have each incoming called number to have its own context in which extensions can be created. <u></u><u></u></p>
<p class="MsoNormal">The problem with using extensions and only one context is I can’t defined more than one extension with the same name. FS seems to overwrite or ignore ones that do.<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">Is this even possible? If so, what do I need to change? Is there perhaps a better way for doing this?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
<b>sip_profile/inbound.xml:<u></u><u></u></b></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><profile name="inbound"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> <settings><u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal"> <param name="context" value="inbound"/><u></u><u></u></p><p class="MsoNormal"> <param name="dialplan" value="XML"/><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> </settings><u></u><u></u></p><p class="MsoNormal"></profile><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><b>dialplan/inbound.xml:<u></u><u></u></b></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><?xml version="1.0" encoding="utf-8"?><u></u><u></u></p><p class="MsoNormal"><include><u></u><u></u></p><p class="MsoNormal"> <context name="inbound"><u></u><u></u></p>
<p class="MsoNormal"> <X-PRE-PROCESS cmd="include" data="inbound/*.xml"/><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> <extension name="route_to_context"><u></u><u></u></p>
<p class="MsoNormal"> <condition field="destination_number" expression="^(\d+)$"><u></u><u></u></p><p class="MsoNormal"> <action application="transfer" data="start XML $1"/><u></u><u></u></p>
<p class="MsoNormal"> </condition><u></u><u></u></p><p class="MsoNormal"> </extension><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> </context><u></u><u></u></p>
<p class="MsoNormal"></include><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><b>dialplan/inbound/1000.xml:<u></u><u></u></b></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
<include><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> <context name="1000"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> <extension name="start"><u></u><u></u></p>
<p class="MsoNormal"> <condition field="destination_number" expression="^(\d+)"><u></u><u></u></p><p class="MsoNormal"> <action application="answer"/><u></u><u></u></p>
<p class="MsoNormal"> <action application="transfer" data="playback"/><u></u><u></u></p><p class="MsoNormal"> </condition><u></u><u></u></p><p class="MsoNormal"> </extension><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> <extension name="playback"><u></u><u></u></p><p class="MsoNormal"> <condition><u></u><u></u></p>
<p class="MsoNormal"> <action application="playback" data="/usr/src/freeswitch/sounds/fs-hello-world-for-1000.wav"/><u></u><u></u></p><p class="MsoNormal"> </condition><u></u><u></u></p>
<p class="MsoNormal"> </extension><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> </context><u></u><u></u></p><p class="MsoNormal"></include><u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal"><b>dialplan/inbound/1001.xml:<u></u><u></u></b></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><include><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> <context name="1001"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> <extension name="start"><u></u><u></u></p><p class="MsoNormal">
<condition field="destination_number" expression="^(\d+)"><u></u><u></u></p><p class="MsoNormal"> <action application="answer"/><u></u><u></u></p><p class="MsoNormal">
<action application="transfer" data="playback"/><u></u><u></u></p><p class="MsoNormal"> </condition><u></u><u></u></p><p class="MsoNormal"> </extension><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> <extension name="playback"><u></u><u></u></p><p class="MsoNormal"> <condition><u></u><u></u></p>
<p class="MsoNormal"> <action application="playback" data="/usr/src/freeswitch/sounds/fs-hello-world-for-1001.wav"/><u></u><u></u></p><p class="MsoNormal"> </condition><u></u><u></u></p>
<p class="MsoNormal"> </extension><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> </context><u></u><u></u></p><p class="MsoNormal"></include><u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></div></div>