<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
This would make sense in Asterisk, but FS differentiates between
'extensions' and 'users'. An extension is simply a destination for a
number, with a set of conditions and actions. A user is still
necessary if you want to register a phone or a soft client. Hence,
FS vanilla only declares the extension once, but has multiple users
that reference to it. Declaring the extension multiple times isn't
necessary and has no effect since there is no user-no.xml to
reference to it, so it fails. Simply changing the destination_number
condition to match your number range and creating normal users (like
the 1000 - 1019 that come with vanilla) is enough to do what you are
trying to do.<br>
<br>
The Freeswitch 1.2 book on PaktPub is well worth the coin if you
have it, just to save many hours of tinkering and being trapped by
'Asterisk logic'. FS has built in heuristics for detecting guesswork
and it exacts the most terrifying revenge upon the offender.<br>
<br>
Francis<br>
<br>
<br>
<div class="moz-cite-prefix">On 8/06/2014 6:09 AM, Richard Mace
wrote:<br>
</div>
<blockquote
cite="mid:CAK+KT392fFh+UouLu9EXrrGZEuHRdxHWK31Tk-4hn44_UXh4NA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">Hi Francis,</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">I have actually
commented that out, and replaced it with multiple files, in
the /etc/freeswitch/dialplan/default/ such as this, which I
believe is the same as splitting out the vanilla local
extension, that is, when 203 is dialled, FreeSWITCH would look
through all of the .xml files until it found this code, and
would then ring the extension?:</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">
<div class="gmail_default"><include></div>
<div class="gmail_default">
<extension name="203"></div>
<div class="gmail_default"> <condition
field="destination_number" expression="^(203)$"></div>
<div class="gmail_default"> <action
application="export" data="dialed_extension=$1"/></div>
<div class="gmail_default"> <!-- bind_meta_app can
have these args <key> [a|b|ab] [a|b|o|s] <app>
--></div>
<div class="gmail_default"> <action
application="bind_meta_app" data="1 b s
execute_extension::dx XML features"/></div>
<div class="gmail_default"> <action
application="bind_meta_app" data="2 b s
record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/></div>
<div class="gmail_default">
<action application="bind_meta_app" data="3 b s
execute_extension::cf XML features"/></div>
<div class="gmail_default"> <action
application="bind_meta_app" data="4 b s
execute_extension::att_xfer XML features"/></div>
<div class="gmail_default"> <action application="set"
data="ringback=${uk-ring}"/></div>
<div class="gmail_default"> <action application="set"
data="transfer_ringback=$${hold_music}"/></div>
<div class="gmail_default"> <action application="set"
data="call_timeout=14"/></div>
<div class="gmail_default"> <!-- <action
application="set"
data="sip_exclude_contact=${network_addr}"/> --></div>
<div class="gmail_default"> <action application="set"
data="hangup_after_bridge=true"/></div>
<div class="gmail_default"> <!--<action
application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/>
--></div>
<div class="gmail_default"> <action application="set"
data="continue_on_fail=true"/></div>
<div class="gmail_default"> <action application="hash"
data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/></div>
<div class="gmail_default"> <action application="hash"
data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/></div>
<div class="gmail_default"> <action application="set"
data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name}
var callgroup)}"/></div>
<div class="gmail_default"> <action application="hash"
data="insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid}"/></div>
<div class="gmail_default"> <action application="hash"
data="insert/${domain_name}-last_dial_ext/global/${uuid}"/></div>
<div class="gmail_default"> <!--<action
application="export"
data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name}
var sip_secure_media)}"/>--></div>
<div class="gmail_default">
<action application="hash"
data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/></div>
<div class="gmail_default"> <action
application="bridge"
data="user/${dialed_extension}@${domain_name}"/></div>
<div class="gmail_default"> <action
application="answer"/></div>
<div class="gmail_default"> <action
application="sleep" data="1000"/></div>
<div class="gmail_default"> <action
application="bridge" data="loopback/app=voicemail:default
${domain_name} ${dialed_extension}"/></div>
<div class="gmail_default"> </condition></div>
<div class="gmail_default"> </extension></div>
<div class="gmail_default"></include></div>
<div><br>
</div>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">
Richard</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 7 June 2014 18:23, Francis <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:sms@icefire.qza.net.au" target="_blank">sms@icefire.qza.net.au</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Close, that tells it
to include the files you created, but it doesn't tell FS
to actually recognize them when they are dialed. There is
an extension in this file with a condition statement:<br>
<br>
<condition field="destination_number"
expression="^(10[0,1][1-9])$"><br>
<br>
You should see some comments before the extension
describing what it is and does. This extension has all the
actions that are/can be executed when an internal endpoint
is dialed. As you can see, the statement above uses PCRE
to match the number dialed, and it needs to match your
desired numbering scheme in order to work. Just make sure
that when you modify it, that it doesn't clash with any of
the other extensions in the dialplan, most of which are in
this file. If you haven't already, have a sift though the
wiki on dialplan settings:<br>
<br>
<a moz-do-not-send="true"
href="https://wiki.freeswitch.org/wiki/Dialplan_XML"
target="_blank">https://wiki.freeswitch.org/wiki/Dialplan_XML</a><br>
<br>
Francis
<div>
<div class="h5"><br>
<br>
<br>
<div>On 8/06/2014 2:42 AM, Richard Mace wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">Hi
Franics,</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">When
you say "recognize this numbering plan" do you
mean this line?:</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">
<div class="gmail_default"> <!--</div>
<div class="gmail_default"> You can
place files in the default directory to get
included.</div>
<div class="gmail_default"> --></div>
<div class="gmail_default"> <X-PRE-PROCESS
cmd="include" data="default/*.xml"/></div>
<div><br>
</div>
<div>Or am I missing something else?</div>
<div><br>
</div>
</div>
<div class="gmail_extra">
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">​
Richard​</div>
<br>
<br>
<div class="gmail_quote"> On 7 June 2014 12:45,
Francis <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:sms@icefire.qza.net.au"
target="_blank">sms@icefire.qza.net.au</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Have
you modified the file:<br>
<br>
/etc/freeswitch/dialplan/default.xml<br>
<br>
to recognize this numbering plan? If not,
just saving extensions won't work.<span><font
color="#888888"><br>
<br>
-Francis</font></span>
<div>
<div><br>
<br>
<br>
<div>On 7/06/2014 9:30 PM, Richard
Mace wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div
style="font-family:arial,helvetica,sans-serif">Hi
Francis,</div>
<div
style="font-family:arial,helvetica,sans-serif">It
is a vanilla install, with the
addition of extensions 201,202
and 203 all saved as seperate
.xml files in
/etc/freeswitch/dialplan/default/
directory</div>
<div
style="font-family:arial,helvetica,sans-serif"><br>
</div>
<div
style="font-family:arial,helvetica,sans-serif">Richard</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 7
June 2014 10:57, Francis <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:sms@icefire.qza.net.au"
target="_blank">sms@icefire.qza.net.au</a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> Is this
the vanilla config of
Freeswitch? Vanilla only
recognizes extensions 1000
to 1019, unless you modify
the match string in the
dialplan.<span><font
color="#888888"><br>
<br>
-Francis</font></span>
<div>
<div><br>
<br>
<br>
<div>On 7/06/2014 5:53
AM, Richard Mace
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">
<div
style="font-family:arial,helvetica,sans-serif">Thanks
for your help
Matt.</div>
<div
style="font-family:arial,helvetica,sans-serif">Did
I include a good
enough sip trace
in my first
post?</div>
<div
style="font-family:arial,helvetica,sans-serif"><br>
</div>
<div
style="font-family:arial,helvetica,sans-serif">Richard</div>
<div
class="gmail_extra"><br>
<br>
<div
class="gmail_quote">
On 6 June 2014
16:07, Matt
Broad <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:matt@inveroak.com" target="_blank">matt@inveroak.com</a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0px
0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div
text="#000000"
bgcolor="#FFFFFF"> strange :|<br>
Sorry to say
but I think I
may have to
step out and
let someone
else see if
they can offer
some
assistance.<br>
<br>
thanks<br>
Matt
<div>
<div><br>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<div>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</div>
</blockquote>
<br>
</div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH
Consulting Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org"
target="_blank">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com"
target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX:
The CudaTel Communication
Server<br>
<a moz-do-not-send="true"
href="http://www.cudatel.com"
target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org"
target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing
list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org"
target="_blank">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com"
target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel
Communication Server<br>
<a moz-do-not-send="true"
href="http://www.cudatel.com"
target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org"
target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a moz-do-not-send="true" href="http://www.cudatel.com"
target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org"
target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>