Tihomir Culjaga wrote:

On Thu, May 13, 2010 at 4:39 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
answer_stamp is a regular channel variable not a caller profile variable 
${answer_stamp} is correct but its only set once the channel is hungup 

billing is best done in a separate process from the dialplan on the backend via EVENTS or CDR


so, when/how do i set these variables to have them available in the CDR ?

T.
  
     Dialplan

     <action application="export" data="billing_model_id=0"/>
      <action application="export" data="country_name=UE"/>
      <action application="export" data="area_name=918"/>
      <action application="export" data="zone_name=blah"/>


thanks, and when do i execute export ?
come vars are being populated on hangup...

 <extension name="global_extension" continue="true">
    <condition>
      <action application="export" data="zone_name=blah"/>
    </condition>
  </extension>
  <extension name="Local_Extension_gw">
    <condition field="destination_number" expression="^(00447262682030)$">
      <action application="bridge" data="sofia/gateway/default/00447262682030"/>
    </condition>
  </extension>
</context>


 
--


_______________________________________________ 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