Ticket #982 (closed Feature Requests: worksforme)

Opened 6 years ago

Last modified 4 years ago

multiple allow/disallow fields per extension

Reported by: loclhst Assigned to:
Priority: minor Milestone: 2.5
Component: Core Version: SVN-HEAD
Keywords: Cc:
Confirmation: Unreviewed SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

It would be nice to have mutliple allow/disallow fields per extension so one can enable or disable certian codecs on an extension basis.

Maybe having a button next to allow and disallow that says "add another allow" or "add another disallow" so you can add more than one so you can do a disallow=all allow=gsm allow=h263 and whatever. then leaving the field blank to delete them.

Change History

07/15/06 19:55:16 changed by webrainstorm

Here is a function checking for available codecs, it can be used in this implementation.

function getcodecs() {
	require_once('common/php-asmanager.php');
	global $amp_conf;

	$astman = new AGI_AsteriskManager();
	if ($res = $astman->connect("127.0.0.1", $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) {
		$ret = $astman->Command('show audio codecs');
		
		$lines = explode("\n", $ret['data']);
		for ($i = 5; $i < count($lines); $i++)	{
			$codecs[] = trim(substr($lines[$i], 39, 8));
		}

		return $codecs;
		
	} else {
		fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]);
	}

}

My 2 cents

01/08/07 13:46:49 changed by

  • milestone deleted.

Milestone 2.3 deleted

01/08/07 14:10:04 changed by vgster

  • milestone set to 2.3.

02/23/07 17:18:30 changed by andre_ruiz

Can't just separate them with commas in the textbox?

02/23/07 21:25:17 changed by vgster

  • engine_version changed.
  • svn_rev changed.

use a & between them so in the gui

Disallow all Allow ulaw&gsm

Should write disallow=all allow=ulaw allow=gsm back to the config files.

07/13/08 00:49:29 changed by p_lindheimer

  • status changed from new to closed.
  • confirmation set to Unreviewed.
  • resolution set to worksforme.
  • milestone changed from 4.0 to 2.5.

as mentioned, separate them with &