Hi,
I would like to be able to perform some checks inside ser.cfg, globaly for all user. I need to have some kind of the global tag or attribute set to point a specific condition. How can I achive that in the nice way, the best would be if this parameter is somehow configurable thorugh serweb.
Thank You in advance Bests -Tomasz
There are lots of ways you can set flags/tags in SER for various attributes.
Perhaps if you explained a little bit more about what you were doing, we might be able to better point you toward the most efficient method.
N.
Tomasz Zieleniewski wrote:
Hi,
I would like to be able to perform some checks inside ser.cfg, globaly for all user. I need to have some kind of the global tag or attribute set to point a specific condition. How can I achive that in the nice way, the best would be if this parameter is somehow configurable thorugh serweb.
Thank You in advance Bests -Tomasz
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
I need to enable some message filtering, it must be aplied globaly for all requests if the filtering condition is fullfield the request is forward to some particular destination adress SIP pisze:
There are lots of ways you can set flags/tags in SER for various attributes. Perhaps if you explained a little bit more about what you were doing, we might be able to better point you toward the most efficient method.
N.
Tomasz Zieleniewski wrote:
Hi,
I would like to be able to perform some checks inside ser.cfg, globaly for all user. I need to have some kind of the global tag or attribute set to point a specific condition. How can I achive that in the nice way, the best would be if this parameter is somehow configurable thorugh serweb.
Thank You in advance Bests -Tomasz
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
in scripts, just use it :-) for example, in the to-be-released example config file, we check if source ip of a packet equals a predefined IP address of a gateway.
if (@src.ip == $gw_ip) {
for this, serweb has a defined attr_type, upon which an AVP with a certain value is defined.
-jiri
At 15:28 26/09/2007, Tomasz Zieleniewski wrote:
Hi,
I would like to be able to perform some checks inside ser.cfg, globaly for all user. I need to have some kind of the global tag or attribute set to point a specific condition. How can I achive that in the nice way, the best would be if this parameter is somehow configurable thorugh serweb.
Thank You in advance Bests -Tomasz
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
So I can define my own attributes through serweb, give them some value through global attributes in serweb and they will be visible in ser.cfg by such reference $some_attr_name?? Will they appear in global_attrs table in ser db??
Thanks tomasz
Jiri Kuthan pisze:
in scripts, just use it :-) for example, in the to-be-released example config file, we check if source ip of a packet equals a predefined IP address of a gateway.
if (@src.ip == $gw_ip) {
for this, serweb has a defined attr_type, upon which an AVP with a certain value is defined.
-jiri
At 15:28 26/09/2007, Tomasz Zieleniewski wrote:
Hi,
I would like to be able to perform some checks inside ser.cfg, globaly for all user. I need to have some kind of the global tag or attribute set to point a specific condition. How can I achive that in the nice way, the best would be if this parameter is somehow configurable thorugh serweb.
Thank You in advance Bests -Tomasz
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
At 23:05 26/09/2007, Tomasz Zieleniewski wrote:
So I can define my own attributes through serweb, give them some value through global attributes in serweb and they will be visible in ser.cfg by such reference $some_attr_name??
Yes, exactly! That's the magic intended to help integration of web applilcations and ser scripting.
Will they appear in global_attrs table in ser db??
yes.
-jiri
Thanks tomasz
Jiri Kuthan pisze:
in scripts, just use it :-) for example, in the to-be-released example config file, we check if source ip of a packet equals a predefined IP address of a gateway.
if (@src.ip == $gw_ip) {
for this, serweb has a defined attr_type, upon which an AVP with a certain value is defined.
-jiri
At 15:28 26/09/2007, Tomasz Zieleniewski wrote:
Hi,
I would like to be able to perform some checks inside ser.cfg, globaly for all user. I need to have some kind of the global tag or attribute set to point a specific condition. How can I achive that in the nice way, the best would be if this parameter is somehow configurable thorugh serweb.
Thank You in advance Bests -Tomasz
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
-- Jiri Kuthan http://iptel.org/~jiri/
Thank You Jiri
How can I assign a value of one attribute to another?? will something like this wok?? $some_attr1 = $some_attr2
bests tomasz Jiri Kuthan pisze:
At 23:05 26/09/2007, Tomasz Zieleniewski wrote:
So I can define my own attributes through serweb, give them some value through global attributes in serweb and they will be visible in ser.cfg by such reference $some_attr_name??
Yes, exactly! That's the magic intended to help integration of web applilcations and ser scripting.
Will they appear in global_attrs table in ser db??
yes.
-jiri
Thanks tomasz
Jiri Kuthan pisze:
in scripts, just use it :-) for example, in the to-be-released example config file, we check if source ip of a packet equals a predefined IP address of a gateway.
if (@src.ip == $gw_ip) {
for this, serweb has a defined attr_type, upon which an AVP with a certain value is defined.
-jiri
At 15:28 26/09/2007, Tomasz Zieleniewski wrote:
Hi,
I would like to be able to perform some checks inside ser.cfg, globaly for all user. I need to have some kind of the global tag or attribute set to point a specific condition. How can I achive that in the nice way, the best would be if this parameter is somehow configurable thorugh serweb.
Thank You in advance Bests -Tomasz
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
-- Jiri Kuthan http://iptel.org/~jiri/
Well embarassingly I have to admit I would have to try first too :-) (Jiri slightly confused by all the AVP tracks....)
-jiri
At 10:50 27/09/2007, Tomasz Zieleniewski wrote:
Thank You Jiri
How can I assign a value of one attribute to another?? will something like this wok?? $some_attr1 = $some_attr2
bests tomasz Jiri Kuthan pisze:
At 23:05 26/09/2007, Tomasz Zieleniewski wrote:
So I can define my own attributes through serweb, give them some value through global attributes in serweb and they will be visible in ser.cfg by such reference $some_attr_name??
Yes, exactly! That's the magic intended to help integration of web applilcations and ser scripting.
Will they appear in global_attrs table in ser db??
yes.
-jiri
Thanks tomasz
Jiri Kuthan pisze:
in scripts, just use it :-) for example, in the to-be-released example config file, we check if source ip of a packet equals a predefined IP address of a gateway.
if (@src.ip == $gw_ip) {
for this, serweb has a defined attr_type, upon which an AVP with a certain value is defined.
-jiri
At 15:28 26/09/2007, Tomasz Zieleniewski wrote:
Hi,
I would like to be able to perform some checks inside ser.cfg, globaly for all user. I need to have some kind of the global tag or attribute set to point a specific condition. How can I achive that in the nice way, the best would be if this parameter is somehow configurable thorugh serweb.
Thank You in advance Bests -Tomasz
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
-- Jiri Kuthan http://iptel.org/~jiri/
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
I did a live check and it works:) Jiri Kuthan pisze:
Well embarassingly I have to admit I would have to try first too :-) (Jiri slightly confused by all the AVP tracks....)
-jiri
At 10:50 27/09/2007, Tomasz Zieleniewski wrote:
Thank You Jiri
How can I assign a value of one attribute to another?? will something like this wok?? $some_attr1 = $some_attr2
bests tomasz Jiri Kuthan pisze:
At 23:05 26/09/2007, Tomasz Zieleniewski wrote:
So I can define my own attributes through serweb, give them some value through global attributes in serweb and they will be visible in ser.cfg by such reference $some_attr_name??
Yes, exactly! That's the magic intended to help integration of web applilcations and ser scripting.
Will they appear in global_attrs table in ser db??
yes.
-jiri
Thanks tomasz
Jiri Kuthan pisze:
in scripts, just use it :-) for example, in the to-be-released example config file, we check if source ip of a packet equals a predefined IP address of a gateway.
if (@src.ip == $gw_ip) {
for this, serweb has a defined attr_type, upon which an AVP with a certain value is defined.
-jiri
At 15:28 26/09/2007, Tomasz Zieleniewski wrote:
Hi,
I would like to be able to perform some checks inside ser.cfg, globaly for all user. I need to have some kind of the global tag or attribute set to point a specific condition. How can I achive that in the nice way, the best would be if this parameter is somehow configurable thorugh serweb.
Thank You in advance Bests -Tomasz
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
-- Jiri Kuthan http://iptel.org/~jiri/
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
well the trouble is, I fear, that assignment work, but the variable you assigned to is not of global scope and gets discarded soon..
i.e. something like this presumably won't work (if that's what you would like....)
$g.old_version=$g.current_version $g.current_version=1234
-jiri
At 13:44 27/09/2007, Tomasz Zieleniewski wrote:
I did a live check and it works:) Jiri Kuthan pisze:
Well embarassingly I have to admit I would have to try first too :-) (Jiri slightly confused by all the AVP tracks....)
-jiri
At 10:50 27/09/2007, Tomasz Zieleniewski wrote:
Thank You Jiri
How can I assign a value of one attribute to another?? will something like this wok?? $some_attr1 = $some_attr2
bests tomasz Jiri Kuthan pisze:
At 23:05 26/09/2007, Tomasz Zieleniewski wrote:
So I can define my own attributes through serweb, give them some value through global attributes in serweb and they will be visible in ser.cfg by such reference $some_attr_name??
Yes, exactly! That's the magic intended to help integration of web applilcations and ser scripting.
Will they appear in global_attrs table in ser db??
yes.
-jiri
Thanks tomasz
Jiri Kuthan pisze:
in scripts, just use it :-) for example, in the to-be-released example config file, we check if source ip of a packet equals a predefined IP address of a gateway.
if (@src.ip == $gw_ip) {
for this, serweb has a defined attr_type, upon which an AVP with a certain value is defined.
-jiri
At 15:28 26/09/2007, Tomasz Zieleniewski wrote:
> Hi, > > I would like to be able to perform some checks inside ser.cfg, globaly for all user. > I need to have some kind of the global tag or attribute set to point a specific condition. > How can I achive that in the nice way, the best would be if this parameter is somehow > configurable thorugh serweb. > > Thank You in advance > Bests > -Tomasz > > _______________________________________________ > Serusers mailing list > Serusers@lists.iptel.org > http://lists.iptel.org/mailman/listinfo/serusers > >
>
Jiri Kuthan http://iptel.org/~jiri/
-- Jiri Kuthan http://iptel.org/~jiri/
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
Yes, correct. You can assign value to from/to - user/uri attrs, which have lifetime limited to transaction.
You can't change neither domain nor global attrs from the script.
Michal
On Thu, 2007-09-27 at 14:25 +0200, Jiri Kuthan wrote:
well the trouble is, I fear, that assignment work, but the variable you assigned to is not of global scope and gets discarded soon..
i.e. something like this presumably won't work (if that's what you would like....)
$g.old_version=$g.current_version $g.current_version=1234
-jiri
At 13:44 27/09/2007, Tomasz Zieleniewski wrote:
I did a live check and it works:) Jiri Kuthan pisze:
Well embarassingly I have to admit I would have to try first too :-) (Jiri slightly confused by all the AVP tracks....)
-jiri
At 10:50 27/09/2007, Tomasz Zieleniewski wrote:
Thank You Jiri
How can I assign a value of one attribute to another?? will something like this wok?? $some_attr1 = $some_attr2
bests tomasz Jiri Kuthan pisze:
At 23:05 26/09/2007, Tomasz Zieleniewski wrote:
So I can define my own attributes through serweb, give them some value through global attributes in serweb and they will be visible in ser.cfg by such reference $some_attr_name??
Yes, exactly! That's the magic intended to help integration of web applilcations and ser scripting.
Will they appear in global_attrs table in ser db??
yes.
-jiri
Thanks tomasz
Jiri Kuthan pisze:
> in scripts, just use it :-) > for example, in the to-be-released example config file, we check if source ip of a packet equals a predefined IP address of a gateway. > > if (@src.ip == $gw_ip) { > > for this, serweb has a defined attr_type, upon which an AVP with > a certain value is defined. > > -jiri > > At 15:28 26/09/2007, Tomasz Zieleniewski wrote: > > > >> Hi, >> >> I would like to be able to perform some checks inside ser.cfg, globaly for all user. >> I need to have some kind of the global tag or attribute set to point a specific condition. >> How can I achive that in the nice way, the best would be if this parameter is somehow >> configurable thorugh serweb. >> >> Thank You in advance >> Bests >> -Tomasz >> >> _______________________________________________ >> Serusers mailing list >> Serusers@lists.iptel.org >> http://lists.iptel.org/mailman/listinfo/serusers >> >> >> > -- > Jiri Kuthan http://iptel.org/~jiri/ > > > >
>
Jiri Kuthan http://iptel.org/~jiri/
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
well -- an excellent candidate for 2.1 :-) incidentally I just ran into a case which would have been much easier solved with it.
-jiri
At 16:22 27/09/2007, Michal Matyska wrote:
Yes, correct. You can assign value to from/to - user/uri attrs, which have lifetime limited to transaction.
You can't change neither domain nor global attrs from the script.
Michal
On Thu, 2007-09-27 at 14:25 +0200, Jiri Kuthan wrote:
well the trouble is, I fear, that assignment work, but the variable you assigned to is not of global scope and gets discarded soon..
i.e. something like this presumably won't work (if that's what you would like....)
$g.old_version=$g.current_version $g.current_version=1234
-jiri
At 13:44 27/09/2007, Tomasz Zieleniewski wrote:
I did a live check and it works:) Jiri Kuthan pisze:
Well embarassingly I have to admit I would have to try first too :-) (Jiri slightly confused by all the AVP tracks....)
-jiri
At 10:50 27/09/2007, Tomasz Zieleniewski wrote:
Thank You Jiri
How can I assign a value of one attribute to another?? will something like this wok?? $some_attr1 = $some_attr2
bests tomasz Jiri Kuthan pisze:
At 23:05 26/09/2007, Tomasz Zieleniewski wrote:
> So I can define my own attributes through serweb, give them some value through global attributes in serweb and they > will be visible in ser.cfg by such reference $some_attr_name?? > > Yes, exactly! That's the magic intended to help integration of web applilcations and ser scripting.
> Will they appear in global_attrs table in ser db?? > > yes.
-jiri
> Thanks > tomasz > > Jiri Kuthan pisze: > > >> in scripts, just use it :-) >> for example, in the to-be-released example config file, we check if source ip of a packet equals a predefined IP address of a gateway. >> >> if (@src.ip == $gw_ip) { >> >> for this, serweb has a defined attr_type, upon which an AVP with >> a certain value is defined. >> >> -jiri >> >> At 15:28 26/09/2007, Tomasz Zieleniewski wrote: >> >> >> >>> Hi, >>> >>> I would like to be able to perform some checks inside ser.cfg, globaly for all user. >>> I need to have some kind of the global tag or attribute set to point a specific condition. >>> How can I achive that in the nice way, the best would be if this parameter is somehow >>> configurable thorugh serweb. >>> >>> Thank You in advance >>> Bests >>> -Tomasz >>> >>> _______________________________________________ >>> Serusers mailing list >>> Serusers@lists.iptel.org >>> http://lists.iptel.org/mailman/listinfo/serusers >>> >>> >>> >> -- >> Jiri Kuthan http://iptel.org/~jiri/ >> >> >> >> >> > -- > Jiri Kuthan http://iptel.org/~jiri/ > >
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/