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
*[email protected] <mailto:[email protected]>

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 <[email protected] <mailto:[email protected]>> wrote:

    They were the wrong way round, but swapped them and seems to have
    the same issue:


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to