-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
the example in OpenSER 1.3 and devel module doc for module group is wrong. It gives this line as example:
modparam("group", "reg_exp_column", "re")
but it should be:
modparam("group", "reg_exp_column", "reg_exp")
minor thing, but anoying, when u just copy and paste modparams into your config without reading the chapter titles ....
Maybe there should be a block with all modparams and their default values in each module's doc...
regards Helmut
On Tuesday 27 November 2007, Helmut Kuper wrote:
Hi,
the example in OpenSER 1.3 and devel module doc for module group is wrong. It gives this line as example:
modparam("group", "reg_exp_column", "re")
but it should be:
modparam("group", "reg_exp_column", "reg_exp")
Hi Helmut,
well, most module documentations shows the default parameter a second time in the example, like in the case you mentioned above. But some module uses another parameter in its example. I don't think this is a problem.
If you want the default parameter, simply ommit the 'modparam' statement completely.
Cheers,
Henning
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi Henning,
hmmm, I thing I did a mistake ....
modparam("group", "reg_exp_column", "re")
should be
modparam("group", "re_exp_column", "re")
... sorry ....
Other Question about Groups.
Is there a documentation how the reg expr syntax for re_grp table should be? I tried something like
sip:1234([12][0-9]|3[0-1])@
but no success.
When I try following in perl it works:
- ------------------------- $a="sip:123431@";
if($a=~/sip:1234([12][0-9]|3[0-1])@/) { print "Matched $1\n"; } - -------------------------
Any idea?
regards helmut
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi again,
ok, found it. Due to DB caching my changes to regexps in DB are only loaded at startup ....
Is the a way to reload the regexps without restarting openser ?
regards helmut
Hi Helmut,
No, there is no way to reload the regexp without restarting - the main stopper for doing this is the fact you need to compile the regexp (before using) in private memory (per process) - and the reload is done from an additional process (MI).
Regards, Bogdan
Helmut Kuper wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi again,
ok, found it. Due to DB caching my changes to regexps in DB are only loaded at startup ....
Is the a way to reload the regexps without restarting openser ?
regards helmut
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHTG0J4tZeNddg3dwRAk2DAKDAtZh/XhtK2D0AXhBz1nFBHdJlIACeK3YK w67ssoiugF3SuYFt6ffkJmY= =YLF/ -----END PGP SIGNATURE-----
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Hi Bogdan,
For the lcr module I did a reload implementation that is allowing regexp to be used. After a reload is performed, each worker process is detecting the new regex on the first invocation of a method/function that will need to use the regex. The first SIP request on each process that will need to use the regex after a reload/change is done, will take the additional load of compiling the new regex in private memory. Please check load_from_uri_regex() method and the conditional invocation of it on the lcr module: do_load_gws().
Regards, Ovidiu Sas
On Nov 28, 2007 3:27 AM, Bogdan-Andrei Iancu bogdan@voice-system.ro wrote:
Hi Helmut,
No, there is no way to reload the regexp without restarting - the main stopper for doing this is the fact you need to compile the regexp (before using) in private memory (per process) - and the reload is done from an additional process (MI).
Regards, Bogdan
Helmut Kuper wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi again,
ok, found it. Due to DB caching my changes to regexps in DB are only loaded at startup ....
Is the a way to reload the regexps without restarting openser ?
regards helmut
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHTG0J4tZeNddg3dwRAk2DAKDAtZh/XhtK2D0AXhBz1nFBHdJlIACeK3YK w67ssoiugF3SuYFt6ffkJmY= =YLF/ -----END PGP SIGNATURE-----
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users