btw: <br><br><br>if you are wondering, yes we added radius accounting &amp; ODBC support for mod_xml_cdr ... both works perfectly, but radius needs some Attribute manipulation and this is what im trying to do via dialplan :))<br>
<br><br>T.<br><br><br><div class="gmail_quote">On Fri, May 14, 2010 at 3:15 PM, Tihomir Culjaga <span dir="ltr">&lt;<a href="mailto:tculjaga@gmail.com">tculjaga@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Indeed, this is how i do it ... mod_xml_cdr ... but i need to pupulate some session variables before the CDR is generated (before on_my_reporting event).<br><br>something like this:<br><br>      &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;GW_COLLECTED_CDN=gw-collected-cdn=${DIALED_NUMBER}&quot;/&gt;<br>

      &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;GK_XLATED_CDN=gk-xlated-cdn=006800${DIALED_NUMBER}&quot;/&gt;<br>      &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;GW_FINAL_XLATED_CDN=gw-final-xlated-cdn=ton:0,npi:0,#:=006800${DIALED_NUMBER}&quot;/&gt;<br>

      &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;GW_FINAL_XLATED_CGN=gw-final-xlated-cgn=ton:2,npi:1,pi:0,si:1,#:=${DIALED_NUMBER}&quot;/&gt;<br><br><br><br>i was thinking about something like this but not working correctly:<br>

<br><br>      &lt;action application=&quot;export&quot; data=&quot;nolocal:api_hangup_hook=uuid_setvar_multi ${uuid} CONNECT_TIME=h323-connect-time=${answered<br>_time}; DISCONNECT_TIME=h323-disconnect-time=${hangup_time}; RELEASE_CAUSE=h323-disconnect-cause=${hangup_cause_q850}; ALERT_TIME=al<br>

ert-timepoint=${created_time}; &quot;/&gt;<br><br><br><br>freeswitch@cxss01&gt; 2010-05-14 15:56:49.697513 [DEBUG] mod_xml_cdr.c:533 RADIUS Accounting OK<br>2010-05-14 15:56:49.697513 [NOTICE] switch_core_session.c:1945 Execute export(nolocal:api_hangup_hook=uuid_setvar_multi ${uuid} CONNECT_TIME=h323-connect-time=${answered_time}; DISCONNECT_TIME=h323-disconnect-time=${hangup_time}; RELEASE_CAUSE=h323-disconnect-cause=${hangup_cause_q850}; ALERT_TIME=alert-timepoint=${created_time}; )<br>

EXECUTE sofia/external/<a href="mailto:0038515492122@195.88.212.41" target="_blank">0038515492122@195.88.212.41</a> export(nolocal:api_hangup_hook=uuid_setvar_multi ff27c7c6-d37b-4ee5-8fb5-0e3cb36ad603 CONNECT_TIME=h323-connect-time=1273845357249457; DISCONNECT_TIME=h323-disconnect-time=; RELEASE_CAUSE=h323-disconnect-cause=; ALERT_TIME=alert-timepoint=1273845357240520; )<br>

2010-05-14 15:56:49.697513 [DEBUG] mod_dptools.c:898 EXPORT (REMOTE ONLY) [api_hangup_hook]=[uuid_setvar_multi ff27c7c6-d37b-4ee5-8fb5-0e3cb36ad603 CONNECT_TIME=h323-connect-time=1273845357249457; DISCONNECT_TIME=h323-disconnect-time=; RELEASE_CAUSE=h323-disconnect-cause=; ALERT_TIME=alert-timepoint=1273845357240520; ]<br>

<br><br><br><br><br>when can i set this vars? What event can i use ?<br><br><br><br>also, i need to trigger some application after bridge but before ringing ... any suggestion ?<br><font color="#888888"><br><br>Tihomir.</font><div>
<div></div><div class="h5"><br><br><br><br><br><div class="gmail_quote">
On Thu, May 13, 2010 at 4:39 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


answer_stamp is a regular channel variable not a caller profile variable <div>${answer_stamp} is correct but its only set once the channel is hungup </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><br><div class="gmail_quote"><div><div></div><div>On Thu, May 13, 2010 at 4:36 AM, Tihomir Culjaga <span dir="ltr">&lt;<a href="mailto:tculjaga@gmail.com" target="_blank">tculjaga@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>
hello, <br><br>i need to fetch a caller profile variable (e.g. answer_stamp) from a dialplan, can anyone help?<br><br><br>i tried with:<br><br>&lt;action application=&quot;set&quot; data=&quot;TEST=answer_stamp&quot;/&gt;<br>




&lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;TEST=answer_stamp&quot;/&gt;<br>&lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;TEST=${answer_stamp}&quot;/&gt;<br><br><br>




but it doesn&#39;t help...<br><br><br><br><br>
<br></div></div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>



Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>


GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>


<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>