Main.News0041 History

Hide minor edits - Show changes to output

April 25, 2013, at 04:05 PM by razvancrainea -
Added line 1:
(:redirect About/News0041 quiet=1:)
September 29, 2009, at 02:15 PM by anca_vamanu -
Added line 11:
Ex: '''%color=green% $(avp(i:10)[1])=NULL'''.
September 03, 2009, at 01:39 PM by anca_vamanu -
Changed line 13 from:
* syntax: '''%color=green%avp_insert%%'''
to:
* syntax: '''%color=green%avp_insert%%'''.
Changed line 27 from:
** the '''%color=green%<reply>%%''' context can be used from failure route to access information from the reply
to:
** the '''%color=green%<reply>%%''' context can be used from failure route to access information from the reply.
September 03, 2009, at 01:38 PM by anca_vamanu -
September 03, 2009, at 01:37 PM by anca_vamanu -
Changed line 10 from:
*'''overwrite''' the value of a pseudovariable at a certain index; syntax: '''%color=#green%pvar[_index_]=_value_%%'''.
to:
*'''overwrite''' the value of a pseudovariable at a certain index; syntax: '''%color=green%pvar[_index_]=_value_%%'''.
September 03, 2009, at 01:36 PM by anca_vamanu -
Changed line 9 from:
*'''delete''' the pseudovariable at a certain index; syntax: '''%color=green%pvar[_index_]=NULL%'''.
to:
*'''delete''' the pseudovariable at a certain index; syntax: '''%color=green%pvar[_index_]=NULL'''%%.
September 03, 2009, at 01:35 PM by anca_vamanu -
Changed line 9 from:
*'''delete''' the pseudovariable at a certain index; syntax: '''%color=green%pvar[_index_]=NULL%%'''.
to:
*'''delete''' the pseudovariable at a certain index; syntax: '''%color=green%pvar[_index_]=NULL%'''.
September 03, 2009, at 01:35 PM by anca_vamanu -
Added lines 1-5:
!!Main -> [[Main.News | News]] -> Pseudovariable implementation extended
----

