Re: [OpenSIPS-Users] Fwd: Opensips 3.0.2 - Cannot install with db_mysql module enabled

2020-04-09 Thread Gordon Yeong
file.conf? > > Best regards, > > Răzvan Crainea > OpenSIPS Core Developer > http://www.opensips-solutions.com > > On 3/19/20 3:18 AM, Gordon Yeong wrote: > > > > hi, guys, > > > > I am trying to test out the blacklist functionality on m

[OpenSIPS-Users] Fwd: Opensips 3.0.2 - Cannot install with db_mysql module enabled

2020-04-03 Thread Gordon Yeong
hi, guys, I am trying to test out the blacklist functionality on my sandboxes (Centos 7). Replication steps: === I have the sources for opensips 3.0.2 and in "make menuconfig", I have: 1) enabled "db_mysql" by selecting it 2) specified my install path as /opt/bin (don't ask

[OpenSIPS-Users] How to get the name-addr within a From header?

2020-03-31 Thread Gordon Yeong
Hi guys, I looked up RFC 3261 . and the from-spec (page 229) says: from-spec = ( name-addr / addr-spec ) *( SEMI from-param ) I have the following FROM tag in a SIP header. "Mr Invite-R-Us ;tag=784" In my opensips.cfg, I got the

Re: [OpenSIPS-Users] How to get the name-addr within a From header?

2020-03-31 Thread Gordon Yeong
> > Hello, Grant and Răzvan, Good morning. It worked like a charm. Thank you :) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] Testing ENUM queries

2020-04-23 Thread Gordon Yeong
The reason why i am doing this is because I would like to because to query my ENUM server using a standalone script which reuses the OpenSips Enum module. I read a little more and figured it's prolly not worth it as the ENUM module exists in Opensips so that we can just do ENUM queries within

[OpenSIPS-Users] Testing ENUM queries

2020-04-23 Thread Gordon Yeong
.x/enum.html#overview) independently. 1. Is this possible? 2. If it is not in perl , then is it possible to write a C program that uses the Enum module? If so, what libraries should I include? Thank you Gordon Yeong -perl, rails, elixir, python, devops - db engines

[OpenSIPS-Users] Does anyone have sample return output using the Enum module's enum_query?

2020-04-30 Thread Gordon Yeong
with the 'Regexp:' element in it? Thank you Regards, Gordon Yeong ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

[OpenSIPS-Users] HOW to simulate ENUM server queries

2020-04-27 Thread Gordon Yeong
the functions, enum_query, i_enum_query return data look like. Regards, Gordon Yeong ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] Can't seem to get python module to work

2020-05-12 Thread Gordon Yeong
Anyone know what's going on? Gordon On Tue, 12 May 2020 at 17:10, Gordon Yeong wrote: > hi guys > I managed to get opensips to work with the perl module. > I now need to port what I have to python 3. > > > I can't seem to start opensips 3.0 because I have the following erro

Re: [OpenSIPS-Users] Can't seem to get python module to work

2020-05-13 Thread Gordon Yeong
> > Checked and it was loaded. Looked again and seemed that I needed to run loadmodule "python.so" before running the modparam. Silly mistake. Hope someone benefits from this :) thank you gordon > > ___ Users mailing list Users@lists.opensips.org

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

2020-05-16 Thread Gordon Yeong
reply 2) the type error seems to be coming from re.py . I will trace more later but we need to make my opensips use python 3. So, how do I specify python3 to be used in my opensips? Regards, Gordon Yeong On Sat, 16 May 2020 at 21:09, Gordon Yeong wrote: > Tomi > > I will try it o

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

2020-05-17 Thread Gordon Yeong
hello Tomi, yeah , when i test, I 1) put #!/usr/bin/python3 in the script, or 2) run "python3" for the interactive session yes, just read the https://github.com/OpenSIPS/opensips/blob/master/modules/python/Makefile and yeah, it's an ugly hack to have the system run python3 when python is

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

2020-05-15 Thread Gordon Yeong
; are trying to do a print on a Class definition. > > > > Ben Newlin > > > > *From: *Users on behalf of Gordon > Yeong > *Reply-To: *OpenSIPS users mailling list > *Date: *Friday, May 15, 2020 at 1:54 AM > *To: *OpenSIPS users mailling list > *Subject:

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

2020-05-16 Thread Gordon Yeong
', while "\n"is a one-character string containing a newline. > > > Tomi > > On 16. May 2020, at 1.47, Gordon Yeong wrote: > >  > It's passed the init. If i did a print (LM_ERR) In the first line of > init(), it doesn't show that print. > > If i did

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

2020-05-16 Thread Gordon Yeong
ers from your version… Can these differences cause the failure? > > The __init__ located inside class > > And the mod_init located last in the script (does the order count for > anything in python?) > > Also called handler function always returns 1 not the init > > Tomi &g

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

2020-05-14 Thread Gordon Yeong
hi guys, Using opensips 3.0 and python3 here. I have a script which parses a number in a string (r'.*rn=\+6114(\d{2})'). Script is as follows: -- start --- #!/usr/bin/python3 import re; import pprint; class test: def get_rn(): rnRegExp = rnRegExp =

[OpenSIPS-Users] Can't seem to get python module to work

2020-05-12 Thread Gordon Yeong
script_name", "/tmp/test.py")" to load my test python functions as per the same documentation in section 1.3.1. Yet, it errors out, "CRITICAL:core:yyerror: parse error in /opt/opensips/etc/opensips/opensips-Enum-Python.cfg:137:20-21: Parameter not found in module - can

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

2020-05-25 Thread Gordon Yeong
hen python is referred to. I had considered removing python 2.7 to which, after searching, it was not a good idea for it would break the system. I will keep researching :) thank you again, Tomi :) Regards, Gordon Yeong On Sun, 17 May 2020 at 16:38, Tomi Hakkarainen wrote: > Hi, > > just an