<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-2"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:10.0pt;
        margin-left:0cm;
        line-height:115%;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=SK link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi, I&nbsp;have troble with authentication on Kamailio using RADIUS authentication. <span lang=EN-US>For configure freeradius and radiusclient I used this tutorial:<o:p></o:p></span></p><p class=MsoNormal><a href="http://www.kamailio.org/docs/openser-radius-1.0.x.html">http://www.kamailio.org/docs/openser-radius-1.0.x.html</a><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>In config file of freeradius I have enabled digest in modules. In sites-available/default is digest enabled too. In config file of radiusclient I use for authentication server named localhost and in file servers I have password for localhost. I think, in freeradius and radiusclient config file, there is nothing wrong. </span>When I&nbsp;test configuration of freeradius and radiusclient with radclient, there is no problem. Access is accepted. But when I&nbsp;want to authenticate with SIP Client (I use Jitsi), all registration are accepted. It doesn<span lang=EN-US>&#8217;t matter what username and password I write&#8230;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>Problem is probably in config file of Kamailio. I don&#8217;t know for what are dictionary files exactly used. I include dictionary.kamailio in freeradius&#8217;s dictionary and radiusclient&#8217;s dicitionary too. I attached  The content of this dictionary file. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>When I start Kamailio in debug mode I can see any record about authentication or radius. </span>Can anyone help me? Thanks for reply.<o:p></o:p></p><p class=MsoNormal> <span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/msg_parser.c:623]: SIP Request:<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/msg_parser.c:625]:  method:  &lt;REGISTER&gt;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/msg_parser.c:627]:  uri:     &lt;sip:192.168.0.112&gt;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/msg_parser.c:629]:  version: &lt;SIP/2.0&gt;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/msg_parser.c:170]: get_hdr_field: cseq &lt;CSeq&gt;: &lt;1&gt; &lt;REGISTER&gt;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/parse_to.c:799]: end of header reached, state=10<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/msg_parser.c:190]: DEBUG: get_hdr_field: &lt;To&gt; [31]; uri=[sip:fas@192.168.0.11<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/msg_parser.c:192]: DEBUG: to body [&quot;fas&quot; &lt;sip:fas@192.168.0.112&gt;#015#012]<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/parse_via.c:1284]: Found param type 232, &lt;branch&gt; = &lt;z9hG4bK-383438-2e2d7047b<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/parse_via.c:2672]: end of header reached, state=5<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/msg_parser.c:513]: parse_headers: Via found, flags=2<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/msg_parser.c:515]: parse_headers: this is the first via<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [receive.c:149]: After parse_msg...<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [receive.c:190]: preparing to run routing scripts...<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: maxfwd [mf_funcs.c:85]: value = 70<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: maxfwd [maxfwd.c:161]: value 70 decreased to 16<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/msg_parser.c:204]: DEBUG: get_hdr_body : content_length=0<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/msg_parser.c:106]: found end of header<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/parse_to.c:176]: DEBUG: add_param: tag=2148579d<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [parser/parse_to.c:799]: end of header reached, state=29<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: sanity [mod_sanity.c:255]: sanity checks result: 1<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: siputils [checks.c:103]: no totag<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: tm [t_lookup.c:1095]: DEBUG: t_check_msg: msg id=1 global id=0 T start=0xffffffffffffffff<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: tm [t_lookup.c:534]: t_lookup_request: start searching: hash=18808, isACK=0<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: tm [t_lookup.c:492]: DEBUG: RFC3261 transaction matching failed<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>1622]: DEBUG: tm [t_lookup.c:716]: DEBUG: t_lookup_request: no transaction found<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: tm [t_lookup.c:1164]: DEBUG: t_check_msg: msg id=1 global id=1 T end=(nil)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [socket_info.c:589]: grep_sock_info - checking if host==us: 13==9 &amp;&amp; [192.168.0.112]<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [socket_info.c:593]: grep_sock_info - checking if port 5060 (advertise 0) matches por<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [socket_info.c:589]: grep_sock_info - checking if host==us: 13==13 &amp;&amp; [192.168.0.112]<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [socket_info.c:593]: grep_sock_info - checking if port 5060 (advertise 0) matches por<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [sruid.c:176]: new sruid is [uloc-51686c8e-656-1] (1 / 19)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: registrar [reply.c:368]: created Contact HF: Contact: &lt;sip:fas@192.168.0.100:5060;transport=<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: sl [sl.c:289]: reply in stateless mode (sl)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [msg_translator.c:206]: check_via_address(192.168.0.100, 192.168.0.100, 0)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [usr_avp.c:644]: DEBUG:destroy_avp_list: destroying list (nil)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [usr_avp.c:644]: DEBUG:destroy_avp_list: destroying list (nil)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [usr_avp.c:644]: DEBUG:destroy_avp_list: destroying list (nil)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [usr_avp.c:644]: DEBUG:destroy_avp_list: destroying list (nil)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [usr_avp.c:644]: DEBUG:destroy_avp_list: destroying list (nil)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [usr_avp.c:644]: DEBUG:destroy_avp_list: destroying list (nil)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [xavp.c:447]: destroying xavp list (nil)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US> [1622]: DEBUG: &lt;core&gt; [receive.c:293]: receive_msg: cleaning up<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US><o:p>&nbsp;</o:p></span></p><div style='mso-element:para-border-div;border:solid #DDDDDD 1.0pt;padding:9.0pt 18.0pt 9.0pt 18.0pt;background:#EEEEEE'><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>#### Attributes ###<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Sip-Method 101 integer # Schulzrinne, acc<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Sip-Response-Code 102 integer # Schulzrinne, acc<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Sip-Cseq 103 string # Schulzrinne, acc<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Sip-To-Tag 104 string # Schulzrinne, acc<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Sip-From-Tag 105 string # Schulzrinne, acc<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Sip-Translated-Request-URI 107 string # Proprietary, acc<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Sip-Src-IP 108 string # Proprietary, acc<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Sip-Src-Port 109 string # Proprietary, acc<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Digest-Response 206 string # Sterman, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Sip-Uri-User 208 string # Proprietary, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Sip-Group 211 string # Proprietary, group_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Sip-Rpid 213 string # Proprietary, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE SIP-AVP 225 string # Proprietary, avp_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Digest-Realm 1063 string # Sterman, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Digest-Nonce 1064 string # Sterman, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Digest-Method 1065 string # Sterman, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Digest-URI 1066 string # Sterman, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Digest-QOP 1067 string # Sterman, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Digest-Algorithm 1068 string # Sterman, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Digest-Body-Digest 1069 string # Sterman, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Digest-CNonce 1070 string # Sterman, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Digest-Nonce-Count 1071 string # Sterman, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>ATTRIBUTE Digest-User-Name 1072 string # Sterman, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>### Acct-Status-Type Values ###<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Acct-Status-Type Failed 15 # RFC2866, acc<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>### Service-Type Values ###<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Service-Type Call-Check 10 # RFC2865, uri_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Service-Type Group-Check 12 # Proprietary, group_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Service-Type Sip-Session 15 # Schulzrinne, acc, auth_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Service-Type SIP-Caller-AVPs 30 # Proprietary, avp_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Service-Type SIP-Callee-AVPs 31 # Proprietary, avp_radius<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>### Sip-Method Values ###<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Undefined 0<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Invite 1<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Cancel 2<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Ack 4<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Bye 8<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Info 16<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Options 32<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Update 64<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Register 128<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Message 256<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Subscribe 512<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Notify 1024<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Prack 2048<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Refer 4096<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method Other 8192<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method INVITE 1 # Proprietary, acc<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method CANCEL 2 # Proprietary, acc<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method ACK 4 # Proprietary, acc<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:9.9pt;background:#EEEEEE;border:none;padding:0cm'><span style='font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:SK'>VALUE Sip-Method BYE 8 # Proprietary, acc<o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>######Kamailio config file##############<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>loadmodule &quot;auth.so&quot;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>loadmodule &quot;auth_radius&quot;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>loadmodule &quot;acc_radius&quot;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>loadmodule &quot;misc_radius&quot;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US># -- auth_radius params --<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>modparam(&quot;auth_radius&quot;, &quot;radius_config&quot;, &quot;/usr/local/etc/radiusclient-ng/radiusclient.conf&quot;)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>modparam(&quot;auth_radius&quot;, &quot;service_type&quot;, 15)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US># Authentication route<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>route[AUTH] {<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>#!ifdef WITH_AUTH<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>#!ifdef WITH_IPAUTH<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>        if((!is_method(&quot;REGISTER&quot;)) &amp;&amp; allow_source_address())<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>        {<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>                # source IP allowed<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>                return;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>        }<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>#!endif<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>        if (is_method(&quot;REGISTER&quot;))<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>        {<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>                # authenticate requests<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>                if (!radius_www_authorize(&quot;$td&quot;) {<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>                        www_challenge(&quot;$td&quot;, &quot;0&quot;);<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>                        exit;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>                }<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>                # user authenticated - remove auth header<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>                if(!is_method(&quot;REGISTER|PUBLISH&quot;))<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>                        consume_credentials();<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>        }<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>        # if caller is not local subscriber, then check if it calls<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>        # a local destination, otherwise deny, not an open relay here<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>        if (from_uri!=myself &amp;&amp; uri!=myself)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>        {<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>                sl_send_reply(&quot;403&quot;,&quot;Not relaying&quot;);<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>                exit;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>        }<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>#!endif<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>        return;<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span lang=EN-US>}<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>