<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hello Justin,<br>
<br>
In the 1.10 code, in the UAC module, in the mod_init function,
the binding to UAC AUTH module is to be done. See line 171 in
modules/uac/uac.c<br>
<br>
<br>
if ( is_script_func_used("uac_auth", -1) ) {<br>
/* load the UAC_AUTH API as uac_auth() is invoked from
script */<br>
if(load_uac_auth_api(&uac_auth_api)<0){<br>
LM_ERR("can't load UAC_AUTH API, needed for
uac_auth()\n");<br>
goto error;<br>
}<br>
}<br>
<br>
<br>
Maybe the is_script_func_used() doesn't trigger properly there -
in what kind of route are you using the uac_auth() function ?
Could you place a LM_DBG() in that 'if' statement to see if it
goes in there ?<br>
<br>
Thank and regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 25.03.2014 14:28, Justin Zondagh wrote:<br>
</div>
<blockquote
cite="mid:CAFWU5mhi6fvwAS+x7PU=nBEZXm4wHseGU9RDA_Lci=-=ak17Kg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Bogdan,
<div><br>
</div>
<div>I have found and fixed the bug. The uac_auth_api wasn't
being loaded before being called as you suspected.</div>
<div><br>
</div>
<div>I added this code</div>
<div><br>
</div>
<div>
<div> if(load_uac_auth_api(&uac_auth_api) < 0){</div>
<div> LM_INFO("Error loading uac_auth_api");</div>
<div> goto error;</div>
<div> }</div>
<div><br>
</div>
<div>
<br>
</div>
<div>before calling the API on the next line:</div>
<div>
<div><br>
</div>
<div> crd = uac_auth_api._lookup_realm(
&auth->realm );</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Seems to work now...</div>
<div>
<br>
</div>
<div>How do we commit this to code base?</div>
<div>
</div>
<div><br>
</div>
</div>
<div>Regards,</div>
<div>Justin</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div dir="ltr">
<div><b><br>
</b></div>
<b>Justin Zondagh<br>
</b><a moz-do-not-send="true"
href="mailto:zondagh@gmail.com" target="_blank">zondagh@gmail.com</a><br>
<br>
Cape Town | South Africa
<div>skype: jrzondagh</div>
<div>m: +27 72 598 4887 | f: +27 86 546 1405</div>
<div>uk:<b> </b>+44 20 328 99610</div>
</div>
</div>
<br>
<br>
<div class="gmail_quote">On Tue, Mar 25, 2014 at 10:18 AM,
Justin Zondagh <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:zondagh@gmail.com" target="_blank">zondagh@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">They were the wrong way round, but swapped
them and seems to have the same issue:<br>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>