[Asterisk-Dev] Realtime Friends

Rod Bacon rod.bacon at empoweredcomms.com.au
Sun Apr 17 14:55:09 MST 2005


Can someone in this list clear up something concerning the behaviour of 
ARA? Please see my original post to Asterisk-users, below:

>
>
>> Matthew, I got the updates to start working again by ensuring that
>> rtcachefriends=yes. I don't see why this should make a difference,
>> but it does. My understanding was that this parameter only
>> controlled the seeding of the in-memory friends list from the
>> realtime db for purposes of MWI and KeepAlive.
>>
>> I have, however, one remaining issue that I need to resolve.
>>
>> Essentially, I am testing two Asterisk servers (Server1 ans Server2),
>> configured to talk to a common database. I am trying to have calls
>> placed on ANY server routed to SIP UAs registered on ANY OTHER
>> server.
>>
>> Specifically;
>>
>> UA1 registers to Server1. DB is updated correctly. UA2 registers to
>> Server2. DB is updated correctly. I can query the db (using REALTIME
>> LOAD) from either server and see the correct SIP info for either UA.
>>
>> The central dialplan simply routes calls to SIP/UA1 or SIP/UA2.
>>
>> The problem is that Server1 ONLY knows about UA1 and Server2, UA2.
>> The logic seems to be that the lookup in the extensions table
>> (realtime dialplan) happens, then tries to route the call to a SIP
>> registrant that is not in the local (in-memory) friends table.
>>
>> I thought the Server would then go back to the friends realtime
>>  table to get the registration info? Is this NOT how it is supposed
>> to work?
>>
>> Should rtcachefriends force the server to update it's friends list on
>> server startup, then at predetermined (configurable?) intervals?
>>
>>




More information about the asterisk-dev mailing list