Thanks Milena. I think I have a much better understanding of how it works, the main thing being you have to have an entry in the DNS server to point the multi-tenancy domain name to the IP address of the FS server and make sure the SIP client also has the correct domain name. All is now better with the following config (unless you can see a glaring error).<br>
User Directory<br>------------------------------------------<br><?xml version="1.0" encoding="UTF-8" standalone="no"?><br><document type="freeswitch/xml"><br><section name="directory" description="User Directory"><br>
<domain name="$${domain}"><br><groups><br> <group name="default"><br> <users><br> <user id="203"><br> <params><br> <param name="password" value="$${default_password}"/><br>
<param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}\}${sofia_contact(${dialed_user}@${dialed_domain})}"/><br> <param name="vm-password" value="1234"/><br>
<param name="vm-disk-quota" value="30"/><br> </params><br> <variables><br> <variable name="user_context" value="default"/><br> <variable name="accountcode" value="203"/><br>
<variable name="day_bar" value="3"/><br> <variable name="night_bar" value="3"/><br> <variable name="effective_caller_id_name" value="Extension 203"/><br>
<variable name="effective_caller_id_number" value="203"/><br> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/><br> <variable name="outbound_caller_id_number" value="$${outbound_caller_number}"/><br>
</variables><br> </user><br> </users><br> </group><br></groups><br></domain><br></section><br></document><br>--------------------------------------------------<br><br>
Company Directory<br>------------------------------------------------------<br><?xml version="1.0" encoding="UTF-8" standalone="no"?><br><document type="freeswitch/xml"><br>
<section name="directory" description="Company Directory"><br><domain name="$${domain}"><br> <params><br> <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/><br>
</params><br> <variables><br> <variable name="record_stereo" value="true"/><br> <variable name="default_gateway" value="$${default_provider}"/><br> <variable name="default_areacode" value="$${default_areacode}"/><br>
<variable name="transfer_fallback_extension" value="operator"/><br> <variable name="user_context" value="default"/><br> </variables><br></domain><br>
<domain name="phitel.phisys.dom"><br> <params><br> <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/><br>
</params><br> <variables><br> <variable name="record_stereo" value="true"/><br> <variable name="default_gateway" value="$${default_provider}"/><br> <variable name="default_areacode" value="$${default_areacode}"/><br>
<variable name="transfer_fallback_extension" value="operator"/><br> <variable name="user_context" value="phitel.phisys.dom"/><br> </variables><br></domain><br>
</section><br></document><br>--------------------------------------------------------<br><br><div class="gmail_quote">On 19 March 2010 13:39, Milena <span dir="ltr"><<a href="mailto:testeador01@gmail.com">testeador01@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Hello,</div><div><br></div>None of them are ok for the domain you want to register to, when you set up multiple domains, you have to return the results with the domain name you're giving information about, make it return another xml with<div>
<domain name="192.168.101.102"><br><br><div class="gmail_quote">2010/3/18 lloyd thomas <span dir="ltr"><<a href="mailto:lloydie.t@googlemail.com" target="_blank">lloydie.t@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
I eventually managed to get mod_xml_curl working for me. Now I trying to be a bit cleverer setting up a multi-tenancy using mod_xml_curl based on the wiki instrucions
<a href="http://wiki.freeswitch.org/wiki/Multiple_Companies" target="_blank">http://wiki.freeswitch.org/wiki/Multiple_Companies</a>. But I get an error when a phone tries to register.<br> <br>2010-03-18 21:19:04.869688 [WARNING] sofia_reg.c:1853 Can't find user [<a href="mailto:203@192.168.101.102" target="_blank">203@192.168.101.102</a>]<br>
You must define a domain called '192.168.101.102' in your directory and add a user with the id="203" attribute<br>and you must configure your device to use the proper domain in it's authentication credentials.<br>
2010-03-18 21:19:04.885327 [WARNING] sofia_reg.c:1018 SIP auth failure (REGISTER) on sofia profile 'internal' for [<a href="mailto:203@192.168.101.102" target="_blank">203@192.168.101.102</a>] from ip 192.168.91.28<br>
<br>I think I am nearly there,but I suspect there is something wrong with the resulting 'user directory' xml.<br>
---------------------------------------------------------------<br><?xml version="1.0" encoding="UTF-8" standalone="no"?><br><document type="freeswitch/xml"><br><section name="directory" description="User Directory"><br>
<domain name="default"><br><groups><br> <group name="default"><br> <users><br> <user id="203"><br> <params><br> <param name="password" value="$${default_password}"/><br>
<param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}\}${sofia_contact(${dialed_user}@${dialed_domain})}"/><br> <param name="vm-password" value="1234"/><br>
<param name="vm-disk-quota" value="30"/><br> </params><br> <variables><br> <variable name="user_context" value="default"/><br> <variable name="accountcode" value="203"/><br>
<variable name="day_bar" value="3"/><br> <variable name="night_bar" value="3"/><br> <variable name="effective_caller_id_name" value="Extension 203"/><br>
<variable name="effective_caller_id_number" value="203"/><br> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/><br> <variable name="outbound_caller_id_number" value="$${outbound_caller_number}"/><br>
</variables><br> </user><br> </users><br> </group><br></groups><br></domain><br></section><br></document><br>--------------------------------------------------------------------<br>
<br>I think the Company Directory XML is OK<br>--------------------------------------------------------------------<br><?xml version="1.0" encoding="UTF-8" standalone="no"?><br><document type="freeswitch/xml"><br>
<section name="directory" description="Company Directory"><br><domain name="default"><br> <params><br> <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/><br>
</params><br> <variables><br> <variable name="record_stereo" value="true"/><br> <variable name="default_gateway" value="$${default_provider}"/><br>
<variable name="default_areacode" value="$${default_areacode}"/><br>
<variable name="transfer_fallback_extension" value="operator"/><br> <variable name="user_context" value="default"/><br> </variables><br></domain><br>
<domain name="phisystems.dom"><br> <params><br> <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/><br>
</params><br> <variables><br> <variable name="record_stereo" value="true"/><br> <variable name="default_gateway" value="$${default_provider}"/><br>
<variable name="default_areacode" value="$${default_areacode}"/><br>
<variable name="transfer_fallback_extension" value="operator"/><br> <variable name="user_context" value="phisystems.dom"/><br> </variables><br></domain><br>
</section><br></document><br>--------------------------------------------------------------<br><br>I get the following result when I 'sofia status'<br> Name Type Data State<br>
=================================================================================================<br> internal profile <a href="http://sip:mod_sofia@192.168.101.102:5060" target="_blank">sip:mod_sofia@192.168.101.102:5060</a> RUNNING (0)<br>
phisystems.dom alias internal ALIASED<br> internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0)<br> default alias internal ALIASED<br>
external profile <a href="http://sip:mod_sofia@192.168.101.102:5080" target="_blank">sip:mod_sofia@192.168.101.102:5080</a> RUNNING (0)<br>=================================================================================================<br>
<br>Thanks in advance<br><div style="display: inline;"></div>
<br></div></div><div class="im">_______________________________________________<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><br>
<br></div></blockquote></div><br></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><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>