Re: [OpenSIPS-Users] Question about run exec from route script periodically.

2017-11-24 Thread Dmitry
org> Subject: Re: [OpenSIPS-Users] Question about run exec from route script periodically. Hi Dmitry, So, basically you want to do a kind of user pinging, but not via SIP (as nathelper is doing), but via PN, using your external script ? Regards, Bogdan-Andrei Iancu OpenSIPS F

[OpenSIPS-Users] Question about run exec from route script periodically.

2017-11-23 Thread Dmitry
per directives: sipping_bflag remove_on_timeout_bflag natping_interval ping_threshold max_pings_lost BR, Dmitry ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] Question about run exec from route script periodically.

2017-11-23 Thread Dmitry
Hello Bogdan-Andrei, Thank you for reply. It seems like that’s what I need. BR, Dmitry From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Thursday, November 23, 2017 5:11 PM To: OpenSIPS users mailling list <users@lists.opensips.org>; Dmitry <neta...@gmail.com>

[OpenSIPS-Users] Handling 488 on a leg B

2018-01-30 Thread Dmitry
Hello all, Could you say how can I re-send INVITE with changed SDP to B-leg after receive 488 from it? Call flow: -> A-leg INVITE <- A-leg 100 -> B-leg INVITE <- B-leg 100 <- B-leg 488 – I catch it, and want to send INVITE again with properly SDP -> B-leg ACK <-A-leg 488 -> B-leg ACK

Re: [OpenSIPS-Users] Handling 488 on a leg B

2018-02-02 Thread Dmitry
Hi Bogdan, Thank you indeed for the help! After moving the first changing body to branch (and second too), it works perfect. From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Friday, February 2, 2018 5:18 PM To: Dmitry <neta...@gmail.com>; 'OpenSIPS users mailling list'

Re: [OpenSIPS-Users] Handling 488 on a leg B

2018-02-02 Thread Dmitry
uot;rtp_body=$avp(rtp_body)\n"); # xlog for $avp(rtp_body) shows unchanged content (with RTP/SAVP) … t_relay(); } … } From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Thursday, February 1, 2018 7:51 PM To: Dmitry <neta...@gmail.com>; 'OpenSIPS users mailling

Re: [OpenSIPS-Users] Handling 488 on a leg B

2018-02-01 Thread Dmitry
list <users@lists.opensips.org>; Dmitry <neta...@gmail.com> Subject: Re: [OpenSIPS-Users] Handling 488 on a leg B Hello Dmitry, What you want to do is called (in SIP) serial forking. Use failure_route{} to catch the 488 and to add a create a new branch (with modified body)

Re: [OpenSIPS-Users] Segfault in 2.4.5

2019-03-13 Thread Dmitry
, March 13, 2019 10:33 AM To: OpenSIPS users mailling list ; Dmitry Subject: Re: [OpenSIPS-Users] Segfault in 2.4.5 Hi Dimitry, What is the point of this email ? I see the ticket is opened some time ago and there is someone already working on it . Regards, Bogdan-Andrei Iancu OpenSIPS

[OpenSIPS-Users] Calculate the nearest destination based on GeoIP

2019-03-20 Thread Dmitry
Hi there, Maybe you know the best way to calculate the nearest routing point based on geoip data? an example: I have 3 rtpengine relays on a different country, and I can set its geo-coordinate in DB and set id for each of them via rtpengine_use_set() function in the routing script. Also, I have

Re: [OpenSIPS-Users] Calculate the nearest destination based on GeoIP

2019-03-20 Thread Dmitry
(lat_lon)[0]) - $(avp(g:coo){s.select,0,,})) ^ 2) + (($(avp(lat_lon)[1]) - $(avp(g:coo){s.select,1,,})) ^ 2))", "$var(len)"); # cut float pont, use decimal $var(len) = $(var(len){s.select,0,.}{s.int}); # calculate minimal destination if ( $var(len) < $var

