By the way, user/0044302 is set up with this file: <include> <user id="0044301"> <params> <param name="password" value="AAAAAAAAAA" /> <param name="vm-password" value="1234" /> <param name="vm-alternate-greet-id" value="301" /> <param name="vm-mailto" value="fred.smith@fitclub.net" /> <param name="vm-mailfrom" value="vm-ext301@sb0044.dmclub.net" /> <param name="vm-attach-file" value="true" /> <param name="vm-email-all-messages" value="true" /> <param name="vm-keep-local-after-email" value="false" /> <param name="vm-disk-quota" value="3600" /> </params> <variables> <variable name="tenant_id" value="0044"/> <variable name="a_ext" value="301"/> <variable name="accountcode" value="301"/> <variable name="user_context" value="dp0044"/> <variable name="effective_caller_id_name" value="Fred Smith one"/> <variable name="effective_caller_id_number" value="01316110346"/> <variable name="outbound_caller_id_name" value="Fred Smith one testing co 44"/> <variable name="outbound_caller_id_number" value="01316110346"/> <variable name="ani" value="0131123456"/> <variable name="default_ani_prefix" value="00443010"/> <variable name="callgroup" value="deferred"/> <variable name="mailbox" value="0044301"/> </variables> </user> </include> And dp0044 is set up like this: <?xml version="1.0" encoding="utf-8"?> <!-- NOTICE: This context is usually accessed via authenticated callers on the sip profile on port 5060 or transfered callers from the public context which arrived via the sip profile on port 5080. Authenticated users will use the user_context variable on the user to determine what context they can access. You can also add a user in the directory with the cidr= attribute acl.conf.xml will build the domains ACL using this value. --> <!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="dp0044"> <X-PRE-PROCESS cmd="include" data="0044/*.xml" /> <extension name="Outbound_call"> <action application="log" data="WARNING default_ani_prefix=${default_ani_prefix}"/> <action application="log" data="WARNING sip_auth_username=${sip_auth_username}"/> <condition field="default_ani_prefix" expression=""/> <condition field="sip_auth_username" expression=""> <action application="set" data="default_ani_prefix=${tenant_id}${b_ext}1"/> </condition> <condition field="default_ani_prefix" expression="" break="never"> <action application="set" data="ani_prefix=${sip_auth_username}0"/> <anti-action application="set" data="ani_prefix=${default_ani_prefix}"/> </condition> <condition field="ani_prefix" expression="^(0)$" break="never"> <action application="set" data="ani_prefix=00000000"/> </condition> <condition field="destination_number" expression="^(\d{8}.*)"> <action application="log" data="WARNING 2 ani_prefix=${ani_prefix}"/> <action application="log" data="WARNING 2 default_ani_prefix=${default_ani_prefix}"/> <action application="bridge" data="[tenant_id=${tenant_id},a_ext=${a_ext},b_ext=${b_ext},origination_callee_id_number=$1,origination_caller_id_number=${ani_prefix}${ani}]sofia/internal/8980000000062$1@193.1.5.1"/> </condition> </extension> </context> </include>