[OpenSIPS-Users] Pass-through proxy

2020-12-07 Thread Mihai
Hello,

Can someone help with simple pass-through proxy, i just want to send
everything (invites, registratoins) to my asterisk in docker.

Please help ...
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] OpenSIPs Console for OpenSIPs 3.1

2020-12-07 Thread Social Boh via Users

Hello,

id there any date to release de OpenSIPs Console for OpenSIPs 3.1 version?

Regards

--
---
I'm SoCIaL, MayBe


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] how to use cdr?

2020-12-07 Thread fun_y...@foxmail.com
Is caused by the following settings,and the log to not appear in time

loadmodule "dialog.so"
modparam("dialog", "db_mode", 2)

Is this a bug? I encountered this problem in version 2.4.7,db_mode only used 
for database control,
or there is a problem with the document description?



fun_y...@foxmail.com
 
From: Social Boh
Date: 2020-12-07 22:10
To: OpenSIPS users mailling list; fun_y...@foxmail.com
Subject: Re: [OpenSIPS-Users] how to use cdr?
Hello,
do you see cdr log on your syslog file? En CentOS is /var/log/messages
If the answer is yes try this:
create the cdr file: 
touch /var/log/opensips/opensips.cdr
restart rsyslog:
systemctl restart rsyslog
restart opensips:
systemctl restart opensips
If OpenSIPs run with opensips user:
chown -Rf opensips:opensips /var/log/opensips
Regards
---
I'm SoCIaL, MayBe
El 07/12/2020 a las 04:04, fun_y...@foxmail.com escribió:
HI all !
i use opensips cdr as follows, but it have nothing in 
/var/log/opensips/opensips.cdr
i can't find any errors in log
Can  provides some possibilities for solving problems

loadmodule "acc.so"
/* what special events should be accounted ? */
modparam("acc", "early_media", 0)
modparam("acc", "report_cancels", 0)
/* by default we do not adjust the direct of the sequential requests.
   if you enable this parameter, be sure to enable "append_fromtag"
   in "rr" module */
modparam("acc", "detect_direction", 0)


modparam("acc", "log_level", 2)
modparam("acc", "log_facility", "LOG_LOCAL1")


if (is_method("INVITE")) {
do_accounting("log", "cdr|missed|failed");
}

if (is_method("BYE")) {
do_accounting("log","failed");
}


failure_route[missed_call] {
do_accounting("log","missed");
rtpengine_delete();
if (t_was_cancelled()) {
exit;
}


IN rsyslog.conf

local1.*   /var/log/opensips/opensips.cdr



fun_y...@foxmail.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] how to use cdr?

2020-12-07 Thread Social Boh via Users

Hello,

do you see cdr log on your syslog file? En CentOS is /var/log/messages

If the answer is yes try this:

create the cdr file:

touch /var/log/opensips/opensips.cdr

restart rsyslog:

systemctl restart rsyslog

restart opensips:

systemctl restart opensips

If OpenSIPs run with opensips user:

chown -Rf opensips:opensips /var/log/opensips

Regards

---
I'm SoCIaL, MayBe

El 07/12/2020 a las 04:04, fun_y...@foxmail.com escribió:

HI all !
i use opensips cdr as follows, but it have nothing in 
/var/log/opensips/opensips.cdr

i can't find any errors in log
Can  provides some possibilities for solving problems

loadmodule "acc.so"
/* what special events should be accounted ? */
modparam("acc", "early_media", 0)
modparam("acc", "report_cancels", 0)
/* by default we do not adjust the direct of the sequential requests.
   if you enable this parameter, be sure to enable "append_fromtag"
   in "rr" module */
modparam("acc", "detect_direction", 0)


modparam("acc", "log_level", 2)
modparam("acc", "log_facility", "LOG_LOCAL1")


if (is_method("INVITE")) {
    do_accounting("log", "cdr|missed|failed");
}

if (is_method("BYE")) {
    do_accounting("log","failed");
}


failure_route[missed_call] {
        do_accounting("log","missed");
        rtpengine_delete();
        if (t_was_cancelled()) {
                exit;
        }


IN rsyslog.conf

local1.*   /var/log/opensips/opensips.cdr


fun_y...@foxmail.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] how to use cdr?

2020-12-07 Thread fun_y...@foxmail.com
HI all !
i use opensips cdr as follows, but it have nothing in 
/var/log/opensips/opensips.cdr
i can't find any errors in log
Can  provides some possibilities for solving problems

loadmodule "acc.so"
/* what special events should be accounted ? */
modparam("acc", "early_media", 0)
modparam("acc", "report_cancels", 0)
/* by default we do not adjust the direct of the sequential requests.
   if you enable this parameter, be sure to enable "append_fromtag"
   in "rr" module */
modparam("acc", "detect_direction", 0)


modparam("acc", "log_level", 2)
modparam("acc", "log_facility", "LOG_LOCAL1")


if (is_method("INVITE")) {
do_accounting("log", "cdr|missed|failed");
}

if (is_method("BYE")) {
do_accounting("log","failed");
}


failure_route[missed_call] {
do_accounting("log","missed");
rtpengine_delete();
if (t_was_cancelled()) {
exit;
}


IN rsyslog.conf

local1.*   /var/log/opensips/opensips.cdr



fun_y...@foxmail.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] too many parameters for command

2020-12-07 Thread Johan De Clercq
yeah indeed, or send them over in a ; separated list and then split them in
the python function.

wkr,

Op ma 7 dec. 2020 om 07:54 schreef Tomi Hakkarainen :

> Hi,
>
> I would pass params in a python dictionary if its alllowed.
>
> Tomi
>
> On 6. Dec 2020, at 14.35, Elaine Huang  wrote:
>
> 
> Hi Vlad,
>
> Thanks.
>
> What would you do if you need to pass multiple parameters to a function?
> I'm thinking of compile the params into one string (separated by comma
> maybe) and parse them in the python function, but that's hacky.
>
> On Sat., 5 Dec. 2020, 03:29 Vlad Patrascu,  wrote:
>
>> Hi Elaine,
>>
>> Unfortunately the documentation is actually misleading and the function
>> accepts only one extra argument for passing to python.
>>
>> Regards,
>>
>> --
>> Vlad Patrascu
>> OpenSIPS Developerhttp://www.opensips-solutions.com
>>
>> On 04.12.2020 11:30, Elaine Huang wrote:
>>
>> Hi,
>>
>> I wrote a python function that takes 3 parameters (excluding msg):
>>
>>
>> class MyClass:
>>   …
>>   my_f(self, msg, param1, param2, param3):
>> …
>>   …
>>
>>
>> While the python module readme suggests it can accept extra args (more
>> than 1), opensips fail to start with error: too many parameters for command
>> 
>>
>> my config code:
>> python_exec("my_f", param1, param2, param3)
>>
>>
>> It can start if I change it to:
>> python_exec("my_f", param1)
>>
>>
>> Any idea why?
>>
>>
>> OpenSIPS version: 3.1
>>
>>
>>
>> Kind Regards,
>> Elaine
>>
>>
>> ___
>> Users mailing 
>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users