[OpenSIPS-Users] Segfault in 2.4.5

2019-03-12 Thread Dmitry
Hi There, I get segfault in opensips 2.4.5 every ~5 minutes. Could you help to fix it? Debug in attachment. I'm ready to give additional information if needed. The issue on github https://github.com/OpenSIPS/opensips/issues/1624 Thanks debug.log.gz Description: Binary data

[OpenSIPS-Users] How to printout certain variables?

2010-10-19 Thread Dmitry Kravchenko
Hi! Is there a way to printout (with xlog) certain variables, like myself, uri, msg:len and so on? I have tried the following ways, but failed: #xlog(L_NOTICE, DIMS: uri ( + $uri + ) == myself ( + $myself + block...); #xlog(L_NOTICE, DIMS: uri ( + uri + ) == myself ( + myself

[OpenSIPS-Users] How to fix Content-Length header?

2010-10-19 Thread Dmitry Kravchenko
I would like to try to use SIP ALG option turned on on routers. But I found, that these gateways sometimes forget to change Content-Length header while changing a content (for examle, changing an IP address). So, is it possible to fix content length with opensips script? Thanks.

Re: [OpenSIPS-Users] How to fix Content-Length header?

2010-10-19 Thread Dmitry Kravchenko
, Dmitry. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] How to printout certain variables?

2010-10-19 Thread Dmitry Kravchenko
. When they work they work, but when they do not work, you have no way to know why. On 10/19/2010 03:45 PM, Dmitry Kravchenko wrote: Hi! Is there a way to printout (with xlog) certain variables, like myself, uri, msg:len and so on? I have tried the following ways, but failed:          #xlog

Re: [OpenSIPS-Users] How to fix Content-Length header?

2010-10-19 Thread Dmitry Kravchenko
2010/10/19 Anca Vamanu a...@opensips.org: On 10/19/2010 04:14 PM, Dmitry Kravchenko wrote: 2010/10/19 Anca Vamanua...@opensips.org: Yes, use remove_hf and append_hf from textops module - http://www.opensips.org/html/docs/modules/1.6.x/textops.html, and to get the length use the string

Re: [OpenSIPS-Users] How to fix Content-Length header?

2010-10-19 Thread Dmitry Kravchenko
2010/10/19 Anca Vamanu a...@opensips.org: On 10/19/2010 04:14 PM, Dmitry Kravchenko wrote: Thank you! And how to get access to content string? With $rb pseudo variable (http://www.opensips.org/Resources/DocsCoreVar#toc58). I found that $(rb{s.len}) mistakes by 2. Is it always so? Thanks

Re: [OpenSIPS-Users] How to fix Content-Length header?

2010-10-19 Thread Dmitry Kravchenko
/html/docs/modules/1.6.x/textops.html, and to get the length use the string transformation s.len -http://www.opensips.org/Resources/DocsCoreTran#toc2. Regards, -- Anca Vamanu www.voice-system.ro PS: Don't post the same question in more places. On 10/19/2010 03:48 PM, Dmitry Kravchenko

Re: [OpenSIPS-Users] How to fix Content-Length header?

2010-10-19 Thread Dmitry Kravchenko
But doesn't all modern routers are equipped with SIP ALG and condsequently it is unportable to require it being OFF? 2010/10/19 Raúl Alexis Betancor Santana r...@dimension-virtual.com: On Martes 19 Octubre 2010 17:47:43 Dmitry Kravchenko escribió: I wrote in the following way: I advise you

Re: [OpenSIPS-Users] How to fix Content-Length header?

2010-10-19 Thread Dmitry Kravchenko
I have D-Link DIR-615. It's not in the list but SIP ALG is on by default. My friend has the Linksys, not in the list. 2010/10/19 Raúl Alexis Betancor Santana r...@dimension-virtual.com: On Martes 19 Octubre 2010 18:24:24 Dmitry Kravchenko escribió: But doesn't all modern routers are equipped

[OpenSIPS-Users] Increased macro MAX_BRANCHES and behavior of tm module

2023-09-07 Thread Dmitry Ponomaryov
Have a nice day, everyone Question is to increase the value of MAX_BRANCHES[1] to 32, for example, which will go beyond the boundaries of the source code in tm.c, namely condition[2], which clearly shows that only 30 is possible, how critical it is to change the condition in tm.c, in order to get

Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-03 Thread Dmitry Ponomaryov
Hello everyone, I would like to show my part of the code when playing early media after 200OK, when creating dialogs, I substituted $DLG_did in the contact of my dialog, and received the same $DLG_did for my dialog in ACK, but OpenSIPS also continued to send 200OK , despite having already

Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-03 Thread Dmitry Ponomaryov
), after_media); } route[after_media] { if (t_was_cancelled()) { rtpengine_delete(); exit; } else { rtpengine_delete(); sl_send_reply(486,"Busy here"); exit; } } and pined previous posts below :) ------ Message: 2

