btw:
if you are wondering, yes we added radius accounting & 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 :))
T.
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).
something like this:
<action inline="true" application="set" data="GW_COLLECTED_CDN=gw-collected-cdn=${DIALED_NUMBER}"/>
<action inline="true" application="set" data="GK_XLATED_CDN=gk-xlated-cdn=006800${DIALED_NUMBER}"/>
<action inline="true" application="set" data="GW_FINAL_XLATED_CDN=gw-final-xlated-cdn=ton:0,npi:0,#:=006800${DIALED_NUMBER}"/>
<action inline="true" application="set" data="GW_FINAL_XLATED_CGN=gw-final-xlated-cgn=ton:2,npi:1,pi:0,si:1,#:=${DIALED_NUMBER}"/>
i was thinking about something like this but not working correctly:
<action application="export" data="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=al
ert-timepoint=${created_time}; "/>
freeswitch@cxss01> 2010-05-14 15:56:49.697513 [DEBUG] mod_xml_cdr.c:533 RADIUS Accounting OK
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}; )
EXECUTE sofia/external/0038515492122@195.88.212.41 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; )
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; ]
when can i set this vars? What event can i use ?
also, i need to trigger some application after bridge but before ringing ... any suggestion ?
Tihomir.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 hungupbilling is best done in a separate process from the dialplan on the backend via EVENTS or CDROn Thu, May 13, 2010 at 4:36 AM, Tihomir Culjaga <tculjaga@gmail.com> wrote:
_______________________________________________hello,
i need to fetch a caller profile variable (e.g. answer_stamp) from a dialplan, can anyone help?
i tried with:
<action application="set" data="TEST=answer_stamp"/>
<action inline="true" application="set" data="TEST=answer_stamp"/>
<action inline="true" application="set" data="TEST=${answer_stamp}"/>
but it doesn't help...
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
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900
_______________________________________________
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