[SR-Users] permissions module address_reload not working

Daniel-Constantin Mierla miconda at gmail.com
Thu Jul 1 10:27:46 CEST 2010


Hello Juha,

On 7/1/10 8:28 AM, Juha Heinanen wrote:
> JR Richardson writes:
>
>    
>> Well, you sure are a smart fella.  I reverted the patch and reloading
>> the address table works as expected now.  For clarification I was
>> testing with kamailio-3.0.2_src_2010-06-30_a6141a.tar.gz snapshot.
>> Let me know when you have the updated fix and I'll do sime testing.
>>      
> there was an address table reload bug that i tried to fix with the patch:
>
> modules_k/permissions: fixed reloading of address table
> - Database handle was not initialized when address table was reloaded.
>    Now it is initialized/closed at each reload.  Looks like this has
>    never been tested before.  Still don't know why mi_addr_child_init()
>    exists and what it is supposed to do.
>
> reverting the patch thus most likely reintroduced this other bug.
> perhaps the bug that you saw has something to do with the last sentence
> of the commit.
>    
I guess you use this command via rpc interface, not via mi. Looking at 
the code, the mi init child is not done for rpc processes, resulting in 
some mi commands not working properly when called over rpc. The fix 
should be calling mi init child functions in mi_rpc module -- working on 
it today.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com/




More information about the sr-users mailing list