Thank you so muck all . Its really helpful for me . I don't enev getting
how its running good in opensips-1.6 . But then I have changed my config .
*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
On Wed, Sep 14, 2016 at 8:16 PM, Bogdan-Andrei
Yes :)
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 14.09.2016 17:44, Benjamin Cropley wrote:
Sorry - just realised what you mean. You're saying do it like..
route{
# set vars back to null/init them..
$var(c)="";
$var(d)="";
Sorry - just realised what you mean. You're saying do it like..
route{
# set vars back to null/init them..
$var(c)="";
$var(d)="";
$var(e)="";
$var(f)="";
if (method=="INVITE") {
if(is_present_hf("X-Info")){
# assign values to vars...
I was just following the doc :)
"if you want to start using a script variable in a route, better initialize
it with same value *(or reset it)*, otherwise you may inherit a value from
a previous route that was executed by the same process."
On Wed, Sep 14, 2016 at 3:23 PM, Bogdan-Andrei Iancu
Hi,
Ideally you should init the vars before their usage, rather than trying
to reset afterwards. It is much safer.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 14.09.2016 16:59, Benjamin Cropley wrote:
the value of script variables
the value of script variables persists over any given OpenSIPS process.
Therefore, to ensure the value is null on every entry to the route (if a
subsequent packet is recieved on the same process) you must set the value
back to Null before the route is exited.
eg..
route{
if (method=="INVITE")