<div dir="ltr">Thank you. I'll check that in next week. I hope i'll not need any help. Thank you for all your help once again<br><br>Regards,<br><br>Saeed Akhtar<br><br>
<br><br><div class="gmail_quote">On Wed, Nov 25, 2009 at 8:50 PM, Irina Stanescu <span dir="ltr"><<a href="mailto:ironmissy@gmail.com">ironmissy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>I recommend you to read the documentation of the auth_aaa module <a href="http://www.opensips.org/html/docs/modules/devel/auth_aaa.html" target="_blank">http://www.opensips.org/html/docs/modules/devel/auth_aaa.html</a> because you are not using the aaa_www_authorize function correctly (the realm parameter is usually "the domain of the host the server is running on").</div>
<div><br></div><div>To find the cause of the seg fault, i need to have a full backtrace from the core dump.</div><div><br></div><div>Regards,</div><div>Irina Stanescu</div><div><div></div><div class="h5"><div><br></div><div>
<div class="gmail_quote">On Wed, Nov 25, 2009 at 3:45 PM, Saeed Akhtar <span dir="ltr"><<a href="mailto:saeedakhtar.484@gmail.com" target="_blank">saeedakhtar.484@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br clear="all"><div>Thank you. Now aaa_radius module is there and I've added it in configuration file. But now I have a new error. It says:<br>
</div><div>Nov 25 17:41:06 [30313] ERROR:aaa_radius:mod_init: radius configuration file not set<br>
Nov 25 17:41:06 [30313] ERROR:core:init_mod: failed to initialize module aaa_radius<br>Nov 25 17:41:06 [30313] ERROR:core:main: error while initializing modules<br><br></div><div>So I added:</div><div>modparam("aaa_radius", "radius_config", "/etc/radiusclient-ng/radiusclient.conf")</div>
<div>(ref: <a href="http://www.opensips.org/Resources/DocsTutRadius" target="_blank">http://www.opensips.org/Resources/DocsTutRadius</a>)</div><div><br></div><div>and it removed the error.<br></div><div><br></div><div><br>
</div><div>But another problem now:</div><div>I added </div><div>if (!aaa_www_authorize("<a href="http://opensips.org" target="_blank">opensips.org</a>")) {<br> www_challenge("<a href="http://opensips.org" target="_blank">opensips.org</a>", "1");<br>
};<br></div><div>in my configuration files. Then I ran freeradius and opensips and used xlite sip phone to connect to my test server. <br></div><div>I can see my freeradius that it authenticated my request but my opensips just closed with this messages in end:</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Nov 25 18:36:43 [6494] DBG:core:get_hdr_field: to body ["testdig"<<a href="mailto:sip%3Atestdig@192.168.2.18" target="_blank">sip:testdig@192.168.2.18</a>><br>
]<br>Nov 25 18:36:43 [6494] DBG:uri:has_totag: no totag<br>Nov 25 18:36:43 [6494] DBG:core:parse_headers: flags=4000<br>Nov 25 18:36:43 [6494] DBG:core:get_hdr_field: cseq <CSeq>: <1> <REGISTER><br>Nov 25 18:36:43 [6494] DBG:core:get_hdr_field: content_length=0<br>
Nov 25 18:36:43 [6494] DBG:core:get_hdr_field: found end of header<br>Nov 25 18:36:43 [6494] DBG:auth:pre_auth: credentials with given realm not found<br>Nov 25 18:36:43 [6494] DBG:auth:reserve_nonce_index: second= 22, sec_monit= -1, index= 6<br>
Nov 25 18:36:43 [6494] DBG:auth:build_auth_hf: nonce index= 6<br>Nov 25 18:36:43 [6494] DBG:auth:build_auth_hf: 'WWW-Authenticate: Digest realm="<a href="http://opensips.org" target="_blank">opensips.org</a>", nonce="4b0d330900000006867ba8b2cfc8135a697ac20566d6e7e6", qop="auth"<br>
'<br>Nov 25 18:36:43 [6494] DBG:core:parse_headers: flags=ffffffffffffffff<br>Nov 25 18:36:43 [6494] DBG:core:check_ip_address: params 192.168.2.12, 192.168.2.12, 0<br>Nov 25 18:36:43 [6494] DBG:core:destroy_avp_list: destroying list (nil)<br>
Nov 25 18:36:43 [6494] DBG:core:receive_msg: cleaning up<br>Nov 25 18:36:43 [6494] DBG:core:parse_msg: SIP Request:<br>Nov 25 18:36:43 [6494] DBG:core:parse_msg: method: <REGISTER><br>Nov 25 18:36:43 [6494] DBG:core:parse_msg: uri: <sip:192.168.2.18><br>
Nov 25 18:36:43 [6494] DBG:core:parse_msg: version: <SIP/2.0><br>Nov 25 18:36:43 [6494] DBG:core:parse_headers: flags=2<br>Nov 25 18:36:43 [6494] DBG:core:parse_via_param: found param type 232, <branch> = <z9hG4bK-d8754z-08647909f42cfa04-1---d8754z->; state=6<br>
Nov 25 18:36:43 [6494] DBG:core:parse_via_param: found param type 235, <rport> = <n/a>; state=17<br>Nov 25 18:36:43 [6494] DBG:core:parse_via: end of header reached, state=5<br>Nov 25 18:36:43 [6494] DBG:core:parse_headers: via found, flags=2<br>
Nov 25 18:36:43 [6494] DBG:core:parse_headers: this is the first via<br>Nov 25 18:36:43 [6494] DBG:core:receive_msg: After parse_msg...<br>Nov 25 18:36:43 [6494] DBG:core:receive_msg: preparing to run routing scripts...<br>
Nov 25 18:36:43 [6494] DBG:core:parse_headers: flags=100<br>Nov 25 18:36:43 [6494] DBG:maxfwd:is_maxfwd_present: value = 70 <br>Nov 25 18:36:43 [6494] DBG:core:parse_headers: flags=8<br>Nov 25 18:36:43 [6494] DBG:core:parse_to: end of header reached, state=10<br>
Nov 25 18:36:43 [6494] DBG:core:parse_to: display={"testdig"}, ruri={<a href="mailto:sip%3Atestdig@192.168.2.18" target="_blank">sip:testdig@192.168.2.18</a>}<br>Nov 25 18:36:43 [6494] DBG:core:get_hdr_field: <To> [37]; uri=[<a href="mailto:sip%3Atestdig@192.168.2.18" target="_blank">sip:testdig@192.168.2.18</a>] <br>
Nov 25 18:36:43 [6494] DBG:core:get_hdr_field: to body ["testdig"<<a href="mailto:sip%3Atestdig@192.168.2.18" target="_blank">sip:testdig@192.168.2.18</a>><br>]<br>Nov 25 18:36:43 [6494] DBG:uri:has_totag: no totag<br>
Nov 25 18:36:43 [6494] DBG:core:parse_headers: flags=4000<br>
Nov 25 18:36:43 [6494] DBG:core:get_hdr_field: cseq <CSeq>: <2> <REGISTER><br>Nov 25 18:36:43 [6494] DBG:auth:check_nonce: comparing [4b0d330900000006867ba8b2cfc8135a697ac20566d6e7e6] and [4b0d330900000006867ba8b2cfc8135a697ac20566d6e7e6]<br>
Segmentation fault (core dumped)<br><br></blockquote><div><br></div><div>1 thing i didn't include in my freeradius users file is:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
SIP-AVP = "sems:ann-account_locked",</blockquote><div>and i didn't include following lines in opensips config file too.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
if (!aaa_proxy_authorize("")) { # Realm and URI user will be auto-generated<br> proxy_challenge("", "1");<br>};<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
if (!aaa_proxy_authorize("$pd", "$pU")) { # Realm and URI user are taken<br> proxy_challenge("$pd", "1"); # from P-Preferred-Identity<br>}; </blockquote><div>because it generated some error. (I can't exactly remember it now).</div>
<div><br></div><div>Please someone tell me what i did wrong.</div><div><br></div><div>Regards,<br></div><font color="#888888">
<br>Saeed Akhtar</font><div><div></div><div><br><br>
<br><br><div class="gmail_quote">On Wed, Nov 25, 2009 at 5:24 PM, Irina Stanescu <span dir="ltr"><<a href="mailto:ironmissy@gmail.com" target="_blank">ironmissy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>You have to load the aaa_radius module because it provides an implementation for the aaa api used by several other modules. </div>You did not find the aaa_radius.so because the aaa_radius module is not compiled by default. <div>
You have to compile it yourself ( using make modules modules=modules/aaa_radius ).<div><div><div><br></div></div><div><br></div><div>Regards,</div><div><br></div><div><font color="#888888">Irina Stanescu</font><div><div>
<br><br><div class="gmail_quote">On Wed, Nov 25, 2009 at 2:19 PM, Saeed Akhtar <span dir="ltr"><<a href="mailto:saeedakhtar.484@gmail.com" target="_blank">saeedakhtar.484@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br clear="all">Hi,<div><br></div><div>Thanks for your reply. First time I tried to load aaa_radius module. I used following command:<br>
loadmodule "aaa_radius.so"</div><div>and it gave me error:</div>
<div>ERROR:core:yyparse: module 'aaa_radius.so' not found in '/usr/local/lib/opensips/modules/'</div><div><br></div><div>So i thought that may be aaa_radius module is not exactly a module to load seperatly in opensips. because i couldn't find aaa_radius.so file in my modules folder. </div>
<div>Now i think i've done some terribly wrong in installing OpenSIPS with radius access. Can you please help me out to correct it.</div><div><br>Regards,<br><font color="#888888"><br>Saeed Akhtar</font><div>
<div><br><br>
<br><br><div class="gmail_quote">On Wed, Nov 25, 2009 at 5:11 PM, Irina Stanescu <span dir="ltr"><<a href="mailto:ironmissy@gmail.com" target="_blank">ironmissy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Saeed,<div><br></div><div>Did you load the aaa_radius module?</div><div><br></div><div>Regards, </div><div>Irina Stanescu<br><br><div class="gmail_quote"><div><div>On Wed, Nov 25, 2009 at 1:37 PM, Saeed Akhtar <span dir="ltr"><<a href="mailto:saeedakhtar.484@gmail.com" target="_blank">saeedakhtar.484@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><br clear="all">hi all,<div><br></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><span style="border-collapse:separate;color:rgb(94, 94, 94);font-family:arial, helvetica, clean, sans-serif;font-size:13px;line-height:16px"><p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:20px">
i'm trying to connect OpenSIPS with FreeRadius on Ubuntu Server 9.04. I've installed radius client and free radius server and then opensips. and I've following error lines when i run opensips.</p><p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:20px">
DBG:core:find_<i style="font-style:italic;font-weight:inherit">mod_</i>export: <aaa_<i style="font-style:italic;font-weight:inherit">bind_</i>api> in module aaa_radius not found</p><p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:20px">
ERROR:core:aaa_prot: <aaa_radius> has no bind api function</p><p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:20px">
ERROR:acc:init<i style="font-style:italic;font-weight:inherit">acc</i>aaa: AAA protocol bind failure</p><p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:20px">
ERROR:acc:mod_init:failed to init radius</p><p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:20px">
ERROR:core:init_mod: failed to initialize module acc</p><p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:20px">
ERROR:core:main: error while initializeing modules</p></span></span></font>Can someone please help me to resolve this issue<br><br><br>Regards,<br><br>Saeed Akhtar<br><br>
</div></div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>