[Freeswitch-users] freeswitch radiusclinet (mod_radius_cdr) problems
Miha Zoubek
miha at softnet.si
Wed Nov 16 17:37:01 MSK 2011
Hi,
I have also try this: http://wiki.freeswitch.org/wiki/Variable_process_cdr
But still getting start and stop packet for each leg:(
<condition field="destination_number" expression="^0(\d+)$" >
<action application="log" data="INFO Before Auth "/>
<action application="set" data="process_cdr=false"/>
<action inline="true" application="set"
data="CALLID=h323-conf-id=${uuid}"/>
<action inline="true" application="set"
data="SERVICENUM=h323-prompt-id=${destination_number}"/>
<!-- <action inline="true" application="set"
data="TRANSACTIONID=h323-ivr-out=transactionID:1234"/> -->
<action inline="true" application="set"
data="CALLINGNUMBER=${caller_id_number}"/>
<action inline="true" application="set"
data="CALLINGNUMBER=${destination_number}"/>
<action inline="true" application="set"
data="USERNAME=${dialed_extension}"/>
<action inline="true" application="set" data="PASSWD=$${default_password}"/>
<!-- <action inline="true" application="set" data="DIALED_NUMBER=$1"/> -->
<action application="sleep" data="2000"/>
<action application="auth_function" data="in ${DIALED_NUMBER}, in
${USERNAME}, in ${PASSWD}, out AUTH_RESULT"/>
<action application="bridge" data="sofia/external/386$1 at xxx.xxx.xxx.xxxx"/>
<!-- <action application="bridge"
data="sofia/gateway/sbc_trunk/386$1 at xxx.xxx.xxx.xxx"/> -->
</condition>
</extension>
~
Regards,
Miha
On 11/16/2011 1:52 PM, Miha Zoubek wrote:
> HI,
>
> can any one can help me about this issue?
>
> Regards,
> Miha
>
> On 11/15/2011 11:37 AM, Miha Zoubek wrote:
>> Hi Hugh,
>>
>> and other question. For incoming calls...
>> Why there is also AAA request to radius server if I do not have it in my
>> public/dialplan?
>>
>> My freeradius sever is set for AAA (outgoing calls). Why NAS is sending
>> also accounting request for incoming calls? If the radius is set for
>> AAA, that I will also need o authenticate incoming calls which is stupid.
>> All CRD for incoming call we have on SBC. I would like to have only for
>> outgoing calls.
>>
>> Any idea?
>>
>> Thank you very much!
>>
>> BR,
>> Miha
>>
>> On 11/15/2011 10:09 AM, Miha Zoubek wrote:
>>> Hi Hugh,
>>>
>>> I have put log and my dialplan in pastebin
>>> (http://pastebin.freeswitch.org/17778).
>>> Could you please take a look due to my luck of skills with freeswith and
>>> inform me about your opinion.
>>>
>>>
>>> Regards,
>>> Miha
>>>
>>> On 11/14/2011 10:30 AM, Hugh Irvine wrote:
>>>> Hello Miha -
>>>>
>>>> You are probably getting a RADIUS accounting request for each call leg.
>>>>
>>>> The id's in the requests are different, as are the lengths, but you really need to check the contents of the requests to see exactly what they contain.
>>>>
>>>> regards
>>>>
>>>> Hugh
>>>>
>>>>
>>>> On 14 Nov 2011, at 18:24, Miha Zoubek wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> can anyone can help me with this issue?
>>>>>
>>>>>
>>>>> BR,
>>>>> Miha
>>>>>
>>>>> On 11/11/2011 9:02 AM, Miha Zoubek wrote:
>>>>>> Hi @ Ognjen,
>>>>>>
>>>>>> bellow you can see that my Accounting-Request(4), Accounting-Response(5) are twice send.
>>>>>>
>>>>>> Any idea?
>>>>>>
>>>>>> BR,
>>>>>> Miha
>>>>>>
>>>>>>
>>>>>>
>>>>>> 71.449050 xxx.xxx.xxx.xxx -> xxx.xxx.xxx.xxx RADIUS Accounting-Request(4) (id=235, l=265)
>>>>>> 71.517347 xxx.xxx.xxx.xxx -> xxx.xxx.xxx.xxx RADIUS Accounting-Response(5) (id=235, l=20)
>>>>>> 73.536126 xxx.xxx.xxx.xxx -> xxx.xxx.xxx.xxx RADIUS Access-Request(1) (id=236, l=210)
>>>>>> 73.567412 xxx.xxx.xxx.xxx -> xxx.xxx.xxx.xxx RADIUS Access-Accept(2) (id=236, l=20)
>>>>>> 73.572794 xxx.xxx.xxx.xxx -> xxx.xxx.xxx.xxx RADIUS Accounting-Request(4) (id=237, l=321)
>>>>>> 73.574156 xxx.xxx.xxx.xxx -> xxx.xxx.xxx.xxx RADIUS Accounting-Response(5) (id=237, l=20)
>>>>>> 83.482760 xxx.xxx.xxx.xxx -> xxx.xxx.xxx.xxx RADIUS Accounting-Request(4) (id=238, l=401)
>>>>>> 83.485670 xxx.xxx.xxx.xxx -> xxx.xxx.xxx.xxx RADIUS Accounting-Response(5) (id=238, l=20)
>>>>>> 83.514594 xxx.xxx.xxx.xxx -> xxx.xxx.xxx.xxx RADIUS Accounting-Request(4) (id=239, l=402)
>>>>>> 83.516404 xxx.xxx.xxx.xxx -> xxx.xxx.xxx.xxx RADIUS Accounting-Response(5) (id=239, l=20)
>>>>>>
>>>>>> On 11/10/2011 6:24 PM, Ognjen Seslija wrote:
>>>>>>> Radius clients generally send Start and Stop records, I guess this is why you get two records.
>>>>>>>
>>>>>>> On Wed, Nov 9, 2011 at 3:17 PM, Miha Zoubek<miha at softnet.si> wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> radiusclient on freeswitch in sending more that once same response. So I
>>>>>>> am getting in my sql tables for every call two inputs which is wrong.
>>>>>>> How can I deal whit this issue?
>>>>>>>
>>>>>>> I have paste a log from freeradius server in pastebin that you can see
>>>>>>> what is freeswitch sending.
>>>>>>>
>>>>>>> http://pastebin.freeswitch.org/17730
>>>>>>>
>>>>>>>
>>>>>>> Thank you!
>>>>>>>
>>>>>>> BR,
>>>>>>> Miha
>>>>>>>
>>>>>>>
>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 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
>>>>>> _________________________________________________________________________
>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>
>>>>>> consulting at freeswitch.org
>>>>>> http://www.freeswitchsolutions.com
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Official FreeSWITCH Sites
>>>>>>
>>>>>> http://www.freeswitch.org
>>>>>> http://wiki.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
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> http://www.freeswitchsolutions.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://wiki.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
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>>
>>>>
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://wiki.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
>>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>>
>>>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.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
>>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.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
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111116/f52c30d8/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list