Re: [OpenSIPS-Users] Dispatcher Order SQL DB - version 1.11.5

2015-08-19 Thread Federico Edorna
"weights" was my first choice, but I changed my mind because we were not using "atrrs" column neither. Anyway, I will keep in mind your suggestion. Many Thanks! On Wed, Aug 19, 2015 at 10:59 AM, Bogdan-Andrei Iancu wrote: > Hi Federico, > > Well, it is a good workaround. As a hint, if you do no

Re: [OpenSIPS-Users] Dispatcher Order SQL DB - version 1.11.5

2015-08-19 Thread Bogdan-Andrei Iancu
Hi Federico, Well, it is a good workaround. As a hint, if you do not want to sacrifice the "attrs" column for ordering (attributes are really useful to have in many usage scenarios), you can better use the "weights" column. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://w

Re: [OpenSIPS-Users] Dispatcher Order SQL DB - version 1.11.5

2015-08-18 Thread Federico Edorna
In my table there is a priority column! ;) I don't know where did I get that schema... sorry, my mistake. Now, going back to the workarround (just in case someone has the same issue), since I'm not using the attrs column value in the config file, I will use that column to order the set. To accompl

Re: [OpenSIPS-Users] Dispatcher Order SQL DB - version 1.11.5

2015-08-18 Thread Bogdan-Andrei Iancu
Federico, There is no "priority" field in the dispatcher table in 1.11 : http://www.opensips.org/Documentation/Install-DBSchema-1-11#AEN4123 wrong table ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 17.08.2015 21:03, Federico Edorna wrote:

Re: [OpenSIPS-Users] Dispatcher Order SQL DB - version 1.11.5

2015-08-17 Thread Federico Edorna
Actually the table has the priority column in ver 1.11. Anyway, thanks for your response Bogdan, I will try to find a workarround for this version until we upgrade to 2.x. Thanks & Regards Federico On Mon, Aug 17, 2015 at 5:56 AM, Bogdan-Andrei Iancu wrote: > Hi Federico, > > This is an known

Re: [OpenSIPS-Users] Dispatcher Order SQL DB - version 1.11.5

2015-08-17 Thread Bogdan-Andrei Iancu
Hi Federico, This is an known issue with the older versions of OpenSIPS (not being able set an order for the records). In 2.1 this was solved by having a priority column which dictates the oder of usage of records. For versions before 2.1, you have to rely on the oder provided by DB :(. Rega

[OpenSIPS-Users] Dispatcher Order SQL DB - version 1.11.5

2015-08-14 Thread Federico Edorna
Hello Guys, I'm using dispatcher module with postgres database. The ds_select_dst function in the script file is used like this: ds_select_dst("$(var(ds_set){s.int})","8"); that is, using "8" algorithm (first entry in set is chosen) because I need to use always the same destination in the set whi