Hi Gregor,
Here is the way I create the directory page to return.
The CallerExt. vairiables are being filled from a database query.
The queryString[] variables come from the Freeswitch post to curl

 string userDirectory = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\r\n" +
                "<document type=\"freeswitch/xml\">\r\n" +
                "  <section name=\"directory\" description=\"Directory For FreeSwitch\">\r\n" +
                "    <domain name=\"" + queryString["domain"] + "\">\r\n" +
                "      <user id=\"" + queryString["user"] + "\">\r\n" +
                "        <params>\r\n" +
                "          <param name=\"password\" value=\"" + CallerExt.Password + "\"/>\r\n" +
                "           <param name=\"vm-password\" value=\"" + CallerExt.Password + "\"/>\r\n" +
                "           <param name=\"dial-string\" value=\"{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}\"/>\r\n" +
                        // "           <param name=\"dial-string\" value=\"${sofia_contact(${dialed_user}@${dialed_domain})}\"/>\r\n" +
                "        </params>\r\n" +
                "        <variables>\r\n" +
                "          <variable name=\"ani\" value=\"" + CallerExt.Number2 + "\"/>\r\n" +
                "         <variable name=\"user_context\" value=\"default\"/>\r\n" +
                "         <variable name=\"accountcode\" value=\"" + queryString["user"] + "\"/>\r\n" +
                "         <variable name=\"toll_allow\" value=\"domestic,local\"/>\r\n" +
                "         <variable name=\"effective_caller_id_name\" value=\"" + queryString["user"] + "\"/>\r\n" +
                "         <variable name=\"effective_caller_id_number\" value=\"" + queryString["user"] + "\"/>\r\n" +
                "         <variable name=\"outbound_caller_id_name\" value=\"$${outbound_caller_name}\"/>\r\n" +
                "         <variable name=\"outbound_caller_id_number\" value=\"$${outbound_caller_id}\"/>\r\n" +
                "        </variables>\r\n" +
                "      </user>\r\n" +
                "    </domain>\r\n" +
                "  </section>\r\n" +
                "</document>\r\n";

Hope that helps,
Jack


On 4/23/2016 3:58 AM, Gregor Nanger wrote:
I am using xml_curl for registration and tried to set variables, but without any succes. 

Can you please give me example. 

On Sat, Apr 23, 2016, 07:21 Michael Jerris <mike@jerris.com> wrote:
you can set variables from the reg 

On Friday, April 22, 2016, Gregor Nanger <gregor@infomedia.si> wrote:
I can set in verto javascript initialization caller id and caller name. But can I force or override caller id and name in user registration variables or somewhere else, because I do not want to set caller name in javascript, since user can tweak it..

Any experience?
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Gregor Nanger
 
CTO
t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 
• Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia 
• www.infomedia.si


_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7539 / Virus Database: 4556/12084 - Release Date: 04/22/16