<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Gregor,<br>
    Here is the way I create the directory page to return.<br>
    The CallerExt. vairiables are being filled from a database query. <br>
    The queryString[] variables come from the Freeswitch post to curl<br>
    <br>
     string userDirectory = "&lt;?xml version=\"1.0\" encoding=\"UTF-8\"
    standalone=\"no\"?&gt;\r\n" +<br>
                    "&lt;document type=\"freeswitch/xml\"&gt;\r\n" +<br>
                    "  &lt;section name=\"directory\"
    description=\"Directory For FreeSwitch\"&gt;\r\n" +<br>
                    "    &lt;domain name=\"" + queryString["domain"] +
    "\"&gt;\r\n" +<br>
                    "      &lt;user id=\"" + queryString["user"] +
    "\"&gt;\r\n" +<br>
                    "        &lt;params&gt;\r\n" +<br>
                    "          &lt;param name=\"password\" value=\"" +
    CallerExt.Password + "\"/&gt;\r\n" +<br>
                    "           &lt;param name=\"vm-password\" value=\""
    + CallerExt.Password + "\"/&gt;\r\n" +<br>
                    "           &lt;param name=\"dial-string\"
    value=\"{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}\"/&gt;\r\n"
    +<br>
                            // "           &lt;param
    name=\"dial-string\"
    value=\"${sofia_contact(${dialed_user}@${dialed_domain})}\"/&gt;\r\n"
    +<br>
                    "        &lt;/params&gt;\r\n" +<br>
                    "        &lt;variables&gt;\r\n" +<br>
                    "          &lt;variable name=\"ani\" value=\"" +
    CallerExt.Number2 + "\"/&gt;\r\n" +<br>
                    "         &lt;variable name=\"user_context\"
    value=\"default\"/&gt;\r\n" +<br>
                    "         &lt;variable name=\"accountcode\"
    value=\"" + queryString["user"] + "\"/&gt;\r\n" +<br>
                    "         &lt;variable name=\"toll_allow\"
    value=\"domestic,local\"/&gt;\r\n" +<br>
                    "         &lt;variable
    name=\"effective_caller_id_name\" value=\"" + queryString["user"] +
    "\"/&gt;\r\n" +<br>
                    "         &lt;variable
    name=\"effective_caller_id_number\" value=\"" + queryString["user"]
    + "\"/&gt;\r\n" +<br>
                    "         &lt;variable
    name=\"outbound_caller_id_name\"
    value=\"$${outbound_caller_name}\"/&gt;\r\n" +<br>
                    "         &lt;variable
    name=\"outbound_caller_id_number\"
    value=\"$${outbound_caller_id}\"/&gt;\r\n" +<br>
                    "        &lt;/variables&gt;\r\n" +<br>
                    "      &lt;/user&gt;\r\n" +<br>
                    "    &lt;/domain&gt;\r\n" +<br>
                    "  &lt;/section&gt;\r\n" +<br>
                    "&lt;/document&gt;\r\n";<br>
    <br>
    Hope that helps,<br>
    Jack<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 4/23/2016 3:58 AM, Gregor Nanger
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAC7ttFHLXx0uLr0qM7eMp-+b3eHevnARtEbSpG9vfb4qN807zQ@mail.gmail.com"
      type="cite">I am using xml_curl for registration and tried to set
      variables, but without any succes. 
      <div><br>
      </div>
      <div>Can you please give me example. <br>
        <br>
        <div class="gmail_quote">
          <div dir="ltr">On Sat, Apr 23, 2016, 07:21 Michael Jerris &lt;<a
              moz-do-not-send="true" href="mailto:mike@jerris.com"><a class="moz-txt-link-abbreviated" href="mailto:mike@jerris.com">mike@jerris.com</a></a>&gt;
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">you can
            set variables from the reg <span></span><br>
            <br>
            On Friday, April 22, 2016, Gregor Nanger &lt;<a
              moz-do-not-send="true" href="mailto:gregor@infomedia.si"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:gregor@infomedia.si">gregor@infomedia.si</a></a>&gt; wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div dir="ltr">
                <div class="gmail_default" style="font-family:trebuchet
                  ms,sans-serif">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..</div>
                <div class="gmail_default" style="font-family:trebuchet
                  ms,sans-serif"><br>
                </div>
                <div class="gmail_default" style="font-family:trebuchet
                  ms,sans-serif">Any experience?</div>
                <img moz-do-not-send="true"
src="http://t.sidekickopen04.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v5dbp0W3MPnzY4XrbSMW8q-f_43LvrVvW59BB4r1k1H6H0?si=5036397111279616&amp;pi=ff7a821b-5e71-4be0-cfb9-72f92dadbf10"
                  style="display:none!important" height="1" width="1"></div>
            </blockquote>
_________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" rel="noreferrer"
              target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://confluence.freeswitch.org" rel="noreferrer"
              target="_blank">http://confluence.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org"
              target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
              rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote>
        </div>
      </div>
      <div dir="ltr">-- <br>
      </div>
      <div dir="ltr">
        <table style="color:rgb(34,34,34);font-size:12px;border:1px
          dashed rgb(187,187,187);font-family:sans-serif;width:537px"
          border="0">
          <tbody style="border-spacing:2px;border:0px none
            rgb(128,128,128)">
            <tr style="border-spacing:2px;border:0px none
              rgb(128,128,128)" valign="top">
              <td
                style="font-family:arial,sans-serif;margin:8px;color:rgb(32,32,32);border-width:0px
                1px 0px 0px;border-style:none solid none
                none;border-color:rgb(32,32,32) rgb(0,161,230)
                rgb(32,32,32)
                rgb(32,32,32);font-weight:bold;letter-spacing:1px;text-transform:capitalize;vertical-align:top;padding:1px
                8px 1px 1px;width:63px;outline:rgb(32,32,32) none
                0px;border-spacing:2px"><span
                  style="color:rgb(0,161,230);outline:rgb(0,161,230)
                  none 0px;border-spacing:2px;border:0px none
                  rgb(0,161,230)"><font size="2" face="georgia, serif">Gregor
                    Nanger</font></span>
                <div
                  style="font-size:17px;font-family:sans-serif;width:63px;outline:rgb(32,32,32)
                  none 0px;border-spacing:2px;border:0px none
                  rgb(32,32,32)"> </div>
              </td>
              <td
                style="font-family:arial,sans-serif;margin:8px;border:0px
                none rgb(80,80,80);vertical-align:top;padding:1px 1px
                1px 6px;width:354px;outline:rgb(80,80,80) none
                0px;border-spacing:2px"><font size="1" face="georgia,
                  serif"><b>CTO</b><br>
                  t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41
                  756485 <br>
                  • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia <br>
                  • <a moz-do-not-send="true"
                    href="http://www.infomedia.si/" target="_blank">www.infomedia.si</a></font></td>
            </tr>
          </tbody>
        </table>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <p class="" avgcert""="" color="#000000" align="left">No virus
        found in this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 2016.0.7539 / Virus Database: 4556/12084 - Release
        Date: 04/22/16</p>
    </blockquote>
    <br>
  </body>
</html>