<div dir="ltr"><div class="gmail_default" style="font-size:small">​Thanks, William,<br>i dont know what to edit in mod_xml_radius. I cannot exclude channel from dialplan, right? So what i have to change in configs?</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-24 23:45 GMT+05:00 William King <span dir="ltr">&lt;<a href="mailto:william.king@quentustech.com" target="_blank">william.king@quentustech.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The configurations allow you to exclude channels based on regex for<br>
channel variables. By default xml_radius will log(accounting) each<br>
individual channel/session.<br>
<br>
William King<br>
Senior Engineer<br>
Quentus Technologies, INC<br>
1037 NE 65th St Suite 273<br>
Seattle, WA 98115<br>
Main:   (877) 211-9337<br>
Office: (206) 388-4772<br>
Cell:   (253) 686-5518<br>
<a href="mailto:william.king@quentustech.com">william.king@quentustech.com</a><br>
<br>
On 7/22/15 11:51 PM, Artur Mega wrote:<br>
&gt; When new incoming call comes to <a href="http://tr2.xxxxxxx.ru" rel="noreferrer" target="_blank">tr2.xxxxxxx.ru</a> &lt;<a href="http://tr2.xxxxxxx.ru" rel="noreferrer" target="_blank">http://tr2.xxxxxxx.ru</a>&gt;,<br>
<span class="">&gt; new session is being created and accounting begins. Further, call<br>
</span>&gt; forwarding to another server, to <a href="http://fs2.xxxxxxx.ru" rel="noreferrer" target="_blank">fs2.xxxxxxx.ru</a> &lt;<a href="http://fs2.xxxxxxx.ru" rel="noreferrer" target="_blank">http://fs2.xxxxxxx.ru</a>&gt;,<br>
<span class="">&gt; and new session is being created again.<br>
&gt;<br>
</span>&gt; 2015-07-23 11:22:42.514095 [NOTICE] switch_channel.c:1054 *New Channel*<br>
&gt; sofia/external/<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">73472460000@tr2.xxxxxxx.ru:5080</a><br>
&gt; &lt;<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">http://73472460000@tr2.xxxxxxx.ru:5080</a>&gt;<br>
&gt; [<a href="mailto:26777290306690-93831426613199@192.168.217.156">26777290306690-93831426613199@192.168.217.156</a><br>
&gt; &lt;mailto:<a href="mailto:26777290306690-93831426613199@192.168.217.156">26777290306690-93831426613199@192.168.217.156</a>&gt;]<br>
<span class="">&gt; ...<br>
&gt; 2015-07-23 11:22:42.574084 [INFO] mod_xml_radius.c:1123 mod_xml_radius:<br>
</span>&gt;  *Accounting Start success*<br>
<span class="">&gt; 2015-07-23 11:22:42.574084 [DEBUG] switch_core_state_machine.c:164<br>
</span>&gt; sofia/external/<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">73472460000@tr2.xxxxxxx.ru:5080</a><br>
&gt; &lt;<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">http://73472460000@tr2.xxxxxxx.ru:5080</a>&gt; Standard ROUTING<br>
<span class="">&gt; 2015-07-23 11:22:42.574084 [INFO] mod_dialplan_xml.c:558 Processing<br>
&gt; 73472460000 &lt;73472460000&gt;-&gt;79373057071 in context public<br>
</span>&gt; Dialplan: sofia/external/<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">73472460000@tr2.xxxxxxx.ru:5080</a><br>
&gt; &lt;<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">http://73472460000@tr2.xxxxxxx.ru:5080</a>&gt; parsing [public-&gt;originate_leg]<br>
&gt; continue=true<br>
&gt; Dialplan: sofia/external/<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">73472460000@tr2.xxxxxxx.ru:5080</a><br>
&gt; &lt;<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">http://73472460000@tr2.xxxxxxx.ru:5080</a>&gt; Absolute Condition [originate_leg]<br>
&gt; Dialplan: sofia/external/<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">73472460000@tr2.xxxxxxx.ru:5080</a><br>
&gt; &lt;<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">http://73472460000@tr2.xxxxxxx.ru:5080</a>&gt; Action<br>
&gt; export(nolocal:h323-call-origin=originate)<br>
&gt; Dialplan: sofia/external/<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">73472460000@tr2.xxxxxxx.ru:5080</a><br>
&gt; &lt;<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">http://73472460000@tr2.xxxxxxx.ru:5080</a>&gt; parsing [public-&gt;public_mult]<br>
&gt; continue=false<br>
&gt; Dialplan: sofia/external/<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">73472460000@tr2.xxxxxxx.ru:5080</a><br>
&gt; &lt;<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">http://73472460000@tr2.xxxxxxx.ru:5080</a>&gt; Regex (PASS) [public_mult]<br>
&gt; destination_number(79373057071) =~ /^(79373057071)$/ break=on-false<br>
&gt; Dialplan: sofia/external/<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">73472460000@tr2.xxxxxxx.ru:5080</a><br>
&gt; &lt;<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">http://73472460000@tr2.xxxxxxx.ru:5080</a>&gt; Action<br>
&gt; set(hangup_after_bridge=true)<br>
&gt; Dialplan: sofia/external/<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">73472460000@tr2.xxxxxxx.ru:5080</a><br>
&gt; &lt;<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">http://73472460000@tr2.xxxxxxx.ru:5080</a>&gt; Action<br>
&gt; bridge(sofia/internal/<a href="http://79373057071@fs2.xxxxxxx.ru:5070" rel="noreferrer" target="_blank">79373057071@fs2.xxxxxxx.ru:5070</a><br>
&gt; &lt;<a href="http://79373057071@fs2.xxxxxxx.ru:5070" rel="noreferrer" target="_blank">http://79373057071@fs2.xxxxxxx.ru:5070</a>&gt;)<br>
<span class="">&gt; 2015-07-23 11:22:42.574084 [DEBUG] switch_core_state_machine.c:214<br>
</span>&gt; (sofia/external/<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">73472460000@tr2.xxxxxxx.ru:5080</a><br>
&gt; &lt;<a href="http://73472460000@tr2.xxxxxxx.ru:5080" rel="noreferrer" target="_blank">http://73472460000@tr2.xxxxxxx.ru:5080</a>&gt;) State Change CS_ROUTING -&gt;<br>
&gt; CS_EXECUTE<br>
&gt; ...<br>
&gt; 2015-07-23 11:22:42.574084 [NOTICE] switch_channel.c:1054 *New Channel*<br>
&gt; sofia/internal/<a href="http://79373057071@fs2.xxxxxxx.ru:5070" rel="noreferrer" target="_blank">79373057071@fs2.xxxxxxx.ru:5070</a><br>
&gt; &lt;<a href="http://79373057071@fs2.xxxxxxx.ru:5070" rel="noreferrer" target="_blank">http://79373057071@fs2.xxxxxxx.ru:5070</a>&gt;<br>
<span class="">&gt; [e059ad7f-b2f8-4beb-b1f3-249bc431cfc4]<br>
&gt; ...<br>
&gt; 2015-07-23 11:22:42.634059 [INFO] mod_xml_radius.c:1123 mod_xml_radius:<br>
</span>&gt; * Accounting Start success*<br>
<span class="">&gt;<br>
&gt; Thus, one call is being counted twice (for incoming to tr2, and then for<br>
&gt; outgoing from tr2 to fs2). But we need to make mod_xml_radius counts<br>
&gt; this call only once, how can we handle it?<br>
&gt; Thanks<br>
&gt; --<br>
&gt;<br>
&gt; Arthur<br>
&gt;<br>
&gt;<br>
</span>&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><br>Arthur</div></div></div></div>
</div>