[OpenSIPS-Users] Correct syntax with statement if

2023-10-31 Thread Dmitry Ponomaryov
Have a nice day, everyone, there are cases in routing when in if there is only one command, for example: ### example 1 if ( has_body("application/sdp") ) { rtpengine_offer(); } In this case, how different will this expression be from: ### example 2 if ( has_body("application/sdp") )

[OpenSIPS-Users] fix scrubbed text

2023-10-31 Thread Dmitry Ponomaryov
### example 1 if ( has_body("application/sdp") ) { rtpengine_offer(); } ### example 2 if ( has_body("application/sdp") ) rtpengine_offer(); ___ Users mailing list Users@lists.opensips.org

Re: [OpenSIPS-Users] Correct syntax with statement if

2023-10-31 Thread Dmitry Ponomaryov
Hello Liviu I created a separate topic where I indicated the condensed syntax of my lines, but a separate question was created there... I’m still learning how to respond to a message in the mail list, sorry for this :) Initially I thought that the brackets, on the contrary, indicate that the

[OpenSIPS-Users] mid_register and its possible bad actions with De-REGISTER

2023-12-27 Thread Dmitry Ponomaryov
Hello, opensips community, let's imagine default situations where we have dynamic users who can move and change FREQUENTLY! ip-address on phone, and re-send the registration, and at the same time we have in the configs: mid_registrar_save("location","c1f"); in this case, we receive with any

Re: [OpenSIPS-Users] [mid_register and its possible bad actions with De-REGISTER]

2023-12-27 Thread Dmitry Ponomaryov
Hello, well, okay if we are limited to one contact, the port for example of a contact changes conditionally on average every ~300sec, because of this, with a new registration we force it with the "f" flag, and thereby making De-REGISTER towards the main register, then there is each new

Re: [OpenSIPS-Users] [mid_register and its possible bad actions with De-REGISTER]

2023-12-27 Thread Dmitry Ponomaryov
and we also have an unpleasant situation with the interfaces from which this same De-REGISTER comes, in the latest versions 3.2, we get from the interface that was first written in the socket, and not from which the registration on the main registrar. was this planned? maybe it’s better to

Re: [OpenSIPS-Users] mid_register and its possible bad actions with De-REGISTER

2024-01-08 Thread Dmitry Ponomaryov
27.12.2023 11:38, Dmitry Ponomaryov wrote: All this to say, it might make sense to add the ability to disable this De-REGISTER, because with a new registration, we will still send it a registration with an updated contact before the main registrar times out, and there will be no problems, that is

Re: [OpenSIPS-Users] mid_register and its possible bad actions with De-REGISTER

2024-01-19 Thread Dmitry Ponomaryov
, or make changes in the issue at once in the code, which will be checked like code review from project developers : ) Cheers. P.S thanks Johan for a short but revealing answer about PN. > or you don't support push notifications. On 1/9/2024 10:15 AM, Dmitry Ponomaryov wrote: Hello Liviu, In