after reading mtree readme, it is not clear to me if mt_match() matches
to longest or any matching prefix in the three. for example, if i have
tree with prefixes 00 and 00358 and string to be matched is
0035892345670, will mt_match() set pv to value associated with 00 or
00358? also, if mt_ignore_duplicates is set, will 00358 be considered
as duplicate of 00 or just prefixes that are exactly same. finally,
what are possible mt_tree_type values and what types they stand for?
-- juha
Hello,
it seems that is some parts of the world it is required to have call
duration with two decimals precision. By default acc module does the
timestamp in seconds.
Thinking of adding an option to save the milliseconds, I see two option:
- a new column to store the milliseconds part as integer
- a new column to store the seconds.milliseconds as double
For those using various billing engines, what would be easier to digest
when rating the CDRs?
There is already the option of doing db extra column to store $TV(Sn),
but this value is stored in a string (varchar) format, giving a little
more troubles to convert to numeric format before being able to compute
duration, so it might just worth doing the C coding to store in right
data type.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda
Hello,
Just been installing Kamailio, version 3.1.x via Git, but when I use the
default kamailio.cfg, Kamailio will not start and the debug gives the
following errors.
0(25876) : <core> [cfg.y:3330]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 285, column 29-35: syntax error
0(25876) : <core> [cfg.y:3330]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 285, column 29-35: Invalid
arguments
0(25876) : <core> [cfg.y:3333]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 285, column 36:
ERROR: bad config file (4 errors)
When I check the line, column it is the following line of the acc params:
modparam("acc", "log_flag", FLT_ACC)
I assume the variable FLT_ACC is not set or read correctly. But as it is the
default kamailio.cfg that seems strange to me.
The defined values are:
####### Defined Values #########
# *** Value defines - IDs used later in config
#!ifdef WITH_MYSQL
# - database URL - used to connect to database server by modules such
# as: auth_db, acc, usrloc, a.s.o.
#!define DBURL "mysql://openser:openserrw@localhost/openser"
#!endif
#!ifdef WITH_MULTIDOMAIN
# - the value for 'use_domain' parameters
#!define MULTIDOMAIN 1
#!else
#!define MULTIDOMAIN 0
#!endif
# - flags
# FLT_ - per transaction (message) flags
# FLB_ - per branch flags
#!define FLT_ACC 1
#!define FLT_ACCMISSED 2
#!define FLT_ACCFAILED 3
#!define FLT_NATS 5
#!define FLB_NATB 6
#!define FLB_NATSIPPING 7
Does anyone has an idea why te values are not loaded into the variables.?
With regards,
Gertjan Wolzak
Hello,
I would like to use Kamailio as a TCP <=> TLS convertor ?
Do you think it's possible ?
I have developed a software (which simulate a SIP phone) which can use UDP or
TCP (not TLS).
I need a SIP proxy to convert TCP to TLS.
For example:
UA => TCP OPTION (5060) => Kamailio => TLS OPTION (5061) => OXE
UA <= TCP 200 OK (5060) <= Kamailio <= TLS 200 OK (5061) <= OXE
Do you think Kamailio can do that ?
Thanks in advance,
Regards
Hi Folks,
I would like to ask how can I change the $rU (user part of uri) in multiple
appended branches?
In my scenario I do lookup("location") and after this I try to modify an
username using the $rU variable. This works fine until there are several
records in the location table for the given user (registered from different
locations). In this case only one branch is changed and unchanged uri is
sent to an another location.
Is there a way to change it in all branches together?
Thanks for the answer.
Regards,
Efelin
On Monday 08 August 2011, Yaron Nachum wrote:
> I have seen the match_mode but I haven't seen how is it possible to set it
> up per domain.
>
> I would appreciate if you could explain how.
Hi Yaron,
please always CC to the mailling list.
Its not possible to set the match_mode per domain, its a global parameter.
With regards to the domains, this was another option you could use, e.g. use
domain 0 for calls without the 'D' prefix, and then domain D for calls with
'D' prefix.
Best regards,
Henning