!!!! Pseudovariable implementation extended
September 03, 2009, at 01:33 PM by anca_vamanu -
Changed lines 20-21 from:
* example: - referencing '''%color=green%$(<request>ru)%%''' from a reply route will get the Request-URI from the request
- the '''%color=green%<reply>%%''' context can be used from failure route to access information from the reply
to:
* example:
** referencing '''%color=green%$(<request>ru)%%''' from a reply route will get the Request-URI from the request
** the '''%color=green%<reply>%%''' context can be used from failure route to access information from the reply
September 03, 2009, at 01:33 PM by anca_vamanu -
Changed lines 4-6 from:
*'''delete''' the pseudovariable at a certain index; syntax: %color=green%pvar[_index_]=NULL%%.
*'''overwrite''' the value of a pseudovariable at a certain index; syntax: %color=#green%pvar[_index_]=_value_%%.
to:
*'''delete''' the pseudovariable at a certain index; syntax: '''%color=green%pvar[_index_]=NULL%%'''.
*'''overwrite''' the value of a pseudovariable at a certain index; syntax: '''%color=#green%pvar[_index_]=_value_%%'''.
Changed line 8 from:
* syntax: %color=green%avp_insert%%
to:
* syntax: '''%color=green%avp_insert%%'''
Changed lines 11-13 from:
* '''count''' the number of values; syntax: %color=green%set_count(_pvar_name_)%%.
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs. syntax: %color=green%set_select_weight(_pvar_name_)%%; it returns the index of the selected value.
to:
* '''count''' the number of values; syntax: '''%color=green%set_count(_pvar_name_)%%'''.
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs. syntax: '''%color=green%set_select_weight(_pvar_name_)%%'''; it returns the index of the selected value.
Changed lines 15-17 from:
* syntax: %color=green%{nameaddr.param,param_name}%%
* example: %color=green%"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h%%
to:
* syntax: '''%color=green%{nameaddr.param,param_name}%%'''
* example: '''%color=green%"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h%%'''
Changed lines 20-21 from:
* example: - referencing %color=green%$(<request>ru)%% from a reply route will get the Request-URI from the request
- the %color=green%<reply>%% context can be used from failure route to access information from the reply
to:
* example: - referencing '''%color=green%$(<request>ru)%%''' from a reply route will get the Request-URI from the request
- the '''%color=green%<reply>%%''' context can be used from failure route to access information from the reply
September 03, 2009, at 01:31 PM by anca_vamanu -
Changed lines 4-6 from:
*'''delete''' the pseudovariable at a certain index; syntax: %color=#ff7f00%pvar[_index_]=NULL%%.
*'''overwrite''' the value of a pseudovariable at a certain index; syntax: %color=#ff7f00%pvar[_index_]=_value_%%.
to:
*'''delete''' the pseudovariable at a certain index; syntax: %color=green%pvar[_index_]=NULL%%.
*'''overwrite''' the value of a pseudovariable at a certain index; syntax: %color=#green%pvar[_index_]=_value_%%.
Changed line 8 from:
* syntax: %color=#ff7f00%avp_insert%%
to:
* syntax: %color=green%avp_insert%%
Changed lines 11-13 from:
* '''count''' the number of values; syntax: %color=#ff7f00%set_count(_pvar_name_)%%.
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs. syntax: %color=#ff7f00%set_select_weight(_pvar_name_)%%; it returns the index of the selected value.
to:
* '''count''' the number of values; syntax: %color=green%set_count(_pvar_name_)%%.
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs. syntax: %color=green%set_select_weight(_pvar_name_)%%; it returns the index of the selected value.
Changed lines 15-17 from:
* syntax: %color=#ff7f00%{nameaddr.param,param_name}%%
* example: %color=#ff7f00%"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h%%
to:
* syntax: %color=green%{nameaddr.param,param_name}%%
* example: %color=green%"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h%%
Changed lines 20-21 from:
* example: - referencing %color=#ff7f00%$(<request>ru)%% from a reply route will get the Request-URI from the request
- the %color=#ff7f00%<reply>%% context can be used from failure route to access information from the reply
to:
* example: - referencing %color=green%$(<request>ru)%% from a reply route will get the Request-URI from the request
- the %color=green%<reply>%% context can be used from failure route to access information from the reply
September 03, 2009, at 01:29 PM by anca_vamanu -
September 03, 2009, at 01:28 PM by anca_vamanu -
Changed lines 4-6 from:
*'''delete''' the pseudovariable at a certain index; syntax: %blue%pvar[_index_]=NULL%%.
*'''overwrite''' the value of a pseudovariable at a certain index; syntax: %blue%pvar[_index_]=_value_%%.
to:
*'''delete''' the pseudovariable at a certain index; syntax: %color=#ff7f00%pvar[_index_]=NULL%%.
*'''overwrite''' the value of a pseudovariable at a certain index; syntax: %color=#ff7f00%pvar[_index_]=_value_%%.
Changed line 8 from:
* syntax: %blue%avp_insert%%
to:
* syntax: %color=#ff7f00%avp_insert%%
Changed lines 11-13 from:
* '''count''' the number of values; syntax: %blue%set_count(_pvar_name_)%%.
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs. syntax: %blue%set_select_weight(_pvar_name_)%%; it returns the index of the selected value.
to:
* '''count''' the number of values; syntax: %color=#ff7f00%set_count(_pvar_name_)%%.
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs. syntax: %color=#ff7f00%set_select_weight(_pvar_name_)%%; it returns the index of the selected value.
Changed lines 15-17 from:
* syntax: %blue%{nameaddr.param,param_name}%%
* example: %blue%"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h%%
to:
* syntax: %color=#ff7f00%{nameaddr.param,param_name}%%
* example: %color=#ff7f00%"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h%%
Changed lines 20-21 from:
* example: - referencing %blue%$(<request>ru)%% from a reply route will get the Request-URI from the request
- the %blue%<reply>%% context can be used from failure route to access information from the reply
to:
* example: - referencing %color=#ff7f00%$(<request>ru)%% from a reply route will get the Request-URI from the request
- the %color=#ff7f00%<reply>%% context can be used from failure route to access information from the reply
September 03, 2009, at 01:16 PM by anca_vamanu -
Changed line 21 from:
- the %blue%<reply>%% context can be used from failure route to access information from the reply
to:
- the %blue%<reply>%% context can be used from failure route to access information from the reply
September 03, 2009, at 01:16 PM by anca_vamanu -
September 03, 2009, at 01:15 PM by anca_vamanu -
Changed lines 20-21 from:
* example: ** referencing %blue%$(<request>ru)%% from a reply route will get the Request-URI from the request
** the %blue%<reply>%% context can be used from failure route to access information from the reply
to:
* example: - referencing %blue%$(<request>ru)%% from a reply route will get the Request-URI from the request
- the %blue%<reply>%% context can be used from failure route to access information from the reply
September 03, 2009, at 01:14 PM by anca_vamanu -
Changed lines 12-13 from:
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs.
syntax: %blue%set_select_weight(_pvar_name_)%%; it returns the index of the selected value.
to:
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs. syntax: %blue%set_select_weight(_pvar_name_)%%; it returns the index of the selected value.
September 03, 2009, at 01:11 PM by anca_vamanu -
Changed lines 4-6 from:
*'''delete''' the pseudovariable at a certain index; syntax: ''pvar[_index_]=NULL''.
*'''overwrite''' the value of a pseudovariable at a certain index; syntax: ''pvar[_index_]=_value_''.
to:
*'''delete''' the pseudovariable at a certain index; syntax: %blue%pvar[_index_]=NULL%%.
*'''overwrite''' the value of a pseudovariable at a certain index; syntax: %blue%pvar[_index_]=_value_%%.
Changed line 8 from:
* syntax: ''avp_insert''
to:
* syntax: %blue%avp_insert%%
Changed line 11 from:
* '''count''' the number of values; syntax: ''set_count(_pvar_name_)''.
to:
* '''count''' the number of values; syntax: %blue%set_count(_pvar_name_)%%.
Changed lines 13-14 from:
syntax: ''set_select_weight(_pvar_name_)''; it returns the index of the selected value.
to:
syntax: %blue%set_select_weight(_pvar_name_)%%; it returns the index of the selected value.
Changed lines 16-18 from:
* syntax: ''{nameaddr.param,param_name}''
* example: ''"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h''
to:
* syntax: %blue%{nameaddr.param,param_name}%%
* example: %blue%"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h%%
Changed lines 21-22 from:
* example: ** referencing ''$(<request>ru)'' from a reply route will get the Request-URI from the request
** the ''<reply>'' context can be used from failure route to access information from the reply
to:
* example: ** referencing %blue%$(<request>ru)%% from a reply route will get the Request-URI from the request
** the %blue%<reply>%% context can be used from failure route to access information from the reply
September 03, 2009, at 01:05 PM by anca_vamanu -
Changed line 7 from:
2. Added one new function for avp: inserts a value to an avp set at a certain position
to:
2. Added one new function for avp: '''inserts''' a value to an avp set at a certain position
September 03, 2009, at 01:04 PM by anca_vamanu -
Changed line 3 from:
# Added 2 new operations on pseudovariables values from the script:
to:
1. Added 2 new operations on pseudovariables values from the script:
Changed line 7 from:
# Added one new function for avp: inserts a value to an avp set at a certain position\\
to:
2. Added one new function for avp: inserts a value to an avp set at a certain position
Changed lines 10-19 from:
# Added operations for set values of pseudovariables:\\
* '''count''' the number of values; syntax: ''set_count(_pvar_name_)''.\\
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs.\\
syntax: ''set_select_weight(_pvar_name_)''; it returns the index of the selected value.\\

