Re: [OpenSIPS-Users] python module - python_exec() behaviour in opensips

2020-05-16 Thread Gordon Yeong
very interesting. I looked at the code in handler.py and adjusted my python class. I ran opensips (master branch) and found 2 issues: 1) python3 is not being run. How do i specify to opensips to use python 3? May 17 15:45:46 [21373] Just done the enum query...The ru value is (

[OpenSIPS-Users] OpenSIPS cdr variables

2020-05-16 Thread Asteriskman
Hello everyone, I basically know Asterisk and SIP but new to OpenSIPS. I am working on a call flow where I need to receive a call from the provider and send it to an endpoint or a trunk and store Call start timestamp(INVITE), connect timestamp(200 OK) and end timestamp(BYE) in MongoDB. Now my

[OpenSIPS-Users] rtpengine documentation

2020-05-16 Thread Robert Dyck
I am wanting to convert my config/script to use rtpengine instead of rtpproxy. I think it would better deal with webrtc. After looking at some examples I found, I see a couple of parameters that are not mentioned in the opensips documentation. First there is the offer/answer option

[OpenSIPS-Users] Adjust T1 and T2 timers per transaction

2020-05-16 Thread Grant Bagdasarian
Hello, I couldn’t find anything related to adjusting the T1 and T2 timers on a per transaction basis, similar to the fr and fr_inv timeouts. Is there a way in OpenSips to adjust these values at runtime? Regards, Grant ___ Users mailing list

Re: [OpenSIPS-Users] python module - python_exec() behaviour in opensips

2020-05-16 Thread Gordon Yeong
Tomi I will try it on monday. Let u know. Thank you, stay safw and have a good weekend :) On Sat, 16 May 2020, 8:08 pm Tomi Hakkarainen, wrote: > Hi, > My second guess :) > > Check this > https://github.com/OpenSIPS/opensips/blob/master/modules/python/handler.py > > Differs from your version…

Re: [OpenSIPS-Users] python module - python_exec() behaviour in opensips

2020-05-16 Thread Tomi Hakkarainen
Hi, My second guess :) Check this https://github.com/OpenSIPS/opensips/blob/master/modules/python/handler.py Differs from your version… Can these differences cause the failure? The __init__ located inside class And

Re: [OpenSIPS-Users] python module - python_exec() behaviour in opensips

2020-05-16 Thread Gordon Yeong
Yeah I looked at that and ran my code on the python3 interpreter - it worked. Then i put it into a class - it worked. And then only did I put it (the class) to use in opensips.. Had there been an issue, python3 would have kicked and scream which it did not. No issue with the regexp. Thank you

Re: [OpenSIPS-Users] python module - python_exec() behaviour in opensips

2020-05-16 Thread Tomi Hakkarainen
Hi, not sure has this nothing to do with the error but game to my eye trying to figure out what this bunch of code is really doing... from python re docs: Regular expressions use the backslash character ('\') to indicate special forms or to allow special characters to be used without invoking