Hello,
I need to modify the sip header to be able to catch my inbound calls but I am not successful. How to do it ?
The setting I need with my operators are
- maxexpirey=1900
- defaultexpirey=1800
I changed them in the sail headers menu, sip.conf. This method is not efficient as those personal settings are whipped out every time I reconfigure the server, after an update for example. I checked the template and it actually refers to selintra database, /home/e-smith/db/selintra. Modify this database is not a good idea. But I am a bit lost here with standard sme method : how to create in my case a custom template ? What to write ? I am not comfortable with the syntax used for the original one :
package esmith;
use strict;
use Errno;
use esmith::config;
use esmith::util;
use esmith::db;
my %selintra;
tie %selintra, 'esmith::config', '/home/e-smith/db/selintra';
my %conf;
tie %conf, 'esmith::config', '/home/e-smith/db/configuration';
my $headerlines = db_get_prop(\%selintra, 'sip.conf', "headerlines") || "";
my $externip = db_get_prop(\%selintra, "global", "EDOMAIN") || "";
my $haclusterip = db_get_prop(\%selintra, "global", "HACLUSTERIP") || "";
my $localnet = db_get_type(\%conf, "LocalIP") || "";
my $netmask = db_get_prop(\%conf, 'InternalInterface', 'Netmask') || "";
$OUT .= "$headerlines\n";
unless ($externip eq "")
{
$OUT .= "externip=$externip\n";
}
if (db_get_prop(\%selintra, "global", "BINDADDR") eq 'ON') {
$OUT .= "bindaddr=$haclusterip\n";
}
$OUT .= "localnet=$localnet/$netmask";
}
Thanks for your help.
Olivier