Hi Chris,

Only one msg per process at a time, but my advice, do not make plans based on (3), it may be a bad, risky practice.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
  https://www.siphub.com

On 23.02.2024 10:21, Chris Warr via Users wrote:
Hi, I see in the documentation for $var below. Regarding point 3.  Does a single opensips process handle a single message at a time?  Or are they multi-threaded processing many messages at one time?  My concern being if I'm using $var for message processing, will my messages corrupt each other's variables?

Naming: **$var(name)**
Hints:
1. 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. 2. script variables are faster than AVPs, as they directly reference a memory location.
3. the value of script variables persists over a OpenSIPS process.

Thanks,
Chris.


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to