[Freeswitch-users] mod_xml_radius starts accounting twice for incoming calls
William King
william.king at quentustech.com
Fri Jul 24 22:45:15 MSD 2015
The configurations allow you to exclude channels based on regex for
channel variables. By default xml_radius will log(accounting) each
individual channel/session.
William King
Senior Engineer
Quentus Technologies, INC
1037 NE 65th St Suite 273
Seattle, WA 98115
Main: (877) 211-9337
Office: (206) 388-4772
Cell: (253) 686-5518
william.king at quentustech.com
On 7/22/15 11:51 PM, Artur Mega wrote:
> When new incoming call comes to tr2.xxxxxxx.ru <http://tr2.xxxxxxx.ru>,
> new session is being created and accounting begins. Further, call
> forwarding to another server, to fs2.xxxxxxx.ru <http://fs2.xxxxxxx.ru>,
> and new session is being created again.
>
> 2015-07-23 11:22:42.514095 [NOTICE] switch_channel.c:1054 *New Channel*
> sofia/external/73472460000 at tr2.xxxxxxx.ru:5080
> <http://73472460000@tr2.xxxxxxx.ru:5080>
> [26777290306690-93831426613199 at 192.168.217.156
> <mailto:26777290306690-93831426613199 at 192.168.217.156>]
> ...
> 2015-07-23 11:22:42.574084 [INFO] mod_xml_radius.c:1123 mod_xml_radius:
> *Accounting Start success*
> 2015-07-23 11:22:42.574084 [DEBUG] switch_core_state_machine.c:164
> sofia/external/73472460000 at tr2.xxxxxxx.ru:5080
> <http://73472460000@tr2.xxxxxxx.ru:5080> Standard ROUTING
> 2015-07-23 11:22:42.574084 [INFO] mod_dialplan_xml.c:558 Processing
> 73472460000 <73472460000>->79373057071 in context public
> Dialplan: sofia/external/73472460000 at tr2.xxxxxxx.ru:5080
> <http://73472460000@tr2.xxxxxxx.ru:5080> parsing [public->originate_leg]
> continue=true
> Dialplan: sofia/external/73472460000 at tr2.xxxxxxx.ru:5080
> <http://73472460000@tr2.xxxxxxx.ru:5080> Absolute Condition [originate_leg]
> Dialplan: sofia/external/73472460000 at tr2.xxxxxxx.ru:5080
> <http://73472460000@tr2.xxxxxxx.ru:5080> Action
> export(nolocal:h323-call-origin=originate)
> Dialplan: sofia/external/73472460000 at tr2.xxxxxxx.ru:5080
> <http://73472460000@tr2.xxxxxxx.ru:5080> parsing [public->public_mult]
> continue=false
> Dialplan: sofia/external/73472460000 at tr2.xxxxxxx.ru:5080
> <http://73472460000@tr2.xxxxxxx.ru:5080> Regex (PASS) [public_mult]
> destination_number(79373057071) =~ /^(79373057071)$/ break=on-false
> Dialplan: sofia/external/73472460000 at tr2.xxxxxxx.ru:5080
> <http://73472460000@tr2.xxxxxxx.ru:5080> Action
> set(hangup_after_bridge=true)
> Dialplan: sofia/external/73472460000 at tr2.xxxxxxx.ru:5080
> <http://73472460000@tr2.xxxxxxx.ru:5080> Action
> bridge(sofia/internal/79373057071 at fs2.xxxxxxx.ru:5070
> <http://79373057071@fs2.xxxxxxx.ru:5070>)
> 2015-07-23 11:22:42.574084 [DEBUG] switch_core_state_machine.c:214
> (sofia/external/73472460000 at tr2.xxxxxxx.ru:5080
> <http://73472460000@tr2.xxxxxxx.ru:5080>) State Change CS_ROUTING ->
> CS_EXECUTE
> ...
> 2015-07-23 11:22:42.574084 [NOTICE] switch_channel.c:1054 *New Channel*
> sofia/internal/79373057071 at fs2.xxxxxxx.ru:5070
> <http://79373057071@fs2.xxxxxxx.ru:5070>
> [e059ad7f-b2f8-4beb-b1f3-249bc431cfc4]
> ...
> 2015-07-23 11:22:42.634059 [INFO] mod_xml_radius.c:1123 mod_xml_radius:
> * Accounting Start success*
>
> Thus, one call is being counted twice (for incoming to tr2, and then for
> outgoing from tr2 to fs2). But we need to make mod_xml_radius counts
> this call only once, how can we handle it?
> Thanks
> --
>
> Arthur
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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
>
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list