Re: [OpenSIPS-Users] do_routing() Question

2021-03-10 Thread Marcin Groszek
is what I want but I would like to have the attributes loaded at that point. Many thanks Mark. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Best Regards: Marcin Groszek Business Voip Reso

Re: [OpenSIPS-Users] acc db cdr in 3.1

2021-02-23 Thread Marcin Groszek
After many attempts I solved the issue by removing : t_newtran(); from if (has_totag()) { and accounting cdr started working. -- Best Regards: Marcin Groszek Business Voip Resource. http://www.voipplus.net ___ Users mailing list Users

Re: [OpenSIPS-Users] OpenSIPS 3.1 DB logging INVITEs but not BYEs

2021-04-08 Thread Marcin Groszek
INVITE" record at BYE time instead of either writing a BYE record, or allowing me to update it with a few custom fields, one of which would be t_end or something. Cheers, Kingsley. On Thu, 2021-04-08 at 09:17 -0500, Marcin Groszek wrote: Because you are using dialog that invite entry in a

Re: [OpenSIPS-Users] OpenSIPS 3.1 DB logging INVITEs but not BYEs

2021-04-08 Thread Marcin Groszek
3f3b3-3ac0-45de-8cb7-f208b2d420d0 | 183 | +-----+----+--+--+ Am I missing something obvious? Cheers, Kingsley. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Best Regards: Marcin Groszek Business Voip Resource. http://www.voipplus.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] OpenSIPS 3.1 DB logging INVITEs but not BYEs

2021-04-08 Thread Marcin Groszek
Because you are using dialog that invite entry in acc table is written at the time of bye. I prefer a single entry in acc table for each call, not 2 Best regards: Marcin Groszek > On Apr 8, 2021, at 8:15 AM, Kingsley Tart wrote: > > Thanks, though that didn't seem to have

[OpenSIPS-Users] acc db cdr in 3.1

2021-02-19 Thread Marcin Groszek
After converting cfg  from 2.2 to 3.1 acc is not working as expected. if (has_totag()) { if (loose_route()) { if (is_method("BYE")) { #this is not getting logged at all . route[DROUTING] { do_accounting("db","cdr"); . local_route { if (is_method("BYE") && $DLG_dir=="UPSTREAM") {

[OpenSIPS-Users] query cashed dr_rules table

2021-10-01 Thread Marcin Groszek
Is there a way to query cashed dr_rules table? I know it can be done by avp_db_query("SELECT count(prefix),attrs from dr_rules where but this will be resource hungry. -- Best Regards: ___ Users mailing list Users@lists.opensips.org

[OpenSIPS-Users] drouting WARNING

2021-11-02 Thread Marcin Groszek
I see a WARNING at opensips start/restart : verion 3.1.5 WARNING:drouting:parse_destination_list: destination ID was not found I check my database and : dr_rules has a prefix and gwlist shows cr2 ;  not #cr2 in dr_carriers I see carrierid cr2 and corresponding gwlist has a gw3 in

Re: [OpenSIPS-Users] restart_persistency Permission denied

2021-11-04 Thread Marcin Groszek
6:55 PM, Marcin Groszek wrote: Centos 7 opensips verion 3.1.5 I attempted to setup drouting restart_persistency but as soon as I add these 2 lines: restart_persistency_size = 512 modparam("drouting", "enable_restart_persistency", yes) opensips does not st

[OpenSIPS-Users] restart_persistency Permission denied

2021-11-04 Thread Marcin Groszek
Centos 7 opensips verion 3.1.5 I attempted to setup drouting restart_persistency but as soon as I add these 2 lines: restart_persistency_size = 512 modparam("drouting", "enable_restart_persistency", yes) opensips does not start. The logs shows: ERROR:core:rpm_init_mem: could not

Re: [OpenSIPS-Users] restart_persistency Permission denied

2021-11-05 Thread Marcin Groszek
, Liviu Chircu wrote: On 05.11.2021 02:14, Marcin Groszek wrote: after I changed the ownership of the .restart_persistency.cache to opensips I was able to start daemon as opensips user. Is this proper way of doing this or just a poor workaround? Hi Marcin, This is an interesting report and although

[OpenSIPS-Users] stir/shaken signature

2022-01-05 Thread Marcin Groszek
Version 3.1.5 When signature is generated it appears to be missing ;alg=ES256 after the info part containing url of a certificate, ppt="shaken" is present  on the end as it should. Decoded header does contain "alg":"ES256" -- Best Regards: Marcin Grosze

[OpenSIPS-Users] suggested sql database structure

2022-03-06 Thread Marcin Groszek
be appreciated. -- Best Regards: Marcin Groszek Business Voip Resource. http://www.voipplus.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] acc not writing INVITE to db

2022-02-16 Thread Marcin Groszek
, Marcin Groszek wrote: I have been using  v3.1.5 and acc module is not behaving as expected: do_accounting("db","cdr|failed"); it writes to db on cancel when it hits failure_route[missed_call] But not on BYE. Is there a document how to troubleshoot acc module behavior?  Can a pr

Re: [OpenSIPS-Users] acc not writing INVITE to db

2022-02-18 Thread Marcin Groszek
OpenSIPS Core Developer http://www.opensips-solutions.com On 2/16/22 16:53, Marcin Groszek wrote: I have narrow down to this route that prevents acc from writing Invite to db, When I bypass it Invite gets written to db on BYE:   DBG:avpops:ops_dbquery_avps: query [SELECT balance,credit FROM

Re: [OpenSIPS-Users] acc not writing INVITE to db

2022-02-18 Thread Marcin Groszek
g for the call? Best regards, Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com On 2/16/22 16:53, Marcin Groszek wrote: I have narrow down to this route that prevents acc from writing Invite to db, When I bypass it Invite gets written to db on BYE:   DBG:avpops:ops_dbque

Re: [OpenSIPS-Users] acc not writing INVITE to db

2022-02-28 Thread Marcin Groszek
/local/bin/opensips-cli /usr/bin/timeout -k 5 5 ${OPENSIPSCTL} -x mi flat_rotate 2>&1 >> /usr/src/cdr.log any idea what can be happening? On Sun, Feb 27, 2022 at 4:44 PM Marcin Groszek <mailto:mar...@voipplus.net>> wrote: You may disregard. I have located the issue.

[OpenSIPS-Users] acc not writing INVITE to db

2022-02-15 Thread Marcin Groszek
g. mariadb has been also upgraded at the same time , but i see all other modules using same database with no issue. -- Best Regards: Marcin Groszek Business Voip Resource. http://www.voipplus.net ___ Users mailing list Users@lis

Re: [OpenSIPS-Users] acc not writing INVITE to db

2022-02-27 Thread Marcin Groszek
You may disregard. I have located the issue. -- Best Regards: Marcin Groszek Business Voip Resource. http://www.voipplus.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] acc not writing INVITE to db

2022-02-26 Thread Marcin Groszek
eloper http://www.opensips-solutions.com On 2/20/22 22:58, Marcin Groszek wrote: An update: Perhaps this will help: debug of  acc successfully written to db:   DBG:dialog:fetch_dlg_value: looking for   DBG:dialog:fetch_dlg_value: var found-> <#006>!   DBG:db_mysql:db_mysql_do_prepared_q

Re: [OpenSIPS-Users] acc not writing INVITE to db

2022-02-20 Thread Marcin Groszek
An update: Perhaps this will help: debug of  acc successfully written to db:  DBG:dialog:fetch_dlg_value: looking for  DBG:dialog:fetch_dlg_value: var found-> <#006>!  DBG:db_mysql:db_mysql_do_prepared_query: new query=|insert into acc

[OpenSIPS-Users] driver error(2026)

2022-03-25 Thread Marcin Groszek
on github at https://github.com/OpenSIPS/opensips/issues/2594 but it went without any respond.| |Debug and configuration at the bug report match my results.| | | || -- Best Regards: Marcin Groszek Business Voip Resource. http://www.voipplus.net ___ User

Re: [OpenSIPS-Users] Requesting IP

2022-03-25 Thread Marcin Groszek
___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Best Regards: Marcin Groszek Business Voip Resource. http://www.voipplus.net ___ Users mailing list Users

Re: [OpenSIPS-Users] Stir ans Shaken - number is not in E.164 format

2023-09-06 Thread Marcin Groszek
Correction : maximum of 15 digits . On 9/6/2023 7:21 AM, Marcin Groszek wrote: Your number is to long E.164 is + [1-9]  and  {1-14} digits for total of 15 digits NOT starting with 0 On 9/6/2023 7:16 AM, Mickael Hubert wrote: Hi all, I have an issue, when I verify a call with no E164

Re: [OpenSIPS-Users] Stir ans Shaken - number is not in E.164 format

2023-09-06 Thread Marcin Groszek
umber is not in E.164 format: %.*s\n", num->len, num->s);                 return -1;         } Do you have any help for me please ? I have to validate this format of dest number. Thanks in advance ___ Users mailing list Users@lists.opensip

Re: [OpenSIPS-Users] Not enough free pkg memory

2023-11-09 Thread Marcin Groszek
/issues/3235 and I'm waiting for it. Meanwhile, I'm looking for a way of restarting particular opensips process. Is it possible? -- Best Regards: Marcin Groszek Business Phone Service https://www.voipplus.net ___ Users mailing list Users@lis

[OpenSIPS-Users] Using use_next_gw with partitions

2022-09-10 Thread Marcin Groszek
now we use groupid do distinguish between routes. Can wild card such  "cus*" or "carrier*" be used as a wildcard, where  partition names would be cus_1, cus_2, cus3...carrier_1, carrier_2... Wen we send the call to carrier I wish to search only "carrier*", if poss

Re: [OpenSIPS-Users] Using use_next_gw with partitions

2022-09-10 Thread Marcin Groszek
I was able to use $var(matched_partition) and save it to a dialog to be used in use_next_gw(). Second question remains. On 9/10/2022 4:36 PM, Marcin Groszek wrote: drouting module: use_next_gw() does not allow for wildcard in partition How do I get a partition name to be used

Re: [OpenSIPS-Users] dr_partitions reload

2022-10-11 Thread Marcin Groszek
Well, after some more testing I noticed that dr_partitions does not get reloaded with "opensips-cli -x mi dr_reload" How can one reload the content of dr_partitions without restarting opensips process? On 10/11/2022 10:19 AM, Marcin Groszek wrote: opensips 3.1.5 opensips

[OpenSIPS-Users] dr_partitions reload

2022-10-11 Thread Marcin Groszek
a dr_reload without all partitions, or perhaps reload only dr_partitions table? -- Best Regards: Marcin Groszek Business Phone Service https://www.voipplus.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman

Re: [OpenSIPS-Users] stir shaken verification

2023-01-05 Thread Marcin Groszek
t;, "auth_date_freshness", 300) modparam("stir_shaken", "e164_strict_mode", 0) #list of root certs for stir / shaken verification modparam("stir_shaken", "ca_list", "/etc/ssl/sti-ca/sti-ca.pem") This is on opensips v3.1.11 --------

Re: [OpenSIPS-Users] stir shaken verification

2023-01-05 Thread Marcin Groszek
ou are decoding the ca cert file from iconectiv. attached is what we have currently and it works in our production enviroment. If the maillist strips out that attachment let me know.  You can reach me directly at jjack...@aninetworks.net Joseph ------

Re: [OpenSIPS-Users] stir shaken verification

2023-01-05 Thread Marcin Groszek
x5u), $var(cert));     } else { xlog("--[$ci] Using cached certificate\n");     } ------------ *From:* Users on behalf of Marcin Groszek *Sent:* Thursday, January 5, 2023 4:19 PM *To:* users@lists.opensips.org *Subject:* Re: [OpenSIPS-Users] st

Re: [OpenSIPS-Users] stir shaken verification

2023-01-05 Thread Marcin Groszek
Yes it is, I sent it to xlog it  an it does. On 1/5/2023 4:45 PM, David Villasmil wrote: Is $var(cert) actually set? Print it out On Thu, 5 Jan 2023 at 23:19, Marcin Groszek <mailto:mar...@voipplus.net>> wrote: Thank you very much. I have the same file, and verification is

Re: [OpenSIPS-Users] stir shaken verification

2023-01-06 Thread Marcin Groszek
PM, Marcin Groszek wrote: Yes it is, I sent it to xlog it  an it does. On 1/5/2023 4:45 PM, David Villasmil wrote: Is $var(cert) actually set? Print it out On Thu, 5 Jan 2023 at 23:19, Marcin Groszek <mailto:mar...@voipplus.net>> wrote: Thank you very much. I have the

[OpenSIPS-Users] stir shaken verification

2023-01-04 Thread Marcin Groszek
Opensips version 3.1.5 I am having some issues with stir_shaken setup. I am sure this not an issue with the module, but me. |stir_shaken_auth works just fine and I am able to sign the calls, however I was unable to find any document how to use a ca file available for download at

Re: [OpenSIPS-Users] stir shaken verification

2023-01-30 Thread Marcin Groszek
on CentOS 7 was related to a shared library. OpenSSL I think. -Jon Abrams On Fri, Jan 6, 2023, 10:30 AM Marcin Groszek <mailto:mar...@voipplus.net>> wrote: Thank you for all your help. My test opensips installation was on CentOS 7 and cert verification has bee

Re: [OpenSIPS-Users] $DLG_lifetime but in ms

2024-01-23 Thread Marcin Groszek
if you are calculating cost of the each call in the script. If not then just use external script to round/modifyduration based on ms_duration in acc table after the fact. On 1/23/2024 1:41 PM, tre...@webon.co.za wrote: On Tue, 2024-01-23 at 09:25 -0600, Marcin Groszek wrote: If you

Re: [OpenSIPS-Users] $DLG_lifetime but in ms

2024-01-23 Thread Marcin Groszek
the end of the call, then round up and write to acc table and/or calculate cost of the call. ** On 1/23/2024 9:01 AM, Marcin Groszek wrote: use math_ceil 1.4.5.  math_ceil(number, result_var) Truncates a number, always towards +infinity. This means that ceil(3.2) = 4.0 and ceil(-2

Re: [OpenSIPS-Users] $DLG_lifetime but in ms

2024-01-23 Thread Marcin Groszek
-0600, Marcin Groszek wrote: $avp(dlg_lifetime) is a read/ write variable and you can change its value before acc is written. To round up the duration using minimum billing block and increments you need to save them first in to a dialog. this is the logic I use (opensips 3.1

Re: [OpenSIPS-Users] $DLG_lifetime but in ms

2024-01-23 Thread Marcin Groszek
ble as a variable unless I missed something in the document :) Regards Trevor Steyn ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Best Regards: Marcin Groszek Busi

Re: [OpenSIPS-Users] Increase OpenSips memory size

2024-05-05 Thread Marcin Groszek
. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Best Regards: Marcin Groszek Business Phone Service https://www.voipplus.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org

Re: [OpenSIPS-Users] CDR

2024-03-19 Thread Marcin Groszek
Regards: Marcin Groszek Business Phone Service https://www.voipplus.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] external applications

2024-03-20 Thread Marcin Groszek
h, end.sh connect.sh On 3/20/2024 5:16 AM, Prathibha B wrote: No. I want to pass START, CONNECT, END messages from OpenSIPS to external application. On Wed, 20 Mar 2024 at 15:42, Marcin Groszek <mailto:mar...@voipplus.net>> wrote: Well, to execute external command from opensips you ma

Re: [OpenSIPS-Users] external applications

2024-03-20 Thread Marcin Groszek
___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Best Regards: Marcin Groszek Business Phone Service https://www.voipplus.net ___ Users mailing list Users