sorry instructions were not that clear in the sql_ file mentioned below
look for
/*
* add new alias
*/
function add_new_alias($sip_address, $alias, &$errors){
global $config;
if ($config->ul_replication) $replication="0\n";
else $replication="";
$ul_name=$alias."(a)".$config->default_domain."\n"t_domain."\n";
/* construct FIFO command */
$fifo_cmd=":ul_add:".$config->reply_fifo_filename."\n".
$config->fifo_aliases_table."\n". //table
$ul_name. //user
$sip_address."\n".
//contact
$config->new_alias_expires."\n". //expires
$config->new_alias_q."\n". //priority
******* $replication.
******* $config->flags."\n";
The two lines changed were the ones marked with ********
the config.php file i will need to check i dont have my notes here,
basically the file which calls the add alias function and sends through
the parameters u need to tell it that flags=128
Iqbal
On 4/7/2005, "Mr Greg Plater" <gplater(a)da-bratz.com> wrote:
I have this error 400 ul_add : flag expected .
I found this thread but I am not sure where to add the lines in the config
file
http://lists.iptel.org/pipermail/serusers/2005-February/015535.html
So i cheated, I edited config.php in serweb, added
a line
var $flags
Then I went further down, and addedd
$this->flags="128";
and then in sql_and_fifo_functions.php
I changed the lines reading
$replication. "\n" to
$replication.
$config->flags."\n";
NOTICE I removed the "\n" after replication, it didnt work with that.
I ran it all again, and it works, cleaned up the pending table, added in
subscriber and also added the alias in aliases, user logged in find from
xlite and also from his login panel, so I guess its all okay.