[Kamailio-Users] Dialog profile persistence - DB vs. memory.

Ovidiu Sas osas at voipembedded.com
Mon Nov 10 20:25:55 CET 2008


The profiling mechanism is not persistent and therefor you cannot use
it in a failover scenario.

Regards,
Ovidiu Sas

On Mon, Nov 10, 2008 at 2:12 PM, Alex Balashov
<abalashov at evaristesys.com> wrote:
> Greetings,
>
> Is some of the dialog profile information kept in in-memory structures
> inside the Kamailio instance even when one is using a database?
>
> I am using the dialog module in an HA configuration and fail over the
> database and proxy between two machines.  The database and the proxy are
> both started on the secondary node during failover, and the database
> uses on-disk data and indices on a shared filesystem.
>
> What I am finding is that if I initiate some dialogs on the primary and
> then trigger the failover, the proxy on the secondary node is not aware
> of them.  I see the entries for them in the database table from the
> secondary node - they're definitely there, and I am using db_mode 1
> (real-time).  However, the profile sizes are all showing as 0.  I have
> also tried it with different match_modes with the same results whether I
> am using the RR cookie or SIP attributes purely.
>
> It's rather important that I get this working because I require dialog
> tracking for secure loose-routing of subsequent (non-initial) in-dialog
> requests and for concurrent call limit control.  I was imagining that
> storing all the dialog info in the database would create the necessary
> persistence layer for another proxy instance to have the exact same
> profile information as the first.
>
> Is this a bug, or is it supposed to work this way?
>
> Cheers,
>
> -- Alex
>
> --
> Alex Balashov
> Evariste Systems
> Web    : http://www.evaristesys.com/
> Tel    : (+1) (678) 954-0670
> Direct : (+1) (678) 954-0671
> Mobile : (+1) (706) 338-8599
>
> _______________________________________________
> Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list