[OpenSIPS-Users] issue calling getHeader in lua module

2023-05-17 Thread Chris Warr via Users
Hi, in a lua module, I'm trying to call getHeader, but I get an error.

My code:
local via = getHeader("Via")

The error:
bad argument #1 to 'getHeader' (siplua.api expected, got string)

opensips 3.2.12
lua 5.1.5

Any ideas?

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


Re: [OpenSIPS-Users] Call fetch_dlg_value inside a timer route

2023-05-17 Thread Alberto
This reminded me of something else, maybe it can be used here too:
In a event route, before you can use dialog variables, you have to load the
dialog context by using func_load_dialog_ctx. Maybe it's the same with
timer routes.

https://opensips.org/docs/modules/3.2.x/dialog#func_load_dialog_ctx

On Wed, 17 May 2023, 21:07 Daniel Zanutti,  wrote:

> Hi folks
>
> Why is it not possible to call *fetch_dlg_value *inside a timer route? Is
> there any other alternative to it?
>
> I wanted to generate some statistics every X seconds.
>
> Thanks
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Call fetch_dlg_value inside a timer route

2023-05-17 Thread Daniel Zanutti
Hi folks

Why is it not possible to call *fetch_dlg_value *inside a timer route? Is
there any other alternative to it?

I wanted to generate some statistics every X seconds.

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


[OpenSIPS-Users] UAC_REPACE_TO

2023-05-17 Thread Вадим Д.
Hello!

Please help me. I am trying to use the uac_replace_to function. But it gives an 
error.

loadmodule "uac.so"
modparam("uac","restore_mode","auto")


$avp(repto)="sip:" + $(fU{s.substr,0,-3}) + $(fU{s.substr,-3,0}) + "@" + $td;
uac_replace_to( ,$avp(repto));



ERROR:uac:cfg_validate: uac_replace_*() was found, but module started without 
support for replacing, better restart
May 17 18:01:48 proxy-02 /usr/sbin/opensips[2223992]: 
ERROR:core:modules_validate_reload: module  did not validated the cfg file
May 17 18:01:48 proxy-02 /usr/sbin/opensips[2223992]: 
ERROR:core:reload_routing_script: routes validation by modules failed, abording 
reload. OpenSIPS restart is recomended to deploy the new script
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] X-header extraction

2023-05-17 Thread Daniel Zanutti
Just get the variable $hdr(X-notice)

On Wed, May 17, 2023 at 2:25 PM nutxase via Users 
wrote:

> Hi All,
>
> What is the best way to extract a custom X header from a sip message and
> log it as a variable
> example i receive X-notice:200 and i want to create a variable that with
> 200
>
> is that possible
>
> Sent with Proton Mail  secure email.
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] X-header extraction

2023-05-17 Thread nutxase via Users
Hi All,

What is the best way to extract a custom X header from a sip message and log it 
as a variable
example i receive X-notice:200 and i want to create a variable that with 200

is that possible

Sent with [Proton Mail](https://proton.me/) secure email.___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] [Release] OpenSIPS 3.4.0 major release, beta version

2023-05-17 Thread Bogdan-Andrei Iancu

Hello there !!

It is that time of the year to do our iteration - one more year, one 
more evolution step, one more OpenSIPS major release.


So, we are all happy to announce the beta release of *OpenSIPS 3.4.0 
major version* - and this 3.4 version is all about /consolidation, in 
terms of features, of code, of performance and of conformity/. A huge 
amount of work was invested in the testing area - we got SIPssert 
 
testing framework, we got code benchmarking 
 
. Also a lot of areas - B2B, logging, dialog - were visited for 
enhancements and improvements.


But here is the shortest possible description 
 of this release; 
and be aware that it's actually not so short as nothing is short about 3.4 !


Please keep in mind that 3.4.0 is still a beta release, targeting mid 
July to become fully stable. So, we still have some testing ahead of us :).


Many thanks to our awesome community for contributing with ideas, code, 
patches, tests and reports!


Looking for downloading it? See the tarball 
 or the GIT repo 
. Packages (rpms 
 and debs ) are 
also already available!


Enjoy it,

--
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2023, Houston, US
  https://www.opensips.org/events/Summit-2023Houston/

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