Re: [SR-Users] Can't make tcp_conid_alive work with $var

2021-05-03 Thread David Villasmil
Thanks Ovidiu, Already tried that.. $var(conid) = $(hdr(Route){param.value,wsconnid}); $var(conid) = $(var(conid){s.striptail,1}{s.int}); Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Mon, May 3, 2021 at 11:06 PM Ovidiu Sas wrote: > Try to convert to

Re: [SR-Users] Can't make tcp_conid_alive work with $var

2021-05-03 Thread Ovidiu Sas
Try to convert to int using the {s.int} transformation. Regards, Ovidiu Sas On Mon, May 3, 2021 at 5:41 PM David Villasmil wrote: > > Hello guys, > > I'm trying to do the following: > > On INVITE, i add a param to RR "wsconnid" which is the connection id of the > WS socket. > Afterwards, i get

[SR-Users] Can't make tcp_conid_alive work with $var

2021-05-03 Thread David Villasmil
Hello guys, I'm trying to do the following: On INVITE, i add a param to RR "wsconnid" which is the connection id of the WS socket. Afterwards, i get an OPTIONS including said param. Next I want to retrieve the param and check if the connection is alive. NOTE: using simply "$(hdr(Route){param.va