Yes. You will need to remove the entry when the dialog ends (on BYE). If you don't get a BYE, you may end up with leftovers. You can clean them up by setting a cron job to check for 'old' records into your 'dlg' table and remove them.
The hash module solution is more elegant, but you will need to wait for the next release. Regards, Ovidiu Sas On Tue, Nov 18, 2008 at 5:12 PM, Alex R. S. M <[EMAIL PROTECTED]> wrote: > Then this table would have an entry for each dialog. Do we need to flush the > table at any time? > > >> Date: Tue, 18 Nov 2008 10:26:35 -0500 >> From: [EMAIL PROTECTED] >> To: [EMAIL PROTECTED] >> Subject: Re: [Kamailio-Users] global variable for inter-transaction >> CC: [email protected] >> >> At this point in time there are no variables that can store a value >> across dialogs. >> One alternative would be to store the value into a db during the first >> transaction and then retrieve it on the second transaction belonging >> to the same dialog. Use clid/fromtag/totag to identify the dialog. >> >> Regards, >> Ovidiu Sas >> >> On Tue, Nov 18, 2008 at 10:22 AM, Alex R. S. M <[EMAIL PROTECTED]> >> wrote: >> > Hi, >> > >> > What type of variable can store a value from one Transaction to another >> > Transaction in the same dialog, i.e. to store a value from "200 >> > response" >> > and use it in "BYE request". I tried VAR and AVP and they both are being >> > reset in the new Transaction. >> > >> > Please advice, >> > AR >> > >> > ________________________________ >> > Proud to be a PC? Show the world. Download the "I'm a PC" Messenger >> > themepack now. Download now. >> > _______________________________________________ >> > Users mailing list >> > [email protected] >> > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users >> > >> > > > ________________________________ > Proud to be a PC? Show the world. Download the "I'm a PC" Messenger > themepack now. Download now. _______________________________________________ Users mailing list [email protected] http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
