Re: [OpenSIPS-Users] variable interpolation in strings

2021-03-31 Thread Liviu Chircu

On 31.03.2021 19:34, Kingsley Tart wrote:

Why does this code:

$var(oldstr) ="sip:_44*121-1234@";
$var(uriOLD) = "<$var(oldstr)batty.com;user=phone>";
xlog("TEST=<$var(oldstr)batty.com;user=phone>");
xlog("uriOLD=$var(uriOLD)");

Result in these log entries?


Hi,

This issue has been in there since forever, catching many of us (myself 
included) off-guard at times.  For now, the solution is to just 
concatenate strings in variable assignment expressions using the "+" 
operator:


$var(uriOLD) = "<" + $var(oldstr) + "batty.com;user=phone>";

As for when or if this is going to be addressed... is subject to a longer 
discussion...

Best regards,

--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com
OpenSIPS eBootcamp 2021 | www.opensips.org/training


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] variable interpolation in strings

2021-03-31 Thread Kingsley Tart
Hi,

I'm using OpenSIPS 3.1.

Why does this code:

$var(oldstr) = "sip:_44*121-1234@";
$var(uriOLD) = "<$var(oldstr)batty.com;user=phone>";
xlog("TEST=<$var(oldstr)batty.com;user=phone>");
xlog("uriOLD=$var(uriOLD)");

Result in these log entries?

TEST=
uriOLD=<$var(oldstr)batty.com;user=phone>

ie, why do the two values differ?

Cheers,
Kingsley.


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Problem with nathelper and anycast+fullsharing cluster

2021-03-31 Thread Artiom Druz
Hello.
I have a problem with configuration of anycast + fullshare cluster with 3
nodes.

When I'm trying to use nathelper with pings to sip-users by OPTIONS - the
200 OK responses sent to random nodes of anycast cluster. If response came
to node different the "checker-node" - the "checker-node" thinks that
sip-user is unavailable and deletes his location.

I thought that I can fix this by using t_anycast_replicate(), but it is
impossible - opensips stops on start with error (btw there is no limits
about usage of this function in docs)

I'm using OpenSIPS 3.1.0 (git rev. d36fa2b15)

Regards,
Artiom Druz
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] The next OpenSIPS Bootcamp online training

2021-03-31 Thread Bogdan-Andrei Iancu




   17th May-28th May 2021,


   online, worldwide



*OpenSIPS Bootcamp*

Join the core developers and founder of the OpenSIPS project for an 
*OpenSIPS Bootcamp* 
 online session - 
an in-cloud training, a ten days, 4 hours per day (40 hours) intensive 
and practical training, covering installation, configuration and 
administration on OpenSIPS.


All the knowledge transferred to the students will be strongly backed up 
by practice sessions where you will get hands-on experience in handling 
OpenSIPS. The training is structured to be offer 50% / 50% between the 
theoretical and practical sessions.


Check Syllabus 



*Early Birds open*

The Early Bird 10% discount is available for registrations before /*16th 
of April 2021*/, so do not mis the opportunity. The number of seats is 
limited, so be sure and book a seat now. Keep in mind that a 10% group 
discount is also available - grab your work mate and start learning more 
OpenSIPS together .

.

Register Now 



*Certified training saves time and money*

OpenSIPS mistakes are easily avoided if you get proper training! 
Companies that use OpenSIPS waste time and money when they don't have a 
trained engineer on staff. Searching on Google, waiting on IRC, even the 
latency in mailing list replies takes it's toll over time. Take this 
rare opportunity to train your employees with the project members 
themselves.



Any questions? do not hesitate to contact us !


You received this email as part of your relationship with the OpenSIPS 
Project.
If you do not want to receive any more news, please email to unsubscribe 
.



--
  Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users