http://www.openser.org/dokuwiki/doku.php/pseudovariables:1.3.x#script_variables <snip> The value of script variables persists over the processing of SIP messages, being specific per each OpenSER process. </snip>
Regards, Ovidiu Sas On Jan 9, 2008 6:12 PM, Iñaki Baz Castillo <[EMAIL PROTECTED]> wrote: > Hi, maybe someone could confirm this: > > At the begining of my script I set a variable: > > $var(gateway) = "123.123.123.123"; > > Later, I run CPL for calls to internal users and there could be forwardings > and so. I set CPL "recurse" parameter so convert 302 from UAS into a new > branch into CPL. > > At the end of CPL I run "route[20]" in which I use the variable $var(gateway), > but sometimes it appears empty. I think this could occur because CPL can > involve various OpenSer process. I think that when CPL receives a 302, maybe > sometimes it's a new OpenSer process and since it's a reply the variable at > the begining of my script is not read, so it appears empty. > Am I right? > > A solution is to use AVP instead od variables since AVP's remains along al > lthe transaction. Am I right? > > Thanks for any confirmation. Best regards. > > > -- > Iñaki Baz Castillo > > _______________________________________________ > 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