Ticket #1206 (closed Feature Requests: invalid)

Opened 5 years ago

Last modified 4 years ago

create new strategy for the ring groups

Reported by: ubanov Assigned to:
Priority: minor Milestone: 2.5
Component: Ring Groups Version:
Keywords: Cc:
Confirmation: Unreviewed SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

For one installation, I needed to have a new call strategy for a ring group, then I have developed it. I needed to have a strategy hunt, but with a random reorder of the extensions. Then I have created a AGI script (sorry but is written in C), and changed two files in the ring groups modules. I have attached the files in this tickets (for the 2.1 brand).

Attachments

resort-agi.c (2.8 kB) - added by ubanov on 10/23/06 03:10:08.
functions.inc.php (5.1 kB) - added by ubanov on 10/23/06 03:13:06.
My changed version of the file functions.inc.php
functions.inc.php.orig (4.4 kB) - added by ubanov on 10/23/06 03:18:07.
The original version of the file functions.inc.php, I send the file in order to could make the diff from both files.
page.ringgroups.php (11.8 kB) - added by ubanov on 10/23/06 03:19:01.
My modified version of the file page.ringgroups.php
page.ringgroups.php.orig (11.6 kB) - added by ubanov on 10/23/06 03:20:28.
The original version of the file page.ringgroups.php, I send the file in order to could make the diff from both files.

Change History

10/23/06 03:10:08 changed by ubanov

  • attachment resort-agi.c added.

10/23/06 03:13:06 changed by ubanov

  • attachment functions.inc.php added.

My changed version of the file functions.inc.php

10/23/06 03:18:07 changed by ubanov

  • attachment functions.inc.php.orig added.

The original version of the file functions.inc.php, I send the file in order to could make the diff from both files.

10/23/06 03:19:01 changed by ubanov

  • attachment page.ringgroups.php added.

My modified version of the file page.ringgroups.php

10/23/06 03:20:28 changed by ubanov

  • attachment page.ringgroups.php.orig added.

The original version of the file page.ringgroups.php, I send the file in order to could make the diff from both files.

10/23/06 10:27:01 changed by p_lindheimer

I have not looked though but from the description it doesn't seem likely that it will be included (sounds a bit more complicated then required).

If the only thing necessary is to randomize the order of the ringgroup elements, it would seem a lot simpler to simply do a shuffle() on the array in dialparties.agi upon detection of the new ring strategy, and then proceed as normal.

example:

$extarray = split('-',$arg);
if ($rgmethod == "random-hunt") shuffle($extarray);
foreach ($extarray as $k)
{
... rest of code ...
   

07/24/08 15:55:55 changed by p_lindheimer

  • status changed from new to closed.
  • confirmation set to Unreviewed.
  • engine_version changed.
  • svn_rev changed.
  • milestone set to 2.5.
  • resolution set to invalid.

closing as invalid, as the original submital was in C and it would need to be provided in scripting language not requiring compiling to be evaluated.