[OpenSIPS-Users] Fwd: uac_auth() segfault
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue Mar 25 18:28:51 CET 2014
Hello Justin,
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
if ( is_script_func_used("uac_auth", -1) ) {
/* load the UAC_AUTH API as uac_auth() is invoked from script */
if(load_uac_auth_api(&uac_auth_api)<0){
LM_ERR("can't load UAC_AUTH API, needed for uac_auth()\n");
goto error;
}
}
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 ?
Thank and regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 25.03.2014 14:28, Justin Zondagh wrote:
> Hi Bogdan,
>
> I have found and fixed the bug. The uac_auth_api wasn't being loaded
> before being called as you suspected.
>
> I added this code
>
> if(load_uac_auth_api(&uac_auth_api) < 0){
> LM_INFO("Error loading uac_auth_api");
> goto error;
> }
>
>
> before calling the API on the next line:
>
> crd = uac_auth_api._lookup_realm( &auth->realm );
>
>
> Seems to work now...
>
> How do we commit this to code base?
>
> Regards,
> Justin
>
>
> *
> *
> *Justin Zondagh
> *zondagh at gmail.com <mailto:zondagh at gmail.com>
>
> Cape Town | South Africa
> skype: jrzondagh
> m: +27 72 598 4887 | f: +27 86 546 1405
> uk:**+44 20 328 99610
>
>
> On Tue, Mar 25, 2014 at 10:18 AM, Justin Zondagh <zondagh at gmail.com
> <mailto:zondagh at gmail.com>> wrote:
>
> They were the wrong way round, but swapped them and seems to have
> the same issue:
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140325/44cb6a5d/attachment.htm>
More information about the Users
mailing list