<div dir="ltr"><p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Move the include outside of the context definition as shown below. You were creating contexts within a context which I'm not sure is possible.</p>
<p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><br></b></p><p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b>dialplan/inbound.xml:<u></u><u></u></b></p>
<p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></p><p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><?xml version="1.0" encoding="utf-8"?><u></u><u></u></p>
<p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><include><u></u><u></u></p><p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><X-PRE-PROCESS cmd="include" data="inbound/*.xml"/><br>
</p><p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> <context name="inbound"><u></u><u></u></p><p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<u></u></p><p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></p><p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> <extension name="route_to_context"><u></u><u></u></p>
<p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> <condition field="destination_number" expression="^(\d+)$"><u></u><u></u></p><p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
<action application="transfer" data="start XML $1"/><u></u><u></u></p><p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </condition><u></u><u></u></p>
<p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </extension><u></u><u></u></p><p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> <u></u><u></u></p>
<p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </context><u></u><u></u></p><p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"></include><u></u><u></u></p>
<p class="" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><u></u> </p></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 9 October 2013 09:29, 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"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Isn’t it possible to load more than one context?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">When entering the initial inbound context. It should be possible to transfer to another, shouldn’t it?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Lloyd Aloysius<br>
<b>Sent:</b> Tuesday, October 8, 2013 5:00 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] Multiple contexts per sip profile<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p>
<div><div><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Please have a look into here<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><u></u> <u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><a href="http://wiki.freeswitch.org/wiki/Multi-tenant" target="_blank">http://wiki.freeswitch.org/wiki/Multi-tenant</a><u></u><u></u></span></p>
</div><div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><div><div><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Lloyd<u></u><u></u></span></p></div></div><div><p class="MsoNormal">
<b><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#cc6600"> </span></b><u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><div>
<div class="h5"><p class="MsoNormal">On Tue, Oct 8, 2013 at 10:51 AM, Grant Bagdasarian <<a href="mailto:GB@cm.nl" target="_blank">GB@cm.nl</a>> wrote:<u></u><u></u></p><div><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:</b><u></u><u></u></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:</b><u></u><u></u></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:</b><u></u><u></u></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:</b><u></u><u></u></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></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">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" 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><u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div></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><br clear="all"><div><br></div>-- <br><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="http://c1170247.r47.cf3.rackcdn.com/emailsig.png"><br></div><div><br><div>
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">T</a> </b>03300 100 960
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">F</a> </b>03300 100 961</div>
<div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">E</a> </b><a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a></div>
<div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">W</a> </b><a href="http://www.cassidywebservices.co.uk" target="_blank">www.cassidywebservices.co.uk</a></div>
</div></div></div>
</div>