[Freeswitch-users] fetch caller profile variables

Tihomir Culjaga tculjaga at gmail.com
Fri May 14 07:43:49 PDT 2010


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.


On Fri, May 14, 2010 at 3:15 PM, Tihomir Culjaga <tculjaga at gmail.com> wrote:

> 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 at 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 at 195.88.212.41export(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 at 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
>>
>>
>> On Thu, May 13, 2010 at 4:36 AM, Tihomir Culjaga <tculjaga at 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 at 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 at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
>> IRC: irc.freenode.net #freeswitch
>>
>> FreeSWITCH Developer Conference
>> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
>> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
>> pstn:+19193869900
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100514/1e678882/attachment.html 


More information about the FreeSWITCH-users mailing list