<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hey,<br>
<br>
1. You should have authentication on the profile to use
"user_context" parameter in the directory.<br>
2. I'd change the dial string in the bridge application to
<a class="moz-txt-link-rfc2396E" href="mailto:user/6001@mydomain.com">"user/6001@mydomain.com"</a>. <br>
<br>
In this <a
href="http://osdir.com/ml/telephony.freeswitch.user/2008-07/msg00679.html">thread</a>
Brian explains the reason for #1.<br>
Wiki <a
href="http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML#SIP-Specific_Dialstrings">page</a>
describes sip-specific dialstrings.<br>
<br>
Regards,<br>
Christian<br>
<br>
<br>
On 2013-06-25 16:37, Peter Blackford wrote:<br>
</div>
<blockquote
cite="mid:CAG1aRi8Djf9ppKQBsxCnQ8+Nm3+VHdaFNhNMM++mkouJvQfixw@mail.gmail.com"
type="cite">
<div dir="ltr">sorry that last command should be:<br>
<div><span
style="font-family:arial,sans-serif;font-size:12.727272033691406px">freeswitch@internal> </span><span
style="font-family:arial,sans-serif;font-size:12.727272033691406px">sofia
status profile </span><span
style="font-family:arial,sans-serif;font-size:12.727272033691406px"><a
moz-do-not-send="true" href="http://mydomain.com">mydomain.com</a></span><span
style="font-family:arial,sans-serif;font-size:12.727272033691406px"> reg</span></div>
<div><span
style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
</span></div>
<div style=""><span
style="font-family:arial,sans-serif;font-size:12.727272033691406px">It
should return both extensions with the status registered</span></div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 26 June 2013 00:35, Peter
Blackford <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:peter@onemetric.com" target="_blank">peter@onemetric.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Have you set the force-register-domain and
force-register-db-domain variables in the sip profile<span
style="line-height:1.1em;background-color:rgb(249,249,249)"> (</span><a
moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Multi-tenant#SIP_Profiles"
target="_blank">http://wiki.freeswitch.org/wiki/Multi-tenant#SIP_Profiles</a>)
<div>
<br>
</div>
<div>Another thing to check is to make sure they are
registered with freeswitch:</div>
<div>freeswitch@internal> sofia status profile <span
style="font-family:arial,sans-serif;font-size:12.727272033691406px">mydomain.com.xml</span> reg</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>
<div class="h5">On 25 June 2013 22:25, Zoltán
Szabó <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:zzoell@gmail.com"
target="_blank">zzoell@gmail.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
<div dir="ltr">
<p>Hi,</p>
<p>I'm trying to set up a multi tenant
config with FS. At the moment i configured
only one domain, lets say it is <a
moz-do-not-send="true"
href="http://mydomain.com"
target="_blank">mydomain.com</a><br>
</p>
<p>This is my mydomain.com.xml in dialplan
directory:<br>
</p>
<pre><?xml version="1.0" encoding="utf-8"?>
<include>
<context name="<a moz-do-not-send="true" href="http://mydomain.com" target="_blank">mydomain.com</a>">
<extension name="Internal Call">
                <condition field="destination_number" expression="^(\d\d\d\d)$">
                        <action application="bridge" data="sofia/<a moz-do-not-send="true" href="http://mydomain.com/$1" target="_blank">mydomain.com/$1</a>"/>
                </condition>
</extension>
</context>
</include>
</pre>
<p>Here is my mydomain.com.xml in the
directory directory:<br>
</p>
<pre><include>
<domain name="<a moz-do-not-send="true" href="http://mydomain.com" target="_blank">mydomain.com</a>">
<params>
<param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
</params>
<variables>
<variable name="record_stereo" value="true"/>
<variable name="default_gateway" value="$${default_provider}"/>
<variable name="default_areacode" value="$${default_areacode}"/>
<variable name="transfer_fallback_extension" value="operator"/>
<variable name="user_context" value="<a moz-do-not-send="true" href="http://mydomain.com" target="_blank">mydomain.com</a>"/>
</variables>
<groups>
<group name="<a moz-do-not-send="true" href="http://mydomain.com" target="_blank">mydomain.com</a>">
<users>
<X-PRE-PROCESS cmd="include" data="<a moz-do-not-send="true" href="http://mydomain.com/*.xml" target="_blank">mydomain.com/*.xml</a>"/>
</users>
</group>
</groups>
</domain>
</include>
</pre>
<p>The directory/<a moz-do-not-send="true"
href="http://mydomain.com"
target="_blank">mydomain.com</a>
contains two users (i dont configured
user_context here because its configured
in the previous config already):<br>
</p>
<p>6000.xml:</p>
<pre><include>
<user id="6000">
<params>
<param name="password" value="12345"/>
<param name="vm-password" value="12345"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="6000"/>
<!--<variable name="user_context" value="default"/>-->
<variable name="effective_caller_id_name" value="Mr. Teszt Elek"/>
<variable name="effective_caller_id_number" value="6000"/>
<variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>
</pre>
<p>6001.xml:</p>
<pre><include>
<user id="6001">
<params>
<param name="password" value="12345"/>
<param name="vm-password" value="12345"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="6001"/>
<!--<variable name="user_context" value="default"/>-->
<variable name="effective_caller_id_name" value="Mekk Elek"/>
<variable name="effective_caller_id_number" value="6001"/>
<variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>
</pre>
<p>I can login with softphones to 6000 and
6001. Now im trying to call from 6000 to
6001 and it seems not working for some
reason. First of all every time i call it
tries to get dialplan from the public
context. I changed the context parameter
in the interlan sip profile so it is now
looking for the dialplan in my <a
moz-do-not-send="true"
href="http://mydomain.com"
target="_blank">mydomain.com</a>
contexts<br>
</p>
<pre>2013-06-25 01:59:32.470028 [NOTICE] switch_channel.c:968 New Channel sofia/internal/<a moz-do-not-send="true" href="http://6000@mydomain.com:5060" target="_blank">6000@mydomain.com:5060</a> [ffc81a48-2c77-4797-8f96-fcf291fc6da3]
2013-06-25 01:59:32.650035 [INFO] mod_dialplan_xml.c:557 Processing 6000 <6000>->6001 in context <a moz-do-not-send="true" href="http://mydomain.com" target="_blank">mydomain.com</a>
2013-06-25 01:59:32.650035 [WARNING] mod_sofia.c:4839 Cannot locate registered user <a moz-do-not-send="true" href="mailto:6001@mydomain.com" target="_blank">6001@mydomain.com</a>
2013-06-25 01:59:32.650035 [NOTICE] mod_sofia.c:5079 Close Channel N/A [CS_NEW]
2013-06-25 01:59:32.650035 [NOTICE] switch_ivr_originate.c:2608 Cannot create outgoing channel of type [sofia] cause: [USER_NOT_REGISTERED]
2013-06-25 01:59:32.650035 [INFO] mod_dptools.c:3055 Originate Failed. Cause: USER_NOT_REGISTERED
2013-06-25 01:59:32.650035 [NOTICE] mod_dptools.c:3175 Hangup sofia/internal/<a moz-do-not-send="true" href="http://6000@mydomain.com:5060" target="_blank">6000@mydomain.com:5060</a> [CS_EXECUTE] [USER_NOT_REGISTERED]
2013-06-25 01:59:32.650035 [NOTICE] switch_core_session.c:1506 Session 4 (sofia/internal/<a moz-do-not-send="true" href="http://6000@mydomain.com:5060" target="_blank">6000@mydomain.com:5060</a>) Ended
2013-06-25 01:59:32.650035 [NOTICE] switch_core_session.c:1510 Close Channel sofia/internal/<a moz-do-not-send="true" href="http://6000@mydomain.com:5060" target="_blank">6000@mydomain.com:5060</a> [CS_DESTROY]
</pre>
<p>By the way my default port is not 5060 as
it is written in the log, its a totally
different number.</p>
<p>I tried with this bridge too:<br>
</p>
<pre><action application="bridge" data="sofia/internal/$<a moz-do-not-send="true" href="mailto:1@mydomain.com" target="_blank">1@mydomain.com</a>"/>
</pre>
<p>The error now with this:<br>
</p>
<pre>2013-06-25 02:04:06.910054 [NOTICE] switch_channel.c:968 New Channel sofia/internal/<a moz-do-not-send="true" href="http://6000@mydomain.com:5060" target="_blank">6000@mydomain.com:5060</a> [954bab64-1a79-4cd1-bab1-51d0f87410f2]
2013-06-25 02:04:07.090036 [INFO] mod_dialplan_xml.c:557 Processing 6000 <6000>->6001 in context <a moz-do-not-send="true" href="http://mydomain.com" target="_blank">mydomain.com</a>
2013-06-25 02:04:07.090036 [NOTICE] switch_channel.c:968 New Channel sofia/internal/<a moz-do-not-send="true" href="mailto:6001@mydomain.com" target="_blank">6001@mydomain.com</a> [3f59b312-7b62-4757-87c4-ce737ea405b8]
2013-06-25 02:04:07.090036 [NOTICE] sofia.c:6383 Hangup sofia/internal/<a moz-do-not-send="true" href="mailto:6001@mydomain.com" target="_blank">6001@mydomain.com</a> [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]
2013-06-25 02:04:07.113421 [INFO] mod_dptools.c:3055 Originate Failed. Cause: NORMAL_TEMPORARY_FAILURE
2013-06-25 02:04:07.113421 [NOTICE] mod_dptools.c:3175 Hangup sofia/internal/<a moz-do-not-send="true" href="http://6000@mydomain.com:5060" target="_blank">6000@mydomain.com:5060</a> [CS_EXECUTE] [NORMAL_TEMPORARY_FAILURE]
2013-06-25 02:04:07.160607 [NOTICE] switch_core_session.c:1506 Session 9 (sofia/internal/<a moz-do-not-send="true" href="mailto:6001@mydomain.com" target="_blank">6001@mydomain.com</a>) Ended
2013-06-25 02:04:07.160607 [NOTICE] switch_core_session.c:1510 Close Channel sofia/internal/<a moz-do-not-send="true" href="mailto:6001@mydomain.com" target="_blank">6001@mydomain.com</a> [CS_DESTROY]
2013-06-25 02:04:07.223801 [NOTICE] switch_core_session.c:1506 Session 8 (sofia/internal/<a moz-do-not-send="true" href="http://6000@mydomain.com:5060" target="_blank">6000@mydomain.com:5060</a>) Ended
2013-06-25 02:04:07.223801 [NOTICE] switch_core_session.c:1510 Close Channel sofia/internal/<a moz-do-not-send="true" href="http://6000@mydomain.com:5060" target="_blank">6000@mydomain.com:5060</a> [CS_DESTROY]
</pre>
<p>Have two questions. Why is this error
happening? From my asterisk experiences
maybe i have to create a context where my
extensions can receive the calls? Other
question is how can i tell the <a
moz-do-not-send="true"
href="http://mydomain.com"
target="_blank">mydomain.com</a> domain
to use the mydomain.com.xml dialplan not
the public?<br>
</p>
<p>Thanks,<br>
Zoltan<br>
</p>
</div>
<br>
</div>
</div>
_________________________________________________________________________<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>
</blockquote>
</div>
<br>
<br>
</div>
</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>