I am using mod_xml_curl to generate user directory data.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="directory">
<domain name="$${domain}">
<params>
<param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
</params>
<groups>
<group name="default">
<users>
<user id="20001">
<params>
<param name="a1-hash" value="d8c32787fd9f00b5ad4246e93f757360"/>
<param name="vm-a1-hash" value="a53b5e8b5edf34208274cbaa00412097"/>
</params>
<variables>
<variable name="user_context" value="default"/>
<variable name="accountcode" value="20001"/>
</variables>
</user>
</users>
</group>
</groups>
</domain>
</section>
</document>
Both internal and external sofia profiles have context = "public".
But it should be overridden here in the user settings to DEFAULT.
Wwhen I call to any number using this subscriber 20001 it calls in context PUBLIC instead of DEFAULT.
2010-04-02 17:27:32.384472 [INFO] mod_dialplan_xml.c:418 Processing 20001->001...[removed]... in context public
I need it to call in context default.
When I change sofia profile settings to context="default", it works fine, but shouldn't it work like this as well?
Please any hints where else should I change the context?
Thank you,
vIT