[SR-Users] Re: Clarification of 'return false' behaviour

2023-05-03 Thread Patrick Wakano
e from execution of a > function, but evaluate to true or false and return explicitly own values. > Instead of > > return x() > > do: > > if(x()) { > > return 1; > > } else { > > return -1; > > } > > Cheers, > Daniel > On 01.05.23 01:10, Patric

[SR-Users] Re: Clarification of 'return false' behaviour

2023-04-30 Thread Patrick Wakano
return_mode, allowing to switch to a more > "standard" mode, similar to other scripting languages -- see: > > - https://www.kamailio.org/wikidocs/cookbooks/devel/core/#return_mode > > Cheers, > Daniel > > On 28.04.23 08:14, Patrick Wakano wrote: > > Hi list, > Hope yo

[SR-Users] Clarification of 'return false' behaviour

2023-04-28 Thread Patrick Wakano
me insight and clarify what is the expected behaviour of the *false* usage (and boolean in general if possible)? Thank you, Kind regards, Patrick Wakano __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an emai

[SR-Users] Centos kamailio.repo file is not updated

2022-05-23 Thread Patrick Wakano
Hello ist, I've noticed some of the latest releases do not have their repo mentioned in the https://rpm.kamailio.org/centos/kamailio.repo The repos are there, it is just the kamailio.repo file missing some of the newer versions like 5.4.7, 4.5.8, 5.5.4, 5.6.0... Cheers, Patrick

Re: [SR-Users] Problem with auth_ephemeral and parse_uri(): bad port in uri

2022-03-01 Thread Patrick Wakano
If auth_ephemeral gets deprecated, what would be a recommended approach to replace it? On Thu, 24 Feb 2022 at 21:46, Daniel-Constantin Mierla wrote: > Hello, > > it should be reviewed properly if does not work before removing. The > entire auth_ephemeral is deprecated from specs point of

Re: [SR-Users] Best practice for Kamailio "cluster" front for many TLS connections

2021-09-14 Thread Patrick Wakano
> > But, my main question is about the DMQ on two Kamailio nodes and what > happens in case one of them reloads. Are the dialogs and useloc synced > automatically on reload? Is there a template config to read about this? > Hi, unless there are new development on version 5.5 that I am not aware,

Re: [SR-Users] Manage multiple RTP streams with different TO-tags (forking)

2021-09-07 Thread Patrick Wakano
I did have a very similar problem and it got solved by using the via-branch=auto in the rtpengine offer Check the comments here: https://github.com/sipwise/rtpengine/commit/23977237c0753c9877b082d71d45348387ad1606 On Fri, 27 Aug 2021 at 21:40, Julien Klingenmeyer <

Re: [SR-Users] Kamailio in VMware with Fault Tolerance on

2020-11-03 Thread Patrick Wakano
he systems, or do you use two shared ips and each >> system is associated with one in normal operational mode? Or is anycast? >> >> Cheers, >> Daniel >> On 03.11.20 03:38, Patrick Wakano wrote: >> >> Thanks for the info Daniel! Much appreciated! >> Our pr

Re: [SR-Users] Kamailio in VMware with Fault Tolerance on

2020-11-02 Thread Patrick Wakano
Thanks for the info Daniel! Much appreciated! Our previous architecture was active-standby with VIP and keepalived, however we are moving towards an active-active approach. Cheers, Patrick Wakano On Tue, 3 Nov 2020 at 04:40, Daniel-Constantin Mierla wrote: > Hello, > > I try to stay

[SR-Users] Kamailio in VMware with Fault Tolerance on

2020-11-01 Thread Patrick Wakano
of the mentioned issue to happen. So I would just like to ask if anyone out there is using Kamilio in a VMware environment with Fault Tolerance on? How is the experience? Kind regards, Patrick Wakano ___ Kamailio (SER) - Users Mailing List sr-users

Re: [SR-Users] Kamailio unresponsive with Dialog+DMQ

2020-10-28 Thread Patrick Wakano
Hello, For reference, we updated Kamailio to version 5.4.2 and the problem still persists. So I opened the ticket ( https://github.com/kamailio/kamailio/issues/2535) to track the issue. Thank you, Patrick Wakano On Wed, 28 Oct 2020 at 10:38, Patrick Wakano wrote: > Hi Daniel! > Thanks fo

Re: [SR-Users] Kamailio unresponsive with Dialog+DMQ

2020-10-27 Thread Patrick Wakano
Hi Daniel! Thanks for your reply! I managed to get the kamctl trap output, it is attached here. This is a case where Kamailio is unresponsive with the UDP workers stuck in the mutex... I agree with your observations, it goes along with what we were thinking... Kind regards, Patrick Wakano On Tue

Re: [SR-Users] Kamailio unresponsive with Dialog+DMQ

2020-10-27 Thread Patrick Wakano
ion. Also, I didn't create a ticket because 5.2 is deprecated, but I found it worth reporting this potential problem in the list since it looks like the code for the DMQ is similar between 5.4 and 5.2. On Tue, 27 Oct 2020 at 09:22, Patrick Wakano wrote: > Hello list, > Hope all are doing

[SR-Users] Kamailio unresponsive with Dialog+DMQ

2020-10-26 Thread Patrick Wakano
d35 in child_init (rank=0) at dmq.c:300 Currently I will not be able to upgrade to latest 5.4 version to try to reproduce the error and since 5.2.8 has already reached end-of-life, maybe is there anything I can do on the configuration to avoid such condition? Any ideas are welcome! Kind regards, Patr

Re: [SR-Users] Handling of packet loss in the Kamailio to RTPEngine control protocol

2020-09-03 Thread Patrick Wakano
! Kind regards! On Thu, 3 Sep 2020 at 22:34, Richard Fuchs wrote: > On 02/09/2020 19.30, Patrick Wakano wrote: > > Hello list, > Hope you are all well. > > Under some load test simulations I've been facing cases where the command > Kamailio sends to RTPEngine times

[SR-Users] Handling of packet loss in the Kamailio to RTPEngine control protocol

2020-09-02 Thread Patrick Wakano
nsmissions in place to guarantee packet delivery? Any ideas to make this connection more reliable? Kind regards, Thank you, Patrick Wakano ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/l

[SR-Users] Kamailio CentOS 7 repos broken

2020-07-27 Thread Patrick Wakano
: [Errno 256] No more mirrors to try. Would someone be able to have a look at that? Thank you! Patrick Wakano ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] Drop local generated requests

2020-07-09 Thread Patrick Wakano
Never mind Daniel, just saw this in the 5.4 release notes ( https://www.kamailio.org/wiki/features/new-in-5.4.x): tm - add support for dropping messages in local-request event route Thank you, On Fri, 10 Jul 2020 at 15:14, Patrick Wakano wrote: > Hi Daniel, > Sorry comin

Re: [SR-Users] Drop local generated requests

2020-07-09 Thread Patrick Wakano
Wakano On Wed, 8 Jul 2020 at 18:14, Patrick Wakano wrote: > Hi Daniel, > I am still on 5.2. So maybe it's time to upgrade! > Thanks for the reply! > > Cheers! > Patrick > > On Wed, 8 Jul 2020, 17:37 Daniel-Constantin Mierla, > wrote: > >> Hello, >&g

Re: [SR-Users] Drop local generated requests

2020-07-08 Thread Patrick Wakano
use of drop in event route for local > requests. > > Cheers, > Daniel > On 08.07.20 09:33, Patrick Wakano wrote: > > Hello list, > Hope you all doing fine! > > I have a case where I want to drop a local generated request but it looks > like you can't drop the req

[SR-Users] Drop local generated requests

2020-07-08 Thread Patrick Wakano
, but I don't want to disable it or delete it from the DB Thank you, Kind regards, Patrick Wakano ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] rtpengine with mutiple IPs on the same network.

2020-07-07 Thread Patrick Wakano
Check your output to the command "ip route show table local". For a connected network, the kernel will select the source IP based on these rules. From memory I think, it is possible to change the "src" parameter to use a different IP, so you can play with that. Anyway, as a general rule, I don't

Re: [SR-Users] set_advertised_address not accepting vars

2020-03-22 Thread Patrick Wakano
There is an open ticket for that: https://github.com/kamailio/kamailio/issues/2137 On Mon, 23 Mar 2020 at 03:20, Sergiu Pojoga wrote: > Thanks Daniel, I'll give it a try using xavps instead. > > Regards, > --Sergiu > > On Sun, Mar 22, 2020 at 9:52 AM Daniel-Constantin Mierla < >

Re: [SR-Users] Ideas to reject a call due to RTPEngine failure when handling the 200Ok

2020-01-23 Thread Patrick Wakano
: > If the RTPEngine fails to answer the offer or answer command, the SDP > will be left unmodified. > > But of course, that will not result in a proper media path. > > On Fri, Jan 24, 2020 at 09:01:25AM +1100, Patrick Wakano wrote: > > > Hello list, > > Hope you all d

[SR-Users] Ideas to reject a call due to RTPEngine failure when handling the 200Ok

2020-01-23 Thread Patrick Wakano
this is a no no for a SIP proxy I could completely remove the SDP body and forward the 200Ok. This will force a failed SDP negotiation and leave it for the endpoints the task to terminate the call. Is that acceptable? Has anyone faced such situation? Any idea is much appreciated! Kind regards, Patrick

Re: [SR-Users] TLS testing (with sipp)

2019-12-18 Thread Patrick Wakano
You just need to inform the certificate and key. It is informed in the docs (http://sipp.sourceforge.net/doc/reference.html#TLS+mono+socket) Use sipp options: t -l1 -tls_cert user-cert.pem -tls_key user-privkey.pem On Thu, 19 Dec 2019 at 03:33, Sebastian Damm wrote: > Hi, > > I'm trying to

Re: [SR-Users] Possible conflict between t_newtran and setflag for ACC

2019-12-01 Thread Patrick Wakano
Much appreciated Henning! It will be really helpful! Thank you, Patrick Wakano On Sat, 30 Nov 2019 at 05:41, Henning Westerholt wrote: > Hello, > > > > a note has been added. > > > > Cheers, > > > > Henning > > > > -- > > Henning Wes

Re: [SR-Users] Possible conflict between t_newtran and setflag for ACC

2019-11-28 Thread Patrick Wakano
and the other in the TMX Kind regards, Patrick Wakano On Fri, 29 Nov 2019 at 01:08, Andrew Pogrebennyk wrote: > On 11/27/19 3:26 AM, Patrick Wakano wrote: > > I am using the ACC module and using the setflag() function as done in > > several examples. It works fine. However, I've adde

Re: [SR-Users] Possible conflict between t_newtran and setflag for ACC

2019-11-27 Thread Patrick Wakano
regards, Patrick Wakano On Thu, 28 Nov 2019 at 06:12, Henning Westerholt wrote: > Hello, > > > > usually it is not needed anymore to do this t_newtran early in the cfg. > Check this discussion from 2015 out: > > > > > http://sip-router.1086192.n5.nabble.com/Transact

[SR-Users] Possible conflict between t_newtran and setflag for ACC

2019-11-26 Thread Patrick Wakano
one is using t_newtran you must be careful and set all your transaction flags before? (ACC are the only transaction flags I am using so can't tell if other modules have the same problem) This is happening in Kamailio 5.2.2. Thank you! Kind regards, Patrick Wakano

Re: [SR-Users] How to retrieve local socket that will be used to send a message from the branch route

2019-11-21 Thread Patrick Wakano
need to check whether a call to rtpengine_offer will properly work from it. On Fri, 22 Nov 2019 at 10:01, Patrick Wakano wrote: > Yes David, we have all sorts of weird things (specially legacy > installations where creativity really shined). Also, in some private > network arch

Re: [SR-Users] How to retrieve local socket that will be used to send a message from the branch route

2019-11-21 Thread Patrick Wakano
ame)* - return attributes of the address from where the request is > going to be sent (local socket). > > On Thu, 21 Nov 2019 at 22:57, Patrick Wakano wrote: > >> Thanks for the replies and examples! Much appreciated! >> >> I was thinking of something similar to David sugge

Re: [SR-Users] How to retrieve local socket that will be used to send a message from the branch route

2019-11-21 Thread Patrick Wakano
automatically decide it. And it does pretty well! The only problem now is that I don't know what this decision was and I need it to implement the RTPEngine logic in my script based on the interface the INVITE will go out. Happy to hear more ideas! Thanks, Kind regards, Patrick Wakano On Thu, 21 Nov

[SR-Users] How to retrieve local socket that will be used to send a message from the branch route

2019-11-20 Thread Patrick Wakano
elp is much appreciated! Thank you! Kind regards, Patrick Wakano ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] usrloc extra attributes and db_mode=0

2019-05-29 Thread Patrick Wakano
the extra attributes... I will open a ticket because it does seems to be a bug with the dmq_usrloc module. Thank you for your time! Kind regards, Patrick Wakano On Wed, 29 May 2019 at 17:25, Daniel-Constantin Mierla wrote: > Hello, > > to clarify: without my last patch, was it working on

Re: [SR-Users] usrloc extra attributes and db_mode=0

2019-05-29 Thread Patrick Wakano
ods":4294967295,"reg_id":0,"server_id":0} May 29 16:06:18 kamailio-2 /usr/sbin/kamailio[23230]: DEBUG: dmq_usrloc [usrloc_sync.c:315]: usrloc_dmq_send(): sending dmq broadcast... I can open a ticket if the problem is confirmed! Thanks, Cheers, Patrick Wakano On Tue, 2

Re: [SR-Users] usrloc extra attributes and db_mode=0

2019-05-28 Thread Patrick Wakano
Wow, that was fast! I will try later on and let you know! Thanks Daniel for your time and effort! Really appreciate it! Cheers, Patrick Wakano On Tue, 28 May 2019 at 17:00, Daniel-Constantin Mierla wrote: > Hello, > > can you try with master branch or apply the patch from ne

Re: [SR-Users] usrloc extra attributes and db_mode=0

2019-05-28 Thread Patrick Wakano
compiled on 11:40:41 Mar 11 2019 with gcc 4.8.5 On Tue, 28 May 2019 at 16:26, Patrick Wakano wrote: > Hello list, > Hope you all doing well! > > I am trying to use the extra attributes (xavp_contact) of the usrloc > module to save some additional info about the user. > I am settin

[SR-Users] usrloc extra attributes and db_mode=0

2019-05-28 Thread Patrick Wakano
using the dmq_usrloc (that works like a charm!) and it conflicts with DB persistence of the location table (when the DMQ replication happens, all servers (sharing the same DB) try to save the same user info in the location table) Thank you, Kind regards, Patrick Wakano

Re: [SR-Users] Disable Dispatcher GW from DB

2019-03-26 Thread Patrick Wakano
Great Daniel! I will create a ticket for that then! Cheers, Patrick Wakano On Tue, 26 Mar. 2019, 00:30 Daniel-Constantin Mierla, wrote: > Hello, > > that could be a good option indeed, probably a function parameter to > control this kind of behaviour. > > Cheers, > Danie

Re: [SR-Users] Disable Dispatcher GW from DB

2019-03-24 Thread Patrick Wakano
. Would that be reasonable? Cheers, Patrick Wakano On Wed, 6 Mar 2019 at 10:01, Patrick Wakano wrote: > Thanks Dmitri! > It worked like a charm! > Cheers, > Patrick Wakano > > On Tue, 5 Mar. 2019, 18:42 Dmitri Savolainen, > wrote: > >> hi Patrick >> You

Re: [SR-Users] Disable Dispatcher GW from DB

2019-03-05 Thread Patrick Wakano
Thanks Dmitri! It worked like a charm! Cheers, Patrick Wakano On Tue, 5 Mar. 2019, 18:42 Dmitri Savolainen, wrote: > hi Patrick > You may set flag=4 in "dispatcher" table for appropriate GW > > On Tue, 5 Mar 2019 at 04:57, Patrick Wakano wrote: > >> Hello list,

[SR-Users] Disable Dispatcher GW from DB

2019-03-04 Thread Patrick Wakano
but from some change in the DB. Thanks, Kind regards, Patrick Wakano ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] TLS reload

2019-02-27 Thread Patrick Wakano
Thanks for the feedback guys! Much appreciated! Kamailio and Let's Encrypt with TLS reload, is the way to go then! Cheers! Patrick Wakano On Thu, 28 Feb 2019 at 08:58, Henning Westerholt wrote: > Am Mittwoch, 27. Februar 2019, 09:53:18 CET schrieb Joel Serrano: > > Been doing it like

Re: [SR-Users] TLS reload

2019-02-26 Thread Patrick Wakano
Thanks Sergiu for your reply! That's exactly what I am planning to do. But I just want to make sure the reload would not cause me some problem in production Cheers, Patrick Wakano On Wed, 27 Feb 2019 at 12:44, Sergiu Pojoga wrote: > Using TLS reload every few months when let's encrypt c

[SR-Users] TLS reload

2019-02-26 Thread Patrick Wakano
and in 2013 there was some discussion about it but wthout anything conclusive What I would like to know if this is still the case. Is anyone running the TLS reload for certificate renovation for example, or is it better to restart Kamailio? Thanks, Kind regards, Patrick Wakano

Re: [SR-Users] kamailio-sipcapture-daemon-config package not found for CentOS7

2019-02-20 Thread Patrick Wakano
Thanks Sergey! Issue created: https://github.com/kamailio/kamailio/issues/1861 Kind Regards, Patrick Wakano On Wed, 20 Feb 2019 at 20:33, Sergey Safarov wrote: > Please create issue on GitHub > Then I will care about it. > > ср, 20 февр. 2019 г., 9:26 Patrick Wakano : > >

[SR-Users] kamailio-sipcapture-daemon-config package not found for CentOS7

2019-02-19 Thread Patrick Wakano
be found... Is anyone aware of that? Thank you, Kind regards, Patrick Wakano # yum install kamailio-sipcapture-daemon-config Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.optus.net * epel: mirror.optus.net * extras: mirror.intergrid.com.au * updates

Re: [SR-Users] is_e164 logic to detect valid number

2018-12-11 Thread Patrick Wakano
Thanks for your reply Daniel! I agree with you, currently this function name is somewhat misleading... Cheers, Patrick Wakano On Mon, 10 Dec 2018 at 18:31, Daniel-Constantin Mierla wrote: > I think the function was mainly made to check if it is a telephone number > in international

Re: [SR-Users] is_e164 logic to detect valid number

2018-12-05 Thread Patrick Wakano
Thanks for the hint Joel! That's a really nice addition! One more good reason to upgrade to version 5.2!! Cheers, Patrick Wakano On Wed, 5 Dec 2018 at 14:30, Joel Serrano wrote: > You might also want to have a look at the “phonenum” module... > > https://www.kamailio.org/docs/modu

Re: [SR-Users] is_e164 logic to detect valid number

2018-12-04 Thread Patrick Wakano
mbers" section, so I guess the function should return false in this case. Also it seems the + sign is recommended but not mandatory for a E.164 number, which is quite confusing. Kind regards, Patrick Wakano On Tue, 4 Dec 2018 at 08:57, Henning Westerholt wrote: > Am Montag, 3. Deze

[SR-Users] is_e164 logic to detect valid number

2018-12-02 Thread Patrick Wakano
but after checking the source code, I saw it accepts anything starting with + and having between 2 and 16 numbers. So is it really valid to have a number with just 2 digits? What is the case? Thank you, Kind regards, Patrick Wakano ___ Kamailio (SER) - Users

Re: [SR-Users] DIALPLAN Module: doubts about regular expression usage

2018-10-09 Thread Patrick Wakano
! Patrick Wakano On Wed, 10 Oct 2018 at 02:21, Stefano Bertuola wrote: > Hi Experts. > > I did some tests with DIALPLAN module and I have some doubts about how to > define the regular expressions in the database. > > For example, using the start character '^' (beginning of the s

Re: [SR-Users] set_advertised_address with variable

2018-10-08 Thread Patrick Wakano
Hi Daniel! Thanks for the effort! Really appreciate it! I am not using the 5.2 version yet, so it I won't be able to test it right away... Best regards, Patrick Wakano On Fri, 5 Oct 2018 at 18:37, Daniel-Constantin Mierla wrote: > Hello, > > yesterday afternoon I pushed an al

Re: [SR-Users] set_advertised_address with variable

2018-10-02 Thread Patrick Wakano
ia and Record-Route headers as well as > matching myself, no need to do other stuff in route blocks. Doesn't work > for you? > > Cheers, > Daniel > > > On 01.10.18 22:16, Henning Westerholt wrote: > > Am Freitag, 28. September 2018, 07:16:18 CEST schrieb Patrick Wakano: &

Re: [SR-Users] set_advertised_address with variable

2018-09-27 Thread Patrick Wakano
on? Kind regards, Patrick Wakano On Thu, 27 Sep 2018 at 18:17, Patrick Wakano wrote: > Hello list, > Hope you all doing fine! > > I am using version 5.0.7 and I was trying to use the > set_advertised_address with an avp variable but it does not replace with > the avp value

[SR-Users] set_advertised_address with variable

2018-09-27 Thread Patrick Wakano
er reading the value from DB, so I can't use the advertised_address or listen options Any idea on how I could achieve that? Thank you, Kind regards, Patrick Wakano ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.ka

Re: [SR-Users] Kamailio 5.0.X RPM packages/repo broken

2018-07-26 Thread Patrick Wakano
Hi Sergey! You mean a github ticket? Patrick Wakano On 26 July 2018 at 17:31, Sergey Safarov wrote: > I can confirm issue. > Could you create ticket for this issue. > I look this > > чт, 26 июл. 2018 г. в 2:12, Patrick Wakano : > >> Hello Sergey! >> >> I

Re: [SR-Users] Kamailio 5.0.X RPM packages/repo broken

2018-07-25 Thread Patrick Wakano
could have happened since July 10th when the repo was working fine... Thanks for you time! Kind regards, Patrick Wakano On 25 July 2018 at 23:38, Sergey Safarov wrote: > I "trigger rebuild" and get this results > https://build.opensuse.org/package/live_build_log/home: > k

Re: [SR-Users] Kamailio 5.0.X RPM packages/repo broken

2018-07-24 Thread Patrick Wakano
... Kind regards, Patrick Wakano On 25 July 2018 at 01:23, Sergey Safarov wrote: > Hello Patrick > Rebuild is trigered. > > > вт, 24 июл. 2018 г. в 7:56, Patrick Wakano : > >> Hello Sergey! >> Hope you are doing fine! >> >> I am having this same issue aga

Re: [SR-Users] Kamailio 5.0.X RPM packages/repo broken

2018-07-23 Thread Patrick Wakano
Hello Sergey! Hope you are doing fine! I am having this same issue again today Would you be able to check that? Thanks very much! Kind regards, Patrick Wakano # yum install kamailio Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base

Re: [SR-Users] Kamailio 5.0.X RPM packages/repo broken

2018-07-09 Thread Patrick Wakano
Thank you Sergey!! Installation was successful now!! Cheers! Patrick Wakano On 10 July 2018 at 14:24, Sergey Safarov wrote: > I was trigered rpm rebuild. > Please check after 40 min. > > вт, 10 июля 2018 г., 6:57 Patrick Wakano : > >> Hello list, >> Hope you all

[SR-Users] Kamailio 5.0.X RPM packages/repo broken

2018-07-09 Thread Patrick Wakano
looks like the repository is broken somehow Is anyone aware of such issue? I haven't tried the 5.1.X repo because my script was not migrated to 5.1.X yet Thanks, Kind regards, Patrick Wakano ___ Kamailio (SER) - Users Mailing List sr-users

[SR-Users] add_uri_param with variables

2018-06-14 Thread Patrick Wakano
such limitation? Can it be changed? It is possible to do the same thing via the subst_uri function, but it would be so much more elegant to use the function... Thank you, Kind regards, Patrick Wakano ___ Kamailio (SER) - Users Mailing List sr-users

[SR-Users] lcr_id vs lcr_count

2017-11-28 Thread Patrick Wakano
_id > lcr_count_param)) { LM_ERR("invalid lcr_id parameter value %d\n", lcr_id); return -1; } I ended up using another table to make the conversion of ids, but this is horrible Any other reason to force the lcr_id to be less than the lcr_count? Best Regards

[SR-Users] LCR Ping GWs

2017-09-24 Thread Patrick Wakano
Hello list, I was trying to activate continuous SIP ping from the LCR module, which apparently was available in the past, but currently it is not possible anymore. As I could check It can only ping inactive GWs. Question is, why such change was promoted? We have to send a call to the GW to detect

Re: [SR-Users] [sr-dev] SIP ping, sockets and multi homed

2017-09-21 Thread Patrick Wakano
inux to do it, or it could have some routing directives which could be consulted before selecting a socket (just ideas, not sure how feasible they are...) I am considering using the Linux routing change option, but has anyone faced such situation before? Regards, Patrick Wakano On 24 August 201

Re: [SR-Users] SQL for ordered LCR rules

2017-09-05 Thread Patrick Wakano
Nice! but I think I can invert the test and do it like this: 'FULL_NUMBER' LIKE CONCAT(lr.prefix,'%') Probably not as fast but should do the job! On 6 September 2017 at 12:25, Alex Balashov <abalas...@evaristesys.com> wrote: > Indeed. > > On September 5, 2017 10:24:07 PM EDT,

Re: [SR-Users] SQL for ordered LCR rules

2017-09-05 Thread Patrick Wakano
Thanks for the attention Alex, so this "prefix" add on for Postgresql is supposed to replace my lr.prefix SIMILAR TO '(|PREFIX%)' ? So then I could actually use a complete number against the LCR prefixes, instead of having to use a prefix in the test? Cheers, Patrick Wakano On 6 Sept

Re: [SR-Users] SQL for ordered LCR rules

2017-09-05 Thread Patrick Wakano
tes what LCR module does internally, I am just trying to verify if it has some flaw, which could mislead me in the rules management. Cheers, Patrick Wakano On 6 September 2017 at 00:32, Dmitry Sinina <dmitry.sin...@onat.edu.ua> wrote: > https://yeti-switch.org/demo.html > > > On 9

[SR-Users] SQL for ordered LCR rules

2017-09-04 Thread Patrick Wakano
BY lr.lcr_id, LENGTH(lr.prefix) DESC, lrt.priority; It is missing the weights calculation, but it is rather complex and I am not using it anyway Other than that does anyone did something similar to check if my query really matches what LCR engine does? Thanks, Patrick Wakano

Re: [SR-Users] LCR dont_strip_or_prefix_flag

2017-08-28 Thread Patrick Wakano
Good news! Thanks Anthony! Regards Patrick On 25 Aug. 2017 22:34, "Anthony Joseph Messina" <amess...@messinet.com> wrote: On Friday, August 25, 2017 2:33:30 AM CDT Juha Heinanen wrote: > Patrick Wakano writes: > > It doesn't matter if I set or reset the flag

[SR-Users] LCR dont_strip_or_prefix_flag

2017-08-23 Thread Patrick Wakano
en the whole purpose of the flag is lostAnyone aware of this behaviour? Regards, Patrick Wakano ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users