<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Tihomir Culjaga wrote:
<blockquote
 cite="mid:AANLkTimMWUadGvAaL-sMUvVNTQxiF2AjbrNDGliu6MJU@mail.gmail.com"
 type="cite"><br>
  <div class="gmail_quote">
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">
    <div>
    <div class="h5">
    <blockquote type="cite">
      <div class="gmail_quote">On Thu, May 13, 2010 at 4:39 PM, Anthony
Minessale <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span>
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">answer_stamp
is a regular channel variable not a caller profile variable&nbsp;
        <div>${answer_stamp} is correct but its only set once the
channel
is hungup&nbsp;</div>
        <div><br>
        </div>
        <div>billing is best done in a separate process from the
dialplan
on the backend via EVENTS or CDR</div>
        <div><br>
        </div>
      </blockquote>
      </div>
      <br>
so, when/how do i set these variables to have them available in the CDR
?<br>
      <br>
T.<br>
      <pre>  </pre>
    </blockquote>
    </div>
    </div>
&nbsp;&nbsp;&nbsp;&nbsp; Dialplan<br>
    <br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="export" data="billing_model_id=0"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="export" data="country_name=UE"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="export" data="area_name=918"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="export" data="zone_name=blah"/&gt;<br>
    <br>
    </div>
  </blockquote>
  <div><br>
thanks, and when do i execute export ?<br>
come vars are being populated on hangup...<br>
  <br>
  </div>
  </div>
</blockquote>
&nbsp;&lt;extension name="global_extension" continue="true"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;condition&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b> &lt;action application="export" data="zone_name=blah"/&gt;</b><br>
&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>
&nbsp; &lt;/extension&gt;<br>
&nbsp; &lt;extension name="Local_Extension_gw"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number"
expression="^(00447262682030)$"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="bridge"
data="sofia/gateway/default/00447262682030"/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>
&nbsp; &lt;/extension&gt;<br>
&lt;/context&gt;<br>
<br>
<blockquote
 cite="mid:AANLkTimMWUadGvAaL-sMUvVNTQxiF2AjbrNDGliu6MJU@mail.gmail.com"
 type="cite">
  <div class="gmail_quote">
  <div><br>
&nbsp;</div>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">-- <br>
    </div>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>
</blockquote>
<br>
</body>
</html>