# Added a new transformation: extract a parameter from a To like header\\
* syntax: ''{nameaddr.param,param_name}''\\
* example: ''"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h''\\

# Added '''context''' meaning to pseudovariables - a new token added in front of the pv type name that specifies the context where the pv should be taken from
to:
3. Added operations for set values of pseudovariables:
* '''count''' the number of values; syntax: ''set_count(_pvar_name_)''.
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs.
syntax: ''set_select_weight(_pvar_name_)''; it returns the index of the selected value.

4. Added a new transformation: extract a parameter from a To like header
* syntax: ''{nameaddr.param,param_name}''
* example: ''"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h''

5. Added '''context''' meaning to pseudovariables - a new token added in front of the pv type name that specifies the context where the pv should be taken from
September 03, 2009, at 01:01 PM by anca_vamanu -
Changed lines 3-4 from:
# Added 2 new operations on pseudovariables values from the script: \\
*'''delete''' the pseudovariable at a certain index; syntax: ''pvar[_index_]=NULL''. \\
to:
# Added 2 new operations on pseudovariables values from the script:
*'''delete''' the pseudovariable at a certain index; syntax: ''pvar[_index_]=NULL''.
Deleted line 17:
September 03, 2009, at 12:55 PM by anca_vamanu -
Changed lines 3-7 from:
# Added 2 new operations on pseudovariables values from the script:
* '''delete''' the pseudovariable at a certain index; syntax: ''pvar[_index_]=NULL''.
* '''overwrite''' the value of a pseudovariable at a certain index; syntax: ''pvar[_index_]=_value_''.

# Added one new function for avp: inserts a value to an avp set at a certain position
to:
# Added 2 new operations on pseudovariables values from the script: \\
*'''delete''' the pseudovariable at a certain index; syntax: ''pvar[_index_]=NULL''. \\
*'''overwrite''' the value of a pseudovariable at a certain index; syntax: ''pvar[_index_]=_value_''.

# Added one new function for avp: inserts a value to an avp set at a certain position\\
Changed lines 10-18 from:
# Added operations for set values of pseudovariables:
* '''count''' the number of values; syntax: ''set_count(_pvar_name_)''.
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs.
syntax: ''set_select_weight(_pvar_name_)''; it returns the index of the selected value.

# Added a new transformation: extract a parameter from a To like header
* syntax: ''{nameaddr.param,param_name}''
* example: ''"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h''
*
to:
# Added operations for set values of pseudovariables:\\
* '''count''' the number of values; syntax: ''set_count(_pvar_name_)''.\\
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs.\\
syntax: ''set_select_weight(_pvar_name_)''; it returns the index of the selected value.\\

# Added a new transformation: extract a parameter from a To like header\\
* syntax: ''{nameaddr.param,param_name}''\\
* example: ''"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h''\\
September 03, 2009, at 12:54 PM by anca_vamanu -
Added lines 1-23:
The pseudovariable implementation has been extended with new operations to give more power to the script writer:

# Added 2 new operations on pseudovariables values from the script:
* '''delete''' the pseudovariable at a certain index; syntax: ''pvar[_index_]=NULL''.
* '''overwrite''' the value of a pseudovariable at a certain index; syntax: ''pvar[_index_]=_value_''.

# Added one new function for avp: inserts a value to an avp set at a certain position
* syntax: ''avp_insert''

# Added operations for set values of pseudovariables:
* '''count''' the number of values; syntax: ''set_count(_pvar_name_)''.
* '''select''' an element from the set based on fitness. The selection algorithm is the genetic algorithm roulette-wheel selection. One usage example is selecting a route based on costs.
syntax: ''set_select_weight(_pvar_name_)''; it returns the index of the selected value.

# Added a new transformation: extract a parameter from a To like header
* syntax: ''{nameaddr.param,param_name}''
* example: ''"test" <sip:test@opensips.org>;tag=dat43h' {nameaddr.param,tag} = dat43h''
*

# Added '''context''' meaning to pseudovariables - a new token added in front of the pv type name that specifies the context where the pv should be taken from
The implementation is made general - with a mechanism of registering pv context functions, allowing for extensions and addition of custom contexts. For now there are 2 pv contexts: reply and request, registered by the tm module.
* example: ** referencing ''$(<request>ru)'' from a reply route will get the Request-URI from the request
** the ''<reply>'' context can be used from failure route to access information from the reply

Page last modified on April 25, 2013, at 04:05 PM