[SR-Users] KEMI KSR.async Python3

2022-02-10 Thread Ahmed Moubayed
Hi, I'm trying to use the async module from a python3 Kemi script but it conflicts with the keyword async. Any suggestions on how it can be used? Is there an alternative to KSR.async.route()? Thanks, Ahmed __ Kamailio - Users Mailing List

Re: [SR-Users] Publish XML and xpath

2022-02-10 Thread Daniel-Constantin Mierla
For sake of correctness, as I tried to figure out again searching the web what the actual issue, the conflict seems to be with XPATH specifications that don't define default xmlns scope, they have NULL scope for no-prefix tags which is not the same as the default xmlns. Not 100% sure, as I didn't

Re: [SR-Users] Fwd: CDR preserve original call direction

2022-02-10 Thread Ahmed Fouad
Thanks but this is already configured and still the same problem. On Thu, Feb 10, 2022 at 12:47 PM Bastian Triller wrote: > Check if rr module is loaded before acc and rr's parameter append_from_tag > is set to 1. > > >

Re: [SR-Users] Fwd: CDR preserve original call direction

2022-02-10 Thread Bastian Triller
Check if rr module is loaded before acc and rr's parameter append_from_tag is set to 1. http://www.kamailio.net/docs/modules/5.3.x/modules/rr.html#rr.p.append_fromtag_id http://www.kamailio.net/docs/modules/5.3.x/modules/acc.html#idm211 On Thu, Feb 10, 2022, 17:29 Ahmed Fouad wrote: > Thanks

Re: [SR-Users] REGISTER with http_async_client ?

2022-02-10 Thread Federico Cabiddu
Hi Cyril, happy to hear that you solved the problem. About switching back to request_route type is not possible, it has to do with the kamailio mechanism to suspend transactions. The callback route is always a failure route. The solution for rtpengine is either to call rtpengine_offer explicitly

Re: [SR-Users] Fwd: CDR preserve original call direction

2022-02-10 Thread Ahmed Fouad
Thanks for the reply but like I mentioned I tried to enable/disable direction parameter but didn't help. From: sr-users on behalf of Ovidiu Sas Sent: Thursday, February 10, 2022 12:44:39 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Fwd:

Re: [SR-Users] Kamailio doc request

2022-02-10 Thread Alex Balashov
No problem, you got it. ;-) > On Feb 10, 2022, at 9:16 AM, Mustafa Rahman wrote: > > __ > Kamailio - Users Mailing List - Non Commercial Discussions > * sr-users@lists.kamailio.org > Important: keep the mailing list in the recipients, do

[SR-Users] Kamailio doc request

2022-02-10 Thread Mustafa Rahman
__ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: *

Re: [SR-Users] Publish XML and xpath

2022-02-10 Thread Igor Olhovskiy
Daniel, Many thanks! Your "replace" solution looks more elegant than just remove the whole string. Regards, Igor Le 10.02.2022 à 16:52, Daniel-Constantin Mierla a écrit : Hello, actually the problem is the mess SIMPLE RFC authors made with XML namespaces, by not setting and not using a

Re: [SR-Users] Publish XML and xpath

2022-02-10 Thread Igor Olhovskiy
Hello, Seems, there is a need to specify xmlns forcefully As it's working when I do $var(body) = $(rb{s.rm,xmlns="urn:ietf:params:xml:ns:dialog-info"}); So, I do need or to specify namespace or to remove this line from XML. But if someone can comment on this (cause XML is a world on it's

Re: [SR-Users] Publish XML and xpath

2022-02-10 Thread Daniel-Constantin Mierla
Hello, actually the problem is the mess SIMPLE RFC authors made with XML namespaces, by not setting and not using a prefix for them, otherwise the #012 is end-of-line printed by syslog as octal character. The solutions: 1) replace "xmlns=" with something else like "xyzwq=": $xml(body=>doc) =

Re: [SR-Users] Publish XML and xpath

2022-02-10 Thread Igor Olhovskiy
Hello Just to add, when I'm trying to dump $rb to logs, I'm getting this line #012#012  #012    terminated#012  #012 So, I expect problem is in this #012 + extra spaces. Is there a way to clean it up in an easy way? Regards, Igor Le 10.02.2022 à 16:01, Igor Olhovskiy a écrit : Hello,

Re: [SR-Users] SEMS license with kamailio and rtpengine

2022-02-10 Thread Daniel-Constantin Mierla
I think it is not easy to impose any further restriction not to distribute the sources, but one can try ... in some (many) countries licenses and patents are not recognized or not enforced. Cheers, Daniel On 10.02.22 11:47, Alex Balashov wrote: > Come to think of it, I imagine the license has

Re: [SR-Users] SEMS license with kamailio and rtpengine

2022-02-10 Thread Daniel-Constantin Mierla
Hello, On 10.02.22 10:51, Henning Westerholt wrote: > > Hello, > > Just to add - your general statement “From this perspective, none of > the config files (no matter they are native scripting, lua, python, > javascript, etc...) are forced to be GPL, it is the decision of the > config author

[SR-Users] Publish XML and xpath

2022-02-10 Thread Igor Olhovskiy
Hello, I'm trying to get state of endpoint from PUBLISH message in a most simple way using xmlops module Trying to make this $xml(body=>doc) = $rb; log("L_ERR", "$rU is now in state $xml(body=>xpath:/dialog-info/dialog/state)\n"); XML in PUBLISH itself       confirmed   Actual text

Re: [SR-Users] SEMS license with kamailio and rtpengine

2022-02-10 Thread Alex Balashov
Come to think of it, I imagine the license has language saying that it cannot be superseded in part or in whole by any contradictory agreement. — Sent from mobile, with due apologies for brevity and errors. > On Feb 10, 2022, at 5:42 AM, Alex Balashov wrote: > > Is it legally possible for a

Re: [SR-Users] Fwd: CDR preserve original call direction

2022-02-10 Thread Ovidiu Sas
Check the documentation and adjust your config accordingly: http://www.kamailio.net/docs/modules/5.3.x/modules/acc.html#acc.p.detect_direction modparam("acc", "detect_direction", 1) In your config is set to 0. Regards, Ovidiu Sas On Wed, Feb 9, 2022 at 08:01 Ahmed Fouad wrote: > > Hi, > >

Re: [SR-Users] SEMS license with kamailio and rtpengine

2022-02-10 Thread Alex Balashov
Is it legally possible for a customer to separately contract away a right that the license otherwise affords them, such as the GPL right to demand source code and then turn around and distribute that source code? I have to wonder if it’s possible in the US. It seems like it shouldn’t be, but

Re: [SR-Users] SEMS license with kamailio and rtpengine

2022-02-10 Thread Henning Westerholt
Hello, Just to add - your general statement “From this perspective, none of the config files (no matter they are native scripting, lua, python, javascript, etc...) are forced to be GPL, it is the decision of the config author what's its license.” This seems to be pretty clear to me as well,

Re: [SR-Users] SEMS license with kamailio and rtpengine

2022-02-10 Thread Henning Westerholt
Hello, for me it’s seems to be not that clear, its open to interpretation. But this is more a theoretical discussion, it should be clarified from a lawyer. To quote from the GPL FAQ: https://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html#IfInterpreterIsGPL “Another similar and very common

Re: [SR-Users] SEMS license with kamailio and rtpengine

2022-02-10 Thread Olle E. Johansson
> On 10 Feb 2022, at 09:01, Daniel-Constantin Mierla wrote: > > Hello, > > On 10.02.22 08:36, Henning Westerholt wrote: >> Hello, >> >> just to add to the discussion: >> >> Please have a look to the GPLv2 FAQ, many topics you’ve raised are discussed >> there

Re: [SR-Users] SEMS license with kamailio and rtpengine

2022-02-10 Thread Daniel-Constantin Mierla
Hello, On 10.02.22 08:36, Henning Westerholt wrote: > > Hello, > >   > > just to add to the discussion: > >   > > * Please have a look to the GPLv2 FAQ, many topics you’ve raised are > discussed there > https://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html > * You should really