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">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">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">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">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">sip:mod_sofia@192.168.101.102:5080</a> RUNNING (0)<br>=================================================================================================<br>
<br>Thanks in advance<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>