From hobe69 at hotmail.com Thu Mar 2 04:39:07 2023 From: hobe69 at hotmail.com (Bela H) Date: Thu, 2 Mar 2023 04:39:07 +0000 Subject: [OpenSIPS-Users] B2B is causing an ERROR:tm:partial_dlg_matching: INV/From not parsed Message-ID: Hello, I am using the OpenSIPS 3.2.11 on Debian 11 and using the B2BUA for hair pining to the own OpenSIPS. With sngrep both the original and the B2B calls have clean SIP signalling. However, after hang up the call there is at least (it depends if A or B subscriber ends the call) the original call dialog hangs up with call state: "state": 3 , from GUI: “Confirmed Not Acknowledged Call” and the syslog shows many different errors, e.g. “ERROR:tm:partial_dlg_matching: INV/From not parsed” If I delete the hanging dialog either from GUI or with cli OpenSIPS crashes: (cli): mi dlg_end_dlg dialog_id=f0c.57deb687 ERROR: communication exception for 'dlg_end_dlg' returned: could not decode json: '' ERROR: Is OpenSIPS running? (cli): Mar 2 17:34:19 sbc1t kernel: [97206.071119] traps: opensips[8143] general protection fault ip:7f1671388250 sp:7ffcc4013100 error:0 in tracer.so[7f167137c000+13000] Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: CRITICAL:db_mysql:wrapper_single_mysql_stmt_execute: driver error (1048): Column 'from_tag' cannot be null Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: ERROR:acc:acc_db_request: failed to insert into acc table Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: ERROR:dialog:build_dlg_t: invalid cseq Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: ERROR:dialog:send_leg_bye: failed to create dlg_t Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: CRITICAL:tracer:proto2str: unsupported proto 0 Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: CRITICAL:tracer:proto2str: unsupported proto 0 Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8143]: CRITICAL:core:sig_usr: segfault in process pid: 8143, id: 2 Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8141]: INFO:core:handle_sigs: child process 8143 exited by a signal 11 Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8141]: INFO:core:handle_sigs: core was not generated Mar 2 17:34:19 sbc1t /usr/sbin/opensips[8141]: INFO:core:handle_sigs: terminating due to SIGCHLD In the script the B2B part is very simple: loadmodule "b2b_entities.so" modparam("b2b_entities", "script_req_route", "b2b_request") modparam("b2b_entities", "script_reply_route", "b2b_reply") modparam("b2b_entities", "b2b_key_prefix", "B2B1") modparam("b2b_entities", "db_mode", 1) #modparam("b2b_entities", "replication_mode", 0) #### B2B_Logic #### loadmodule "b2b_logic.so" modparam("b2b_logic", "init_callid_hdr", "Init-CallID") modparam("b2b_logic", "server_address", "sip:own_address") modparam("b2b_logic", "db_url", "mysql://xxxxxxx at yyyyyyyy") A certain call scenario triggers the B2B call: b2b_init_request("top hiding"); request and reply routes are just xlogs. The issue can be simulated any time with the same call scenario. Is anyone able to help or just report it as a bug? Cheers, Bela -------------- next part -------------- An HTML attachment was scrubbed... URL: From suharik71 at gmail.com Fri Mar 3 11:17:56 2023 From: suharik71 at gmail.com (=?UTF-8?B?0JDQvdGC0L7QvSDQldGA0YjQvtCy?=) Date: Fri, 3 Mar 2023 14:17:56 +0300 Subject: [OpenSIPS-Users] problem with Qrouting Message-ID: Hi guys, I'm experimenting with the Qrouting module and got a strange result. it blocks the use_next_gw function and returns $rc -1. when calling the drouting() function in the debug log, I see: DBG:qrouting:qr_sort_dynamic_weights: score for dst type 1, i: 0 is 1.000000 DBG:qrouting:qr_sort_dynamic_weights: score for dst type 1, i: 1 is 1.000000 order 1 works at this moment when calling use_next_gw and must work order 0 i see DBG:qrouting:qr_acc: engaging accounting for rule 0x7fb9a0061da0, cr: -1, gw: 0 DBG:drouting:use_next_gw: new RURI set to via socket <10.153.5.38> and get $rc -1 if in opensips-cli call qr_enable_dst or qr_disable_dst gw gets status -1 DBG:qrouting:qr_sort_dynamic_weights: score for dst type 1, i: 0 is -1.000000 DBG:qrouting:qr_sort_dynamic_weights: score for dst type 1, i: 1 is -1.000000 and drouting() can't get available gw in q_profile all threshold have value -1 which indicates that the metric should not be taken into account. but gw becomes unavailable what am I doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From wadii at evenmedia.fr Fri Mar 3 12:28:34 2023 From: wadii at evenmedia.fr (Wadii ELMAJDI | Evenmedia) Date: Fri, 3 Mar 2023 12:28:34 +0000 Subject: [OpenSIPS-Users] Question related to sst module Message-ID: Hello, I noticed a segmentation fault is caused by sst module : Client B2BUA (UAC) invite has : Session-Expires: 1000 Min-SE: 90 Opensips SST min_se configured at 1800s, dialog has sst_flag. This causes Opensips to crash : opensips log : Mar 3 13:06:10 test-boxopensips /usr/sbin/opensips[6088]: CRITICAL:core:sig_usr: segfault in process pid: 6088, id: 6 Mar 3 13:06:11 test-boxopensips /usr/sbin/opensips[6082]: INFO:core:handle_sigs: child process 6088 exited by a signal 11 Mar 3 13:06:11 test-boxopensips /usr/sbin/opensips[6082]: INFO:core:handle_sigs: core was not generated Mar 3 13:06:11 test-boxopensips /usr/sbin/opensips[6082]: INFO:core:handle_sigs: terminating due to SIGCHLD Sys log : Mar 3 13:06:58 test-boxopensips kernel: [ 9969.171168] opensips[6185]: segfault at 968 ip 00007f3da464b901 sp 00007ffe8aec6f00 error 4 in tm.so[7f3da4617000+46000] Mar 3 13:06:58 test-boxopensips kernel: [ 9969.173758] Code: 89 44 24 68 31 c0 81 fa c7 00 00 00 0f 87 17 02 00 00 41 8d 84 24 d4 fe ff ff 83 f8 63 0f 86 0e 01 00 00 48 8b 85 f0 00 00 00 <8b> 80 68 09 00 00 41 33 85 68 09 00 00 a8 01 0f 85 39 01 00 00 4c I have already solved the scripting problem by using sstCheckIn to adapt SessionExpire value to Opensips's min_se value. Also, if the the UAC changes its session expires value to any value identical or higher than the one configured in OpenSIPS min_se value solves the problem. My question : is this a normal behavior for opensips to completely crash ? Opensips version : version: opensips 3.2.11 (x86_64/linux) flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535 poll method support: poll, epoll, sigio_rt, select. main.c compiled on with gcc 10 Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From apsaras at microbase.gr Fri Mar 3 13:19:27 2023 From: apsaras at microbase.gr (Antonis Psaras) Date: Fri, 3 Mar 2023 15:19:27 +0200 Subject: [OpenSIPS-Users] 183 to 180 manipulation without external application Message-ID: <26d101d94dd2$c7f6ee20$57e4ca60$@microbase.gr> Dear Team I am trying to figure a way to translate 183 message to 180 or send a new "fake" 180 following 183. I want to do that within opensips script to minimize overhead in comparison with an external application. I saw the perl example but the traffic is very high on that system and executing an external script for each call will be very heavy. Is there any thoughts/suggestion? Best regards Antonis Psaras 14 Iteas Str., Argyroupoli, 16452, Athens, Greece Tel: +30.21200.05300 | Fax: +30.21200.05800 www.microbase.gr Disclaimer. Privileged/Confidential information may be contained in this message and may be subject to legal privilege. Access to this email by anyone other than the intended recipient is unauthorized. If you are not the intended recipient (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver to anyone this message (or any part of its contents) or take any action in reliance on it. In such case, you should destroy this message, and notify us immediately. All reasonable precautions have been taken to ensure no viruses are present in this email. As we cannot accept responsibility for any loss or damage arising from the use of this email or attachments we recommend that you subject these to your virus checking procedures prior to use. The views, opinions, conclusions and other information such us personal data (EE 2016/679- GDPR) expressed in this electronic mail are not given or endorsed by Microbase unless otherwise indicated by an authorized company representative independent of this message. Microbase. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.png Type: image/png Size: 1269 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 768 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 905 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 801 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 15117 bytes Desc: not available URL: From johan at democon.be Fri Mar 3 14:03:14 2023 From: johan at democon.be (johan) Date: Fri, 3 Mar 2023 15:03:14 +0100 Subject: [OpenSIPS-Users] 183 to 180 manipulation without external application In-Reply-To: <26d101d94dd2$c7f6ee20$57e4ca60$@microbase.gr> References: <26d101d94dd2$c7f6ee20$57e4ca60$@microbase.gr> Message-ID: <4768f206-b627-12d7-7dba-f8ab5501c0a0@democon.be> Just rewerite the status line ? On 3/03/2023 14:19, Antonis Psaras wrote: > > I am trying to figure a way to translate 183 mes > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick at altmann.pro Fri Mar 3 14:34:07 2023 From: nick at altmann.pro (Nick Altmann) Date: Fri, 3 Mar 2023 15:34:07 +0100 Subject: [OpenSIPS-Users] 183 to 180 manipulation without external application In-Reply-To: <4768f206-b627-12d7-7dba-f8ab5501c0a0@democon.be> References: <26d101d94dd2$c7f6ee20$57e4ca60$@microbase.gr> <4768f206-b627-12d7-7dba-f8ab5501c0a0@democon.be> Message-ID: You can try to use https://opensips.org/docs/modules/3.3.x/sipmsgops.html#change_reply_status , for example. -- Nick > Just rewerite the status line ? > On 3/03/2023 14:19, Antonis Psaras wrote: > > I am trying to figure a way to translate 183 mes > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From efes99999 at gmail.com Mon Mar 6 14:12:06 2023 From: efes99999 at gmail.com (L S) Date: Mon, 6 Mar 2023 09:12:06 -0500 Subject: [OpenSIPS-Users] opensips-cli installation issue Message-ID: Hi, We are trying to install opensips-cli (on centos 7). It requires sqlalchemy==1.3.3, and doesn't accept 1.4.46. pip install returns: Collecting sqlalchemy==1.3.3 Could not find a version that satisfies the requirement sqlalchemy==1.3.3 (from versions: 1.3.16, 1.3.17, 1.3.18, 1.3.19, 1.3.20, 1.3.21, 1.3.22, 1.3.23, 1.3.24, 1.4.0b1, 1.4.0b2, 1.4.0b3, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8, 1.4.9, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 1.4.14, 1.4.15, 1.4.16, 1.4.17, 1.4.18, 1.4.19, 1.4.20, 1.4.21, 1.4.22, 1.4.23, 1.4.24, 1.4.25, 1.4.26, 1.4.27, 1.4.28, 1.4.29, 1.4.30, 1.4.31, 1.4.32, 1.4.33, 1.4.34, 1.4.35, 1.4.36, 1.4.37, 1.4.38, 1.4.39, 1.4.40, 1.4.41, 1.4.42, 1.4.43, 1.4.44, 1.4.45, 1.4.46) No matching distribution found for sqlalchemy==1.3.3 Any workarounds? Thanks, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From razvan at opensips.org Tue Mar 7 09:35:43 2023 From: razvan at opensips.org (=?UTF-8?Q?R=c4=83zvan_Crainea?=) Date: Tue, 7 Mar 2023 11:35:43 +0200 Subject: [OpenSIPS-Users] opensips-cli installation issue In-Reply-To: References: Message-ID: <7ce2441b-adfe-0087-5d75-9141766b6a29@opensips.org> Hi, Matt! I think you can try bumping the sqlalchemy version [1] to one of the supported versions, then try to manual install [2]. [1] https://github.com/OpenSIPS/opensips-cli/blame/master/setup.py#L70 [2] https://github.com/OpenSIPS/opensips-cli/blob/master/docs/INSTALLATION.md#from-source-code Best regards, Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com On 3/6/23 16:12, L S wrote: > Hi, > > We are trying to install opensips-cli (on centos 7). > > It requires sqlalchemy==1.3.3, and doesn't accept 1.4.46. > > pip install returns: > > Collecting sqlalchemy==1.3.3 >   Could not find a version that satisfies the requirement > sqlalchemy==1.3.3 (from versions: 1.3.16, 1.3.17, 1.3.18, 1.3.19, > 1.3.20, 1.3.21, 1.3.22, 1.3.23, 1.3.24, 1.4.0b1, 1.4.0b2, 1.4.0b3, > 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8, 1.4.9, > 1.4.10, 1.4.11, 1.4.12, 1.4.13, 1.4.14, 1.4.15, 1.4.16, 1.4.17, 1.4.18, > 1.4.19, 1.4.20, 1.4.21, 1.4.22, 1.4.23, 1.4.24, 1.4.25, 1.4.26, 1.4.27, > 1.4.28, 1.4.29, 1.4.30, 1.4.31, 1.4.32, 1.4.33, 1.4.34, 1.4.35, 1.4.36, > 1.4.37, 1.4.38, 1.4.39, 1.4.40, 1.4.41, 1.4.42, 1.4.43, 1.4.44, 1.4.45, > 1.4.46) > No matching distribution found for sqlalchemy==1.3.3 > > Any workarounds? Thanks, Matt > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users From razvan at opensips.org Tue Mar 7 09:58:13 2023 From: razvan at opensips.org (=?UTF-8?Q?R=c4=83zvan_Crainea?=) Date: Tue, 7 Mar 2023 11:58:13 +0200 Subject: [OpenSIPS-Users] PAID not in resent INVITE from Failure Block In-Reply-To: References: <040e7e88-7f9a-f910-0eda-6832a2ba230d@8x8.com> Message-ID: <43591aec-50f0-85a5-57ba-4edf36521219@opensips.org> Hi, Richard! When a transaction is created, either by t_newtran(), either by using a function that internally creates it, the request message, along with its changes are stored/cloned in the transaction. When failure_route is run, you are actually seeing the message stored in the transaction. This essentially means that if the headers had been added *after* the transaction was created, you will not be able to access them in failure route. Of course, Ben is right as well - if you are adding the headers in the branch route, you will not see them in a different branch. And half of the reason is similar to the one above: when the transaction is created (i.e. by t_relay()), the request message is cloned in transaction, then branch routes are executed. Whatever change you make per branch, they are stored in each branch's structure (not in the message itself). Hence, when the failure route is executed, you will get the message cloned when the transaction was created (before branch routes are even executed). Hope this helps you identify missing headers in failure route :) Best regards, Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com On 2/24/23 17:14, Ben Newlin wrote: > Richard, > > Are you by chance adding the PAID/RPID headers in a branch route? > Changes to a SIP message made in a branch route exist only in that > branch, and will not be present in the failure route. > > Ben Newlin > > *From: *Users on behalf of Richard > Robson > *Date: *Friday, February 24, 2023 at 6:58 AM > *To: *users at lists.opensips.org > *Subject: *[OpenSIPS-Users] PAID not in resent INVITE from Failure Block > > * EXTERNAL EMAIL - Please use caution with links and attachments * > > ------------------------------------------------------------------------ > > I have an OpenSIPS 2.3 instance, where we are sending a call to the next > hop and are receiving a 403 forbidden. This is expected and we need to > update the from or to header and resend the call to the same destination > whish will accept this. we do not make any other changed in the failure > route, nor want to. > > This is working, however, the additional PAID and RPID headers, which > were added by OpenSIPs before the INVITE was t_relayed are missing from > the updated INVITE, ( the from header is modified.) > > The documentation implies that the headers should be there: > > *Processing* : the original SIP request (that was sent out) > > There is nothing in the failure route to cause the headers to be dropped. > > Therefore is this by design? i.e. additional headers are dropped and > need to be re-applied, they are missing because the 403 did not contain > them or is this a bug and the headers should be there? > > INVITE (with PAID & RPID  headers) -> > > <- 403 forbidden (no PAID or RPID) > > INVITE (no PAID & RPID  headers) ->   (this just has the from header > modified) > > Regards, Richard > > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users From spanda at 3clogic.com Tue Mar 7 11:40:13 2023 From: spanda at 3clogic.com (Sasmita Panda) Date: Tue, 7 Mar 2023 17:10:13 +0530 Subject: [OpenSIPS-Users] Need some help while running opensips as docker container . Message-ID: Hi All , I have an aws instance on which opensips runs as a docker container and uses database as RDS mysql . I have rtpengine Ip added in the opensips DB . When I will add another rtpengine IP in the table, how do my opensips container start using the newly added rtpengine IP without restart (restart will hamper live calls so I don't want to restart the service )? I have another machine on which Opensips-cli is running . Is it possible to connect remotely with the opensips instance and run the command " *reload_rtpengine*" ? If opensips is running on a host machine , I am able to reload_rtpengine from remote opensips-cli server but if it's in docker container then it's not working for me . Is it possible or not ? If not , is there any other process to do this ? *Thanks & Regards* *Sasmita Panda* *Senior Network Testing and Software Engineer* *3CLogic , ph:07827611765* -------------- next part -------------- An HTML attachment was scrubbed... URL: From efes99999 at gmail.com Tue Mar 7 13:57:46 2023 From: efes99999 at gmail.com (L S) Date: Tue, 7 Mar 2023 08:57:46 -0500 Subject: [OpenSIPS-Users] opensips-cli installation issue In-Reply-To: <7ce2441b-adfe-0087-5d75-9141766b6a29@opensips.org> References: <7ce2441b-adfe-0087-5d75-9141766b6a29@opensips.org> Message-ID: Hi Răzvan, Thank you for your quick response. I was able to get a hold of sqlalchemy 1.3.3, and manually copy it to python3 site-packages. Opensips-cli works fine now, but I will change the requirement in setup.py and re-install it. I think that's a better option going forward. Thanks, Matt On Tue, Mar 7, 2023, 4:38 AM Răzvan Crainea wrote: > Hi, Matt! > > I think you can try bumping the sqlalchemy version [1] to one of the > supported versions, then try to manual install [2]. > > [1] https://github.com/OpenSIPS/opensips-cli/blame/master/setup.py#L70 > [2] > > https://github.com/OpenSIPS/opensips-cli/blob/master/docs/INSTALLATION.md#from-source-code > > Best regards, > > Răzvan Crainea > OpenSIPS Core Developer > http://www.opensips-solutions.com > > On 3/6/23 16:12, L S wrote: > > Hi, > > > > We are trying to install opensips-cli (on centos 7). > > > > It requires sqlalchemy==1.3.3, and doesn't accept 1.4.46. > > > > pip install returns: > > > > Collecting sqlalchemy==1.3.3 > > Could not find a version that satisfies the requirement > > sqlalchemy==1.3.3 (from versions: 1.3.16, 1.3.17, 1.3.18, 1.3.19, > > 1.3.20, 1.3.21, 1.3.22, 1.3.23, 1.3.24, 1.4.0b1, 1.4.0b2, 1.4.0b3, > > 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8, 1.4.9, > > 1.4.10, 1.4.11, 1.4.12, 1.4.13, 1.4.14, 1.4.15, 1.4.16, 1.4.17, 1.4.18, > > 1.4.19, 1.4.20, 1.4.21, 1.4.22, 1.4.23, 1.4.24, 1.4.25, 1.4.26, 1.4.27, > > 1.4.28, 1.4.29, 1.4.30, 1.4.31, 1.4.32, 1.4.33, 1.4.34, 1.4.35, 1.4.36, > > 1.4.37, 1.4.38, 1.4.39, 1.4.40, 1.4.41, 1.4.42, 1.4.43, 1.4.44, 1.4.45, > > 1.4.46) > > No matching distribution found for sqlalchemy==1.3.3 > > > > Any workarounds? Thanks, Matt > > > > _______________________________________________ > > Users mailing list > > Users at lists.opensips.org > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From efes99999 at gmail.com Tue Mar 7 22:17:14 2023 From: efes99999 at gmail.com (L S) Date: Tue, 7 Mar 2023 17:17:14 -0500 Subject: [OpenSIPS-Users] Utimer delaying execution Message-ID: Hi, We are in the process of upgrading to Opensips 3.2.10 (from 1.11 TLS). Opensips has run without any issues on Centos 7 for about a week, but the other day, we got the following message (many), and eventually Opensips 3.2.10 hung up/stopped processing requests: Mar 5 21:46:15 opensips2 /usr/local/sbin/opensips[123477]: WARNING:core:utimer_ticker: utimer task already scheduled 695330 ms ago (now 136521190 ms), delaying execution We use Opensips only as a dispatcher, and do not call any external processes. Opensips tables reside in a mysql database. We have used 1.11 TLS (with openssl) for many years, and never run into this issue. Init.d script is the one that comes with 3.2.10. I came across these two related issues: https://github.com/OpenSIPS/opensips/issues/1767 https://github.com/OpenSIPS/opensips/issues/1858 It seems openssl is the culprit there, but we use wolfssl. (We had major issues with openssl). Any ideas? I will run a trap when/if this happens, but I think I need to install opensips-dbg module (Centos 7), which I can't find. Any help is appreciated. Thanks, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From alain.bieuzent at free.fr Thu Mar 9 09:32:15 2023 From: alain.bieuzent at free.fr (Alain Bieuzent) Date: Thu, 09 Mar 2023 10:32:15 +0100 Subject: [OpenSIPS-Users] route parameters ($param) on opens ips 3.2.11 Message-ID: Hi all, I’m trying to upgrade from 3.2.9 to 3.2.11 and I’m facing issue with this new version. I have a route where i used a parameter as input : route[Q850enable] {         $var(Q850enableset) = $dlg_val(Q850enable);             if ($var(Q850enableset) == "1" || $avp(Q850enable) == "1")         {                 append_to_reply("Reason: q.850;$param(1)\r\n");                  xlog("L_INFO","$ci|Q850| Adding $param(1) cause code");         } } When, I my script I call the route : route(Q850enable,38); Opensips generate this error and sometime segfault . Mar  9 10:23:43 lbsip-rtpe-test opensips[570821]: ERROR:core:pv_printf: no more space for spec value [38][62347312] Mar  9 10:23:43 lbsip-rtpe-test opensips[570821]: ERROR:core:pv_printf: buffer too small -- increase the buffer size from [4096]... Mar  9 10:23:43 lbsip-rtpe-test opensips[570821]: ERROR:core:xlog_2: global print buffer too small, increase 'xlog_buf_size' Mar  9 10:23:43 lbsip-rtpe-test opensips[570821]: ERROR:core:do_action: error while printing xlog message Mar  9 10:23:43 lbsip-rtpe-test opensips[570821]: ERROR:core:pv_printf: no more space for spec value [14][62347312] Mar  9 10:23:43 lbsip-rtpe-test opensips[570821]: ERROR:core:pv_printf: buffer too small -- increase 'pv_print_buf_size' from [20000] Mar  9 10:23:43 lbsip-rtpe-test opensips[570821]: ERROR:core:get_cmd_fixups: Failed to print formatted string in param [1] Mar  9 10:23:43 lbsip-rtpe-test opensips[570821]: ERROR:core:do_action: Failed to get fixups for command in /etc/opensips/opensips.cfg, line 1308 Mar  9 10:23:43 lbsip-rtpe-test opensips[570821]: ERROR:core:pv_printf: no more space for spec value [38][62347312] Mar  9 10:23:43 lbsip-rtpe-test opensips[570821]: ERROR:core:pv_printf: buffer too small -- increase the buffer size from [4096]... Mar  9 10:23:43 lbsip-rtpe-test opensips[570821]: ERROR:core:xlog_2: global print buffer too small, increase 'xlog_buf_size' Mar  9 10:23:43 lbsip-rtpe-test opensips[570821]: ERROR:core:do_action: error while printing xlog message This code is working fine on 3.2.9 but not on 3.2.11, any idea ? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From liviu at opensips.org Thu Mar 9 12:00:07 2023 From: liviu at opensips.org (Liviu Chircu) Date: Thu, 9 Mar 2023 14:00:07 +0200 Subject: [OpenSIPS-Users] route parameters ($param) on opens ips 3.2.11 In-Reply-To: References: Message-ID: <1ef5baee-5f64-1831-8a17-a8d2fbc57c26@opensips.org> On 09.03.2023 11:32, Alain Bieuzent wrote: > > When, I my script I call the route : > > route(Q850enable,38); > > Opensips generate this error and sometime segfault . > Hi Alain, Indeed, this is a known issue with 3.2.11, please see #3024 [1] on GitHub.  A fix should be available soon, I'll keep you posted! [1]: https://github.com/OpenSIPS/opensips/issues/3024 Best regards, -- Liviu Chircu www.twitter.com/liviuchircu |www.opensips-solutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bogdan at opensips.org Thu Mar 9 15:47:46 2023 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Thu, 9 Mar 2023 17:47:46 +0200 Subject: [OpenSIPS-Users] OpenSIPS Control Panel 9.3.3 released featuring dashboard Message-ID: <8fb757bc-6076-d55c-5bbd-05ad98f4f99c@opensips.org> The OpenSIPS Control Panel 9.3.3 is the corresponding version for OpenSIPs 3.3.x . Besides the compatibility (to OpenSIPS 3.3) work, the OCP 9.3.3 features some new really cool tools: * dashboard support, with multiple panels with custom widget sets     http://controlpanel.opensips.org/htmldoc_9_X_X/dashboard.html * status/report tool to fetch reports from OpenSIPS http://controlpanel.opensips.org/htmldoc_9_X_X/status_report.html * keepalived tool to monitor and manage keepalive     http://controlpanel.opensips.org/htmldoc_9_X_X/keepalived.html Enjoy it, -- Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit 2023, Houston, US https://www.opensips.org/events/Summit-2023Houston/ From bullehs at gmail.com Fri Mar 10 08:00:00 2023 From: bullehs at gmail.com (HS) Date: Fri, 10 Mar 2023 13:00:00 +0500 Subject: [OpenSIPS-Users] Push Notification - Location table has flag 0 v3.3 In-Reply-To: References: Message-ID: Hi again. Appreciate the offer to share the code - look forward to it. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From callum.guy at x-on.co.uk Mon Mar 13 10:30:27 2023 From: callum.guy at x-on.co.uk (Callum Guy) Date: Mon, 13 Mar 2023 10:30:27 +0000 Subject: [OpenSIPS-Users] rtpengine_offer on REINVITE In-Reply-To: References: Message-ID: Hi All, Following up on this following another media server crash. Since the previous email it was discovered that on occasion RTPEngine would be delayed in responding to OpenSIPs and therefore a second RTP server was tried triggering the failure scenario (unnecessary DTLS renegotiation mid-call). This time there was no detectable delay, a call was simply established through OpenSIPs however a RE-INVITE arriving at the 1 minute mark engaged a separate RTP server. Can anyone explain the mechanism by which a RTP server which was selected during the dialog setup is attached to the dialog data for subsequent requests, and identify any possible weakness where this would not be recorded? In over 99.99% of situations it certainly selects the RTP server previously engaged however there must be a weakness for this to occur. Any thoughts on debugging/mitigation would be appreciated! The affected system is running 3.2.4 - happy to upgrade if there has been any work in this area! Thanks, Callum On Wed, 22 Feb 2023 at 21:40, Callum Guy wrote: > Hi All, > > I operate OpenSIPs in front of a bank of FreeSWITCH instances and I'm > currently seeing an issue with FreeSWITCH crashing during a SRTP DTLS > renegotiation triggered by a RE-INVITE. > > I've tracked this down to a WSS registrar which is issuing > rtpengine_offer(...) for the INVITE and any subsequent RE-INVITE. This > happens thousands of times a day without issue however on occasion OpenSIPs > sends that RE-INVITE request to a different rtpengine server from the pool. > This writes in the new RTP proxy IP and initiates a new ICE > negotiation, the client fails to handle this and the DTLS negotiation > breaks down - RTPEngine warns "*Received invalid STUN packet from > 1.8.4.1:58184 : MESSAGE_INTEGRITY attribute missing*" > and FreeSWITCH segfaults. > > Can anyone advise on what might be causing OpenSIPs to pick an unrelated > RTP instance for the dialog? Any ideas for preventing that would be > appreciated! I could conceivably save the socket after the initial offer > against the dialog and use that for additional offers but hopefully that > can be avoided. I use RTPEngine only as a proxy, perhaps I should simply > prevent RE-INVITE's from sending additional offers so I only have one > offer/answer/delete per call? > > Thanks, > > Callum > -- *0333 332 0000  |  x-on.co.uk   |   **      **  |  **Practice Index Reviews * *Our new office address: 22 Riduna Park, Melton IP12 1QT.* X-on is a trading name of Storacall Technology Ltd a limited company registered in England and Wales. Registered Office : Glebe Farm, Down Street, Dummer, Basingstoke, Hampshire, England RG25 2AD. Company Registration No. 2578478. The information in this e-mail is confidential and for use by the addressee(s) only. If you are not the intended recipient, please notify X-on immediately on +44(0)333 332 0000 and delete the message from your computer. If you are not a named addressee you must not use, disclose, disseminate, distribute, copy, print or reply to this email. Views or opinions expressed by an individual within this email may not necessarily reflect the views of X-on or its associated companies. Although X-on routinely screens for viruses, addressees should scan this email and any attachments for viruses. X-on makes no representation or warranty as to the absence of viruses in this email or any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dylan at regtelco.com Tue Mar 14 00:26:21 2023 From: dylan at regtelco.com (Dylan Cruz) Date: Mon, 13 Mar 2023 20:26:21 -0400 Subject: [OpenSIPS-Users] OpenSIPS and Asterisk on same system Message-ID: I'd love a sample OpenSIPS Config that would let me accomplish using it as a transparent proxy to Asterisk running on the same system. I found a few tutorials but found a lot of conflicting information and outdated sources, Once I have that I will have enough to work on to do what I want... Basically I would like OpenSIPS to sit between the outside world and Asterisk, Incoming & Outgoing would both transparently be proxied through it. OpenSIPS would be running on port 5060 & Asterisk would be running on port 5090, So for example to register to a SIP Trunk from a VoIP provider my Asterisk sip.conf would look like this: (I know chan_sip is deprecated...) *[general]* *nat=no* *bindport=5090* *outboundproxy=127.0.0.1:5060 ; Route everything through OpenSIPS* *tos_sip=cs3* *tos_audio=ef* *trustrpid=yes* *canreinvite=yes* *directrtpsetup=yes* *allowguest=no* *allowoverlap=yes* *srvlookup=yes* *disallow=all* *allow=ulaw* *[inbound-pstn]* *type=peer* *host=191.122.31.32* *insecure=invite,port* *qualify=yes* *context=from-inbound* *[outbound-pstn]* *type=peer* *host=191.122.31.33* *insecure=invite,port* *qualify=yes* I would then be able to talk to both of those trunks from Asterisk and have inbound & outbound calls working all the way through to the VoIP provider. My purpose for wanting to do this is I want to play around with the SIP-I module in OpenSIPS to interwork ISUP IAM fields by breaking them out into SIP Headers that I can then manipulate easily in Asterisk. Full disclosure: I am a complete OpenSIPS noob! This would be my first OpenSIPS project, I am very impressed with its capabilities and by having a little sample config it would allow me to experiment and start my journey of getting my feet wet with it! Thanks in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: From efes99999 at gmail.com Tue Mar 14 13:02:57 2023 From: efes99999 at gmail.com (L S) Date: Tue, 14 Mar 2023 09:02:57 -0400 Subject: [OpenSIPS-Users] 3.2.11 vs 3.2.10 authorization Message-ID: Hi, We are trying to upgrade from Opensips 3.2.10 to 3.2.11, but we are running to an issue with registrations. It's the same server, same opensips cfg file, but 3.2.10 allows/authorizes the registrations, but 3.2.11 returns 401 Unauthorized. The code that checks the credentials is: if (is_method("REGISTER|SUBSCRIBE")) { $avp(password)="xyz"; if (!pv_www_authorize("")) { www_challenge(""); exit; }; consume_credentials(); } Again it's same code, the same physical server. What might be causing this? Thanks, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From callum.guy at x-on.co.uk Tue Mar 14 20:38:12 2023 From: callum.guy at x-on.co.uk (Callum Guy) Date: Tue, 14 Mar 2023 20:38:12 +0000 Subject: [OpenSIPS-Users] 3.2.11 vs 3.2.10 authorization In-Reply-To: References: Message-ID: Hi Matt, You are not alone, I have just performed the same update and ran into the same problem! No config changes, just an opensips package update on a CentOS 7 server. My only lead so far is the server referring to a stale nonce in its reply, this may be a red herring as I reverted so quickly I don't have much data! SIP/2.0 401 Unauthorized Via: SIP/2.0/WSS 4dd4fgrikg9v.invalid;received=99.100.77.236;rport=59260;branch=z9hG4bK2984131 To: ;tag=8dca.7f4e487b9989bf9b0212db1e9a1410a8 From: ;tag=ad8qlo9gaq Call-ID: 2cjev1ph5gr0m2337tur CSeq: 3 REGISTER WWW-Authenticate: Digest realm="fr-1.rtc.example.net", nonce="j9+Qf6N87TeziTRHnWacqtUl3wCf8nvD2I9jm21q+48A", *stale=true* Content-Length: 0 I'll set up a test lab tomorrow and see if I can get to the bottom of it and will continue to follow this thread. Good luck, Callum On Tue, 14 Mar 2023 at 13:05, L S wrote: > Hi, > > We are trying to upgrade from Opensips 3.2.10 to 3.2.11, but we are > running to an issue with registrations. It's the same server, same opensips > cfg file, but 3.2.10 allows/authorizes the registrations, but 3.2.11 > returns 401 Unauthorized. > > The code that checks the credentials is: > > if (is_method("REGISTER|SUBSCRIBE")) { > $avp(password)="xyz"; > if (!pv_www_authorize("")) { > www_challenge(""); > exit; > }; > consume_credentials(); > } > > Again it's same code, the same physical server. What might be causing this? > > Thanks, > Matt > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- *0333 332 0000  |  x-on.co.uk   |   **      **  |  **Practice Index Reviews * *Our new office address: 22 Riduna Park, Melton IP12 1QT.* X-on is a trading name of Storacall Technology Ltd a limited company registered in England and Wales. Registered Office : Glebe Farm, Down Street, Dummer, Basingstoke, Hampshire, England RG25 2AD. Company Registration No. 2578478. The information in this e-mail is confidential and for use by the addressee(s) only. If you are not the intended recipient, please notify X-on immediately on +44(0)333 332 0000 and delete the message from your computer. If you are not a named addressee you must not use, disclose, disseminate, distribute, copy, print or reply to this email. Views or opinions expressed by an individual within this email may not necessarily reflect the views of X-on or its associated companies. Although X-on routinely screens for viruses, addressees should scan this email and any attachments for viruses. X-on makes no representation or warranty as to the absence of viruses in this email or any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobe69 at hotmail.com Tue Mar 14 22:54:24 2023 From: hobe69 at hotmail.com (Bela H) Date: Tue, 14 Mar 2023 22:54:24 +0000 Subject: [OpenSIPS-Users] OpenSIPS Control Panel 9.3.2 does not show Online Users Message-ID: Hello, OpenSIPS Control Panel 9.3.2 does not show Online Users, the location table is empty. The ul_dump shows 95 registered users: opensips-cli -x mi ul_dump | grep '"AOR"' | wc -l 95 OpenSIPS version: opensips 3.2.6 The usrloc module setting in cfg: loadmodule "usrloc.so" modparam("usrloc", "nat_bflag", "NAT") modparam("usrloc", "working_mode_preset", "full-sharing-cluster") modparam("usrloc", "location_cluster", 1) What do I miss? Cheers, Bela -------------- next part -------------- An HTML attachment was scrubbed... URL: From bogdan at opensips.org Wed Mar 15 15:09:49 2023 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Wed, 15 Mar 2023 17:09:49 +0200 Subject: [OpenSIPS-Users] OpenSIPS Security Audit - mission accomplished In-Reply-To: <777b90db-bf92-b32f-388a-43aed7088743@opensips.org> References: <777b90db-bf92-b32f-388a-43aed7088743@opensips.org> Message-ID: <0aee32e5-5ac5-b0c5-7b53-a1ce253da6d7@opensips.org> The +1 year update. I hope you all had the time to upgrade and get safer with your opensips installations. Why? Because here we have here 50+ pages of detailed description of the findings of the security audit, with full explanations and instructions on how to reproduce them. https://blog.opensips.org/2023/03/15/opensips-security-audit-fully-disclosed/ Take care, use this info wisely and responsible! More on security, testing and performance of OpenSIPS @ OpenSIPS Summit 2023 Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit 2023, Houston, US https://www.opensips.org/events/Summit-2023Houston/ On 4/28/22 5:42 PM, Bogdan-Andrei Iancu wrote: > > OpenSIPS 3.2 Security Audit is now completed, with facts and results. > A lot of fuzzing, testing and of course fixing. Everything just to > make OpenSIPS more secure. Thank you @enablesecurity ! > > https://blog.opensips.org/2022/04/28/opensips-security-audit-facts-and-results/ > > > Best regards, > -- > Bogdan-Andrei Iancu > > OpenSIPS Founder and Developer > https://www.opensips-solutions.com > OpenSIPS eBootcamp 23rd May - 3rd June 2022 > https://opensips.org/training/OpenSIPS_eBootcamp_2022/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From gshepard at sangoma.com Wed Mar 15 16:34:52 2023 From: gshepard at sangoma.com (Gabe Shepard) Date: Wed, 15 Mar 2023 12:34:52 -0400 Subject: [OpenSIPS-Users] 3.2.11 vs 3.2.10 authorization In-Reply-To: References: Message-ID: Hi, We've run into this as well. Doing a git bisect appears to point to commit 72610573a637f1bad60ba07061e05d1652cb93e0 which is related to qop validation. If it helps, I've been testing with a Polycom VVX 450 running firmware 6.4.3. -Gabe On Tue, Mar 14, 2023 at 4:39 PM Callum Guy wrote: > Hi Matt, > > You are not alone, I have just performed the same update and ran into the > same problem! > > No config changes, just an opensips package update on a CentOS 7 server. > > My only lead so far is the server referring to a stale nonce in its reply, > this may be a red herring as I reverted so quickly I don't have much data! > > SIP/2.0 401 Unauthorized > Via: SIP/2.0/WSS > 4dd4fgrikg9v.invalid;received=99.100.77.236;rport=59260;branch=z9hG4bK2984131 > To: >;tag=8dca.7f4e487b9989bf9b0212db1e9a1410a8 > From: ;tag=ad8qlo9gaq > Call-ID: 2cjev1ph5gr0m2337tur > CSeq: 3 REGISTER > WWW-Authenticate: Digest realm="fr-1.rtc.example.net", > nonce="j9+Qf6N87TeziTRHnWacqtUl3wCf8nvD2I9jm21q+48A", *stale=true* > Content-Length: 0 > > I'll set up a test lab tomorrow and see if I can get to the bottom of it > and will continue to follow this thread. > > Good luck, > > Callum > > On Tue, 14 Mar 2023 at 13:05, L S wrote: > >> Hi, >> >> We are trying to upgrade from Opensips 3.2.10 to 3.2.11, but we are >> running to an issue with registrations. It's the same server, same opensips >> cfg file, but 3.2.10 allows/authorizes the registrations, but 3.2.11 >> returns 401 Unauthorized. >> >> The code that checks the credentials is: >> >> if (is_method("REGISTER|SUBSCRIBE")) { >> $avp(password)="xyz"; >> if (!pv_www_authorize("")) { >> www_challenge(""); >> exit; >> }; >> consume_credentials(); >> } >> >> Again it's same code, the same physical server. What might be causing >> this? >> >> Thanks, >> Matt >> _______________________________________________ >> Users mailing list >> Users at lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > > > > *0333 332 0000 | x-on.co.uk | ** > > ** | **Practice Index Reviews > * > > *Our new office address: 22 Riduna Park, Melton IP12 1QT.* > > X-on is a trading name of Storacall Technology Ltd a limited company > registered in England and Wales. > Registered Office : Glebe Farm, Down Street, Dummer, Basingstoke, > Hampshire, England RG25 2AD. Company Registration No. 2578478. > The information in this e-mail is confidential and for use by the > addressee(s) only. If you are not the intended recipient, please notify > X-on immediately on +44(0)333 332 0000 and delete the > message from your computer. If you are not a named addressee you must not > use, disclose, disseminate, distribute, copy, print or reply to this email. Views > or opinions expressed by an individual > within this email may not necessarily reflect the views of X-on or its > associated companies. Although X-on routinely screens for viruses, > addressees should scan this email and any attachments > for viruses. X-on makes no representation or warranty as to the absence of > viruses in this email or any attachments. > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- *Gabe Shepard* *Architect, Advanced Applications* Phone: 941 960-8205 Email: gshepard at sangoma.com Website: www.sangoma.com [image: Facebook] [image: Linkedin] [image: Twitter] [image: Youtube] -------------- next part -------------- An HTML attachment was scrubbed... URL: From spanda at 3clogic.com Thu Mar 16 05:48:41 2023 From: spanda at 3clogic.com (Sasmita Panda) Date: Thu, 16 Mar 2023 11:18:41 +0530 Subject: [OpenSIPS-Users] Nedd some clarifications on proto_hep module in opensips 3.2 Message-ID: Hi All , I am using opensips 3.2 which is sending out sip traffic to Homer . *Till now I am configuring the Homer server IP inside the openisps config . In case the IP changes then I have to update the config and restart the service . * Is there any process to save the IP on DB and reload opensips memory if the Ip get updated in the DB ? *Restarting the service for this is not acceptable in our production environment . Please help if there is any such way ?* *Thanks & Regards* *Sasmita Panda* *Senior Network Testing and Software Engineer* *3CLogic , ph:07827611765* -------------- next part -------------- An HTML attachment was scrubbed... URL: From sobomax at sippysoft.com Thu Mar 16 17:19:08 2023 From: sobomax at sippysoft.com (Maxim Sobolev) Date: Thu, 16 Mar 2023 10:19:08 -0700 Subject: [OpenSIPS-Users] 3.2.11 vs 3.2.10 authorization In-Reply-To: References: Message-ID: Should be fixed here, thanks for reporting: https://github.com/OpenSIPS/opensips/commit/d71fbacea6557cc9532e1ac894e41d12800f8e69 Please test and let me know if the problem persists. Regards, Maksym On Wed, Mar 15, 2023 at 9:36 AM Gabe Shepard via Users < users at lists.opensips.org> wrote: > Hi, > We've run into this as well. Doing a git bisect appears to point to > commit 72610573a637f1bad60ba07061e05d1652cb93e0 which is related to qop > validation. If it helps, I've been testing with a Polycom VVX 450 running > firmware 6.4.3. > > -Gabe > > On Tue, Mar 14, 2023 at 4:39 PM Callum Guy wrote: > >> Hi Matt, >> >> You are not alone, I have just performed the same update and ran into the >> same problem! >> >> No config changes, just an opensips package update on a CentOS 7 server. >> >> My only lead so far is the server referring to a stale nonce in its >> reply, this may be a red herring as I reverted so quickly I don't have much >> data! >> >> SIP/2.0 401 Unauthorized >> Via: SIP/2.0/WSS >> 4dd4fgrikg9v.invalid;received=99.100.77.236;rport=59260;branch=z9hG4bK2984131 >> To: > >;tag=8dca.7f4e487b9989bf9b0212db1e9a1410a8 >> From: ;tag=ad8qlo9gaq >> Call-ID: 2cjev1ph5gr0m2337tur >> CSeq: 3 REGISTER >> WWW-Authenticate: Digest realm="fr-1.rtc.example.net", >> nonce="j9+Qf6N87TeziTRHnWacqtUl3wCf8nvD2I9jm21q+48A", *stale=true* >> Content-Length: 0 >> >> I'll set up a test lab tomorrow and see if I can get to the bottom of it >> and will continue to follow this thread. >> >> Good luck, >> >> Callum >> >> On Tue, 14 Mar 2023 at 13:05, L S wrote: >> >>> Hi, >>> >>> We are trying to upgrade from Opensips 3.2.10 to 3.2.11, but we are >>> running to an issue with registrations. It's the same server, same opensips >>> cfg file, but 3.2.10 allows/authorizes the registrations, but 3.2.11 >>> returns 401 Unauthorized. >>> >>> The code that checks the credentials is: >>> >>> if (is_method("REGISTER|SUBSCRIBE")) { >>> $avp(password)="xyz"; >>> if (!pv_www_authorize("")) { >>> www_challenge(""); >>> exit; >>> }; >>> consume_credentials(); >>> } >>> >>> Again it's same code, the same physical server. What might be causing >>> this? >>> >>> Thanks, >>> Matt >>> _______________________________________________ >>> Users mailing list >>> Users at lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >> >> >> >> *0333 332 0000 | x-on.co.uk | ** >> >> ** | **Practice Index Reviews >> * >> >> *Our new office address: 22 Riduna Park, Melton IP12 1QT.* >> >> X-on is a trading name of Storacall Technology Ltd a limited company >> registered in England and Wales. >> Registered Office : Glebe Farm, Down Street, Dummer, Basingstoke, >> Hampshire, England RG25 2AD. Company Registration No. 2578478. >> The information in this e-mail is confidential and for use by the >> addressee(s) only. If you are not the intended recipient, please notify >> X-on immediately on +44(0)333 332 0000 and delete the >> message from your computer. If you are not a named addressee you must not >> use, disclose, disseminate, distribute, copy, print or reply to this email. Views >> or opinions expressed by an individual >> within this email may not necessarily reflect the views of X-on or its >> associated companies. Although X-on routinely screens for viruses, >> addressees should scan this email and any attachments >> for viruses. X-on makes no representation or warranty as to the absence >> of viruses in this email or any attachments. >> >> _______________________________________________ >> Users mailing list >> Users at lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > > > -- > *Gabe Shepard* > *Architect, Advanced Applications* > Phone: 941 960-8205 > Email: gshepard at sangoma.com > Website: www.sangoma.com > [image: Facebook] [image: Linkedin] > [image: Twitter] > [image: Youtube] > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Maksym Sobolyev Sippy Software, Inc. Internet Telephony (VoIP) Experts Tel (Canada): +1-778-783-0474 Tel (Toll-Free): +1-855-747-7779 Fax: +1-866-857-6942 Web: http://www.sippysoft.com MSN: sales at sippysoft.com Skype: SippySoft -------------- next part -------------- An HTML attachment was scrubbed... URL: From gshepard at sangoma.com Thu Mar 16 18:50:03 2023 From: gshepard at sangoma.com (Gabe Shepard) Date: Thu, 16 Mar 2023 14:50:03 -0400 Subject: [OpenSIPS-Users] 3.2.11 vs 3.2.10 authorization In-Reply-To: References: Message-ID: Hi Maksym, I pulled that commit to the latest in the 3.2 branch and it appears to be working properly now. Thanks for your quick response! -Gabe On Thu, Mar 16, 2023 at 1:19 PM Maxim Sobolev wrote: > Should be fixed here, thanks for reporting: > > > https://github.com/OpenSIPS/opensips/commit/d71fbacea6557cc9532e1ac894e41d12800f8e69 > > Please test and let me know if the problem persists. > > Regards, > > Maksym > > On Wed, Mar 15, 2023 at 9:36 AM Gabe Shepard via Users < > users at lists.opensips.org> wrote: > >> Hi, >> We've run into this as well. Doing a git bisect appears to point to >> commit 72610573a637f1bad60ba07061e05d1652cb93e0 which is related to qop >> validation. If it helps, I've been testing with a Polycom VVX 450 running >> firmware 6.4.3. >> >> -Gabe >> >> On Tue, Mar 14, 2023 at 4:39 PM Callum Guy wrote: >> >>> Hi Matt, >>> >>> You are not alone, I have just performed the same update and ran into >>> the same problem! >>> >>> No config changes, just an opensips package update on a CentOS 7 server. >>> >>> My only lead so far is the server referring to a stale nonce in its >>> reply, this may be a red herring as I reverted so quickly I don't have much >>> data! >>> >>> SIP/2.0 401 Unauthorized >>> Via: SIP/2.0/WSS >>> 4dd4fgrikg9v.invalid;received=99.100.77.236;rport=59260;branch=z9hG4bK2984131 >>> To: >> >;tag=8dca.7f4e487b9989bf9b0212db1e9a1410a8 >>> From: ;tag=ad8qlo9gaq >>> Call-ID: 2cjev1ph5gr0m2337tur >>> CSeq: 3 REGISTER >>> WWW-Authenticate: Digest realm="fr-1.rtc.example.net", >>> nonce="j9+Qf6N87TeziTRHnWacqtUl3wCf8nvD2I9jm21q+48A", *stale=true* >>> Content-Length: 0 >>> >>> I'll set up a test lab tomorrow and see if I can get to the bottom of it >>> and will continue to follow this thread. >>> >>> Good luck, >>> >>> Callum >>> >>> On Tue, 14 Mar 2023 at 13:05, L S wrote: >>> >>>> Hi, >>>> >>>> We are trying to upgrade from Opensips 3.2.10 to 3.2.11, but we are >>>> running to an issue with registrations. It's the same server, same opensips >>>> cfg file, but 3.2.10 allows/authorizes the registrations, but 3.2.11 >>>> returns 401 Unauthorized. >>>> >>>> The code that checks the credentials is: >>>> >>>> if (is_method("REGISTER|SUBSCRIBE")) { >>>> $avp(password)="xyz"; >>>> if (!pv_www_authorize("")) { >>>> www_challenge(""); >>>> exit; >>>> }; >>>> consume_credentials(); >>>> } >>>> >>>> Again it's same code, the same physical server. What might be causing >>>> this? >>>> >>>> Thanks, >>>> Matt >>>> _______________________________________________ >>>> Users mailing list >>>> Users at lists.opensips.org >>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>> >>> >>> >>> >>> *0333 332 0000 | x-on.co.uk | ** >>> >>> ** | **Practice Index Reviews >>> * >>> >>> *Our new office address: 22 Riduna Park, Melton IP12 1QT.* >>> >>> X-on is a trading name of Storacall Technology Ltd a limited company >>> registered in England and Wales. >>> Registered Office : Glebe Farm, Down Street, Dummer, Basingstoke, >>> Hampshire, England RG25 2AD. Company Registration No. 2578478. >>> The information in this e-mail is confidential and for use by the >>> addressee(s) only. If you are not the intended recipient, please notify >>> X-on immediately on +44(0)333 332 0000 and delete the >>> message from your computer. If you are not a named addressee you must >>> not use, disclose, disseminate, distribute, copy, print or reply to this >>> email. Views or opinions expressed by an individual >>> within this email may not necessarily reflect the views of X-on or its >>> associated companies. Although X-on routinely screens for viruses, >>> addressees should scan this email and any attachments >>> for viruses. X-on makes no representation or warranty as to the absence >>> of viruses in this email or any attachments. >>> >>> _______________________________________________ >>> Users mailing list >>> Users at lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >> >> >> -- >> *Gabe Shepard* >> *Architect, Advanced Applications* >> Phone: 941 960-8205 >> Email: gshepard at sangoma.com >> Website: www.sangoma.com >> [image: Facebook] [image: Linkedin] >> [image: Twitter] >> [image: Youtube] >> >> _______________________________________________ >> Users mailing list >> Users at lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > > > -- > Maksym Sobolyev > Sippy Software, Inc. > Internet Telephony (VoIP) Experts > Tel (Canada): +1-778-783-0474 > Tel (Toll-Free): +1-855-747-7779 > Fax: +1-866-857-6942 > Web: http://www.sippysoft.com > MSN: sales at sippysoft.com > Skype: SippySoft > -- *Gabe Shepard* *Architect, Advanced Applications* Phone: 941 960-8205 Email: gshepard at sangoma.com Website: www.sangoma.com [image: Facebook] [image: Linkedin] [image: Twitter] [image: Youtube] -------------- next part -------------- An HTML attachment was scrubbed... URL: From bogdan at opensips.org Wed Mar 22 15:05:25 2023 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Wed, 22 Mar 2023 17:05:25 +0200 Subject: [OpenSIPS-Users] [Blog] API driven SIP User-Agent end-point with OpenSIPS 3.4 Message-ID: Hi all, Here is post on a new OpenSIPS 3.4 feature, mainly how to use OpenSIPS as */a mixed (SIP and non-SIP) back-to-back/*, with a User-Agent entity (server or client) on one side and some */custom logic on the other side, API controlling what how the SIP side should behave/*. https://blog.opensips.org/2023/03/22/api-driven-sip-user-agent-end-point-with-opensips-3-4/ Best regards, -- Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit 2023, Houston, US https://www.opensips.org/events/Summit-2023Houston/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From razvan at opensips.org Thu Mar 23 08:11:02 2023 From: razvan at opensips.org (=?UTF-8?Q?R=c4=83zvan_Crainea?=) Date: Thu, 23 Mar 2023 10:11:02 +0200 Subject: [OpenSIPS-Users] WSS errors In-Reply-To: <91JRNQHdI7d5QYzAfxfsgDYa7eDEk7M4xoHP-PWvYuB32qjYxhI1_ycVnVrgB3SYQ6evEgGrIDLq58dav6bXxMQMbutkhjiuPjhO5f6Izj8=@proton.me> References: <34ff4431-be7e-4cef-6a64-f129ef3d9b42@opensips.org> <91JRNQHdI7d5QYzAfxfsgDYa7eDEk7M4xoHP-PWvYuB32qjYxhI1_ycVnVrgB3SYQ6evEgGrIDLq58dav6bXxMQMbutkhjiuPjhO5f6Izj8=@proton.me> Message-ID: <823ee341-3553-5f35-1aaf-1597d8ca1469@opensips.org> On 2/20/23 19:04, Pat M via Users wrote: > Hello Razvan Son > > I am too facing this issue, does the ping need to come from the mobile client or from opensips itself? It doesn't matter, as both will generate traffic both ways, hence keep the connection open. Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com From razvan at opensips.org Thu Mar 23 08:11:49 2023 From: razvan at opensips.org (=?UTF-8?Q?R=c4=83zvan_Crainea?=) Date: Thu, 23 Mar 2023 10:11:49 +0200 Subject: [OpenSIPS-Users] WSS errors In-Reply-To: References: <34ff4431-be7e-4cef-6a64-f129ef3d9b42@opensips.org> <91JRNQHdI7d5QYzAfxfsgDYa7eDEk7M4xoHP-PWvYuB32qjYxhI1_ycVnVrgB3SYQ6evEgGrIDLq58dav6bXxMQMbutkhjiuPjhO5f6Izj8=@proton.me> Message-ID: On 2/21/23 17:39, nutxase via Users wrote: > Hi Razvan > > Thanks for the reply > > Would you mind clarifying if i must enable the ping from the webrtc client or if there is a specific paramater i am missing in my opensips config > Yes, you should enable pinging in opensips, either using nathelper module or nat_traversal module. Best regards, Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com From bogdan at opensips.org Thu Mar 23 14:03:23 2023 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Thu, 23 Mar 2023 16:03:23 +0200 Subject: [OpenSIPS-Users] [Blog] B2BUA Bridging Improvements In OpenSIPS 3.4 Message-ID: <52cc0b0d-5949-bf54-13dc-37ceaf8b527a@opensips.org> Hi all, More on OpenSIPS 3.4 and the B2B support - the call re-bridging was reworked in order to address some */potential reliability and interoperability issues/*, but also to provide more features as /*on-hold/media injection during bridging and bridging failover*/. https://blog.opensips.org/2023/03/23/b2bua-bridging-improvements-in-opensips-3-4/ Enjoy and see you in Houston for the Summit, -- Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit 2023, Houston, US https://www.opensips.org/events/Summit-2023Houston/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.zanutti at gmail.com Fri Mar 24 13:49:51 2023 From: daniel.zanutti at gmail.com (Daniel Zanutti) Date: Fri, 24 Mar 2023 10:49:51 -0300 Subject: [OpenSIPS-Users] Check status of routes loading - drouting Message-ID: Hi Is there a way to check the status of initial loading of routes, on the drouting module? If routes are being loaded after a cold start, I want to do some alternate routing. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From callum.guy at x-on.co.uk Fri Mar 24 14:22:45 2023 From: callum.guy at x-on.co.uk (Callum Guy) Date: Fri, 24 Mar 2023 14:22:45 +0000 Subject: [OpenSIPS-Users] Check status of routes loading - drouting In-Reply-To: References: Message-ID: Hi Daniel, I believe you're looking for this feature as included since 3.3 https://www.opensips.org/Documentation/Interface-StatusReport-3-3 Enjoy, Callum On Fri, 24 Mar 2023 at 14:19, Daniel Zanutti wrote: > Hi > > Is there a way to check the status of initial loading of routes, on the > drouting module? > > If routes are being loaded after a cold start, I want to do some alternate > routing. > > Thanks > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- *0333 332 0000  |  x-on.co.uk   |   **      **  |  **Practice Index Reviews * *Our new office address: 22 Riduna Park, Melton IP12 1QT.* X-on is a trading name of Storacall Technology Ltd a limited company registered in England and Wales. Registered Office : Glebe Farm, Down Street, Dummer, Basingstoke, Hampshire, England RG25 2AD. Company Registration No. 2578478. The information in this e-mail is confidential and for use by the addressee(s) only. If you are not the intended recipient, please notify X-on immediately on +44(0)333 332 0000 and delete the message from your computer. If you are not a named addressee you must not use, disclose, disseminate, distribute, copy, print or reply to this email. Views or opinions expressed by an individual within this email may not necessarily reflect the views of X-on or its associated companies. Although X-on routinely screens for viruses, addressees should scan this email and any attachments for viruses. X-on makes no representation or warranty as to the absence of viruses in this email or any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From venefax at gmail.com Sat Mar 25 02:37:56 2023 From: venefax at gmail.com (Saint Michael) Date: Fri, 24 Mar 2023 22:37:56 -0400 Subject: [OpenSIPS-Users] SIP Call ID duplicated on 3.1.14 Message-ID: I have on a typical day many calls that arrive twice, same SIP CALL ID, almost the same time, maybe the next millisecond. This happens because the dialer does not wait for a confirmation, and resends the same call multiple times. But it confuses my CDR. Is there a way to check for the CALL ID and discard the INVITE if there is another INVITE already in progress? -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.zanutti at gmail.com Sat Mar 25 13:44:21 2023 From: daniel.zanutti at gmail.com (Daniel Zanutti) Date: Sat, 25 Mar 2023 10:44:21 -0300 Subject: [OpenSIPS-Users] Check status of routes loading - drouting In-Reply-To: References: Message-ID: Exactly! Thanks On Fri, Mar 24, 2023 at 11:25 AM Callum Guy wrote: > Hi Daniel, > > I believe you're looking for this feature as included since 3.3 > > https://www.opensips.org/Documentation/Interface-StatusReport-3-3 > > Enjoy, > > Callum > > On Fri, 24 Mar 2023 at 14:19, Daniel Zanutti > wrote: > >> Hi >> >> Is there a way to check the status of initial loading of routes, on the >> drouting module? >> >> If routes are being loaded after a cold start, I want to do some >> alternate routing. >> >> Thanks >> >> _______________________________________________ >> Users mailing list >> Users at lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > > > > *0333 332 0000 | x-on.co.uk | ** > > ** | **Practice Index Reviews > * > > *Our new office address: 22 Riduna Park, Melton IP12 1QT.* > > X-on is a trading name of Storacall Technology Ltd a limited company > registered in England and Wales. > Registered Office : Glebe Farm, Down Street, Dummer, Basingstoke, > Hampshire, England RG25 2AD. Company Registration No. 2578478. > The information in this e-mail is confidential and for use by the > addressee(s) only. If you are not the intended recipient, please notify > X-on immediately on +44(0)333 332 0000 and delete the > message from your computer. If you are not a named addressee you must not > use, disclose, disseminate, distribute, copy, print or reply to this email. Views > or opinions expressed by an individual > within this email may not necessarily reflect the views of X-on or its > associated companies. Although X-on routinely screens for viruses, > addressees should scan this email and any attachments > for viruses. X-on makes no representation or warranty as to the absence of > viruses in this email or any attachments. > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.zanutti at gmail.com Sat Mar 25 13:46:36 2023 From: daniel.zanutti at gmail.com (Daniel Zanutti) Date: Sat, 25 Mar 2023 10:46:36 -0300 Subject: [OpenSIPS-Users] SIP Call ID duplicated on 3.1.14 In-Reply-To: References: Message-ID: Hi Federico Yes it does, need to create the transaction inside your script: https://opensips.org/html/docs/modules/3.2.x/tm.html#func_t_newtran This will avoid opensips handling the duplicated invite as a new call. On Fri, Mar 24, 2023 at 11:40 PM Saint Michael wrote: > I have on a typical day many calls that arrive twice, same SIP CALL ID, > almost the same time, maybe the next millisecond. This happens because the > dialer does not wait for a confirmation, and resends the same call multiple > times. But it confuses my CDR. > Is there a way to check for the CALL ID and discard the INVITE if there is > another INVITE already in progress? > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From venefax at gmail.com Sat Mar 25 14:35:58 2023 From: venefax at gmail.com (Saint Michael) Date: Sat, 25 Mar 2023 10:35:58 -0400 Subject: [OpenSIPS-Users] SIP Call ID duplicated on 3.1.14 In-Reply-To: References: Message-ID: I use 3.1, is that applicable? On Sat, Mar 25, 2023 at 9:49 AM Daniel Zanutti wrote: > Hi Federico > > Yes it does, need to create the transaction inside your script: > https://opensips.org/html/docs/modules/3.2.x/tm.html#func_t_newtran > > This will avoid opensips handling the duplicated invite as a new call. > > > On Fri, Mar 24, 2023 at 11:40 PM Saint Michael wrote: > >> I have on a typical day many calls that arrive twice, same SIP CALL ID, >> almost the same time, maybe the next millisecond. This happens because the >> dialer does not wait for a confirmation, and resends the same call multiple >> times. But it confuses my CDR. >> Is there a way to check for the CALL ID and discard the INVITE if there >> is another INVITE already in progress? >> >> _______________________________________________ >> Users mailing list >> Users at lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.zanutti at gmail.com Sun Mar 26 12:11:51 2023 From: daniel.zanutti at gmail.com (Daniel Zanutti) Date: Sun, 26 Mar 2023 09:11:51 -0300 Subject: [OpenSIPS-Users] SIP Call ID duplicated on 3.1.14 In-Reply-To: References: Message-ID: Yes, since 1.x it's there. On Sat, Mar 25, 2023 at 11:38 AM Saint Michael wrote: > I use 3.1, is that applicable? > > > On Sat, Mar 25, 2023 at 9:49 AM Daniel Zanutti > wrote: > >> Hi Federico >> >> Yes it does, need to create the transaction inside your script: >> https://opensips.org/html/docs/modules/3.2.x/tm.html#func_t_newtran >> >> This will avoid opensips handling the duplicated invite as a new call. >> >> >> On Fri, Mar 24, 2023 at 11:40 PM Saint Michael wrote: >> >>> I have on a typical day many calls that arrive twice, same SIP CALL ID, >>> almost the same time, maybe the next millisecond. This happens because the >>> dialer does not wait for a confirmation, and resends the same call multiple >>> times. But it confuses my CDR. >>> Is there a way to check for the CALL ID and discard the INVITE if there >>> is another INVITE already in progress? >>> >>> _______________________________________________ >>> Users mailing list >>> Users at lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >> _______________________________________________ >> Users mailing list >> Users at lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bogdan at opensips.org Tue Mar 28 14:52:58 2023 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Tue, 28 Mar 2023 17:52:58 +0300 Subject: [OpenSIPS-Users] [Blog] OpenSIPS Summit 2023, T-2 months to launch Message-ID: Hi all, Why US, why Houston, why you should join OpenSIPS Summit? Here are some good reasons for that :) https://blog.opensips.org/2023/03/28/opensips-summit-2023-t-2-months-to-launch/ -- Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit 2023, Houston, US https://www.opensips.org/events/Summit-2023Houston/ From jjackson at aninetworks.net Wed Mar 29 23:06:19 2023 From: jjackson at aninetworks.net (Joseph Jackson) Date: Wed, 29 Mar 2023 23:06:19 +0000 Subject: [OpenSIPS-Users] Prometheus Exporter Message-ID: Hey List, If anyone has been looking for a prometheus exporter for OpenSIPS I can't reccomend Dialog Insight from Ryan over at Piratel. https://github.com/rrb3942/dialoginsight I've been running it on one of our proxies and have had zero issues. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jjackson at aninetworks.net Wed Mar 29 23:08:13 2023 From: jjackson at aninetworks.net (Joseph Jackson) Date: Wed, 29 Mar 2023 23:08:13 +0000 Subject: [OpenSIPS-Users] Prometheus Exporter In-Reply-To: References: Message-ID: I can't recommend them enough! Sorry I'm sick and kinda brain dead at the momment. /sigh ________________________________ From: Users on behalf of Joseph Jackson Sent: Wednesday, March 29, 2023 6:06 PM To: users at lists.opensips.org Subject: [OpenSIPS-Users] Prometheus Exporter Hey List, If anyone has been looking for a prometheus exporter for OpenSIPS I can't reccomend Dialog Insight from Ryan over at Piratel. https://github.com/rrb3942/dialoginsight I've been running it on one of our proxies and have had zero issues. ________________________________ From: Users on behalf of Joseph Jackson Sent: Wednesday, March 29, 2023 6:06 PM To: users at lists.opensips.org Subject: [OpenSIPS-Users] Prometheus Exporter Hey List, If anyone has been looking for a prometheus exporter for OpenSIPS I can't reccomend Dialog Insight from Ryan over at Piratel. https://github.com/rrb3942/dialoginsight I've been running it on one of our proxies and have had zero issues. -------------- next part -------------- An HTML attachment was scrubbed... URL: From venefax at gmail.com Thu Mar 30 05:40:52 2023 From: venefax at gmail.com (Saint Michael) Date: Thu, 30 Mar 2023 01:40:52 -0400 Subject: [OpenSIPS-Users] looking for PCAP to CDR utility Message-ID: Is there any command line tool for Linux (ubuntu 20.04 or better) that can generate opensips SIP CDR from a group of large *.pcap files that only contain SIP information? I have not found it. I tried with tshark and it would take a lot of coding to get this done. I am looking for these fields fields="method,from_tag,to_tag,callid,sip_code,sip_reason,time,orig_fu,orig_ru,out_fu,out_ru,source_ip,dst_ip,lrn,rate,provrate,jurisd,rounding,minsec,singlecharge,setuptime,closetime,duration,ms_duration" one record per call of course -------------- next part -------------- An HTML attachment was scrubbed... URL: From kwem at gmx.de Thu Mar 30 05:53:48 2023 From: kwem at gmx.de (Karsten Wemheuer) Date: Thu, 30 Mar 2023 07:53:48 +0200 Subject: [OpenSIPS-Users] looking for PCAP to CDR utility In-Reply-To: References: Message-ID: <625000add549e9c236f9baa4332753f96ee13655.camel@gmx.de> Hi, maybe You can use ngrep (converting pcap to text) and than a lot of scripting in the language of Your choice. Have a nice day Karsten Am Donnerstag, dem 30.03.2023 um 01:40 -0400 schrieb Saint Michael: > Is there any command line tool for Linux (ubuntu 20.04 or better) > that can generate opensips SIP CDR from a group of large *.pcap files > that only contain SIP information? > I have not found it. I tried with tshark and it would take a lot of > coding to get this done. I am looking for these fields > > fields="method,from_tag,to_tag,callid,sip_code,sip_reason,time,orig_ > fu,orig_ru,out_fu,out_ru,source_ip,dst_ip,lrn,rate,provrate,jurisd,ro > unding,minsec,singlecharge,setuptime,closetime,duration,ms_duration" > one record per call of course > > > > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users From venefax at gmail.com Thu Mar 30 10:21:39 2023 From: venefax at gmail.com (Saint Michael) Date: Thu, 30 Mar 2023 06:21:39 -0400 Subject: [OpenSIPS-Users] looking for PCAP to CDR utility In-Reply-To: <625000add549e9c236f9baa4332753f96ee13655.camel@gmx.de> References: <625000add549e9c236f9baa4332753f96ee13655.camel@gmx.de> Message-ID: I am alradybusing tshark and awk, but I thought that there was some tools written to do this Federico On Thu, Mar 30, 2023, 1:55 AM Karsten Wemheuer wrote: > Hi, > > maybe You can use ngrep (converting pcap to text) and than a lot of > scripting in the language of Your choice. > > Have a nice day > > Karsten > > Am Donnerstag, dem 30.03.2023 um 01:40 -0400 schrieb Saint Michael: > > Is there any command line tool for Linux (ubuntu 20.04 or better) > > that can generate opensips SIP CDR from a group of large *.pcap files > > that only contain SIP information? > > I have not found it. I tried with tshark and it would take a lot of > > coding to get this done. I am looking for these fields > > > > fields="method,from_tag,to_tag,callid,sip_code,sip_reason,time,orig_ > > fu,orig_ru,out_fu,out_ru,source_ip,dst_ip,lrn,rate,provrate,jurisd,ro > > unding,minsec,singlecharge,setuptime,closetime,duration,ms_duration" > > one record per call of course > > > > > > > > > > _______________________________________________ > > Users mailing list > > Users at lists.opensips.org > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pratik.patel19970128 at gmail.com Thu Mar 30 12:52:00 2023 From: pratik.patel19970128 at gmail.com (Pratik Patel) Date: Thu, 30 Mar 2023 18:22:00 +0530 Subject: [OpenSIPS-Users] TLS and WSS Opensips Listen Message-ID: Hello I want to make my opensips listen as wss same like FreeSWITCH but facing issue with opensips : I am working on opensips with wss and tls configuration but facing below Error : 140010946856256:error:1409445C:SSL routines:ssl3_read_bytes:tlsv13 alert certificate required:../ssl/record/rec_layer_s3.c:1543:SSL alert number 116 openssl s_client -connect abc.com:7443 -servername abc.com In opensips.cfg code : https://pastebin.com/Bn9fc70Z -------------- next part -------------- An HTML attachment was scrubbed... URL: From razvan at opensips.org Thu Mar 30 13:26:10 2023 From: razvan at opensips.org (=?UTF-8?Q?R=c4=83zvan_Crainea?=) Date: Thu, 30 Mar 2023 16:26:10 +0300 Subject: [OpenSIPS-Users] TLS and WSS Opensips Listen In-Reply-To: References: Message-ID: Hi, Pratik! As the error clearly says, you are requiring a certificate in your configuration file, but not providing one when running the openssl command. Best regards, Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com On 3/30/23 15:52, Pratik Patel wrote: > Hello > > I want to make my opensips listen as wss same like FreeSWITCH but facing > issue with opensips : > > I am working on opensips with wss and tls configuration but facing below > Error : > 140010946856256:error:1409445C:SSL routines:ssl3_read_bytes:tlsv13 alert > certificate required:../ssl/record/rec_layer_s3.c:1543:SSL alert number 116 > > openssl s_client -connect abc.com:7443 -servername > abc.com > In opensips.cfg code : > > https://pastebin.com/Bn9fc70Z > > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users From pratik.patel19970128 at gmail.com Thu Mar 30 14:13:49 2023 From: pratik.patel19970128 at gmail.com (Pratik Patel) Date: Thu, 30 Mar 2023 19:43:49 +0530 Subject: [OpenSIPS-Users] TLS and WSS Opensips Listen In-Reply-To: References: Message-ID: Hi Rizwan, I am really sorry for that I am posting first time my question about opensips and I have not clear idea which channel I will get responses. I will take care of that now . I have done this wss with TLS on freeswitch there working fine with same certificate but when on opensips when try to configure wss with TLS facing issue . I have done pastbin url that I have configured . In freeswitch I have added some pem files in /etc/freeswitch/TLS/ chain.pem cafile.pem fullchain.pem privkey.pem wss.pem Then restart freeswitch service and it's start working. So I have pointed same domain to my opensips and copy all certificate to /etc/opensips/tls/ And check some documents as per that I have configured on opensips.cfg but not able to connect that was url from my web client . Can you please share steps and documents something that I will prefer or generate let's encrypted certificate that use to do enable TLS with wss in opensips. On Thu, Mar 30, 2023, 18:58 Răzvan Crainea wrote: > Hi, Pratik! > > As the error clearly says, you are requiring a certificate in your > configuration file, but not providing one when running the openssl command. > > Best regards, > > Răzvan Crainea > OpenSIPS Core Developer > http://www.opensips-solutions.com > > On 3/30/23 15:52, Pratik Patel wrote: > > Hello > > > > I want to make my opensips listen as wss same like FreeSWITCH but facing > > issue with opensips : > > > > I am working on opensips with wss and tls configuration but facing below > > Error : > > 140010946856256:error:1409445C:SSL routines:ssl3_read_bytes:tlsv13 alert > > certificate required:../ssl/record/rec_layer_s3.c:1543:SSL alert number > 116 > > > > openssl s_client -connect abc.com:7443 > -servername > > abc.com > > In opensips.cfg code : > > > > https://pastebin.com/Bn9fc70Z > > > > > > _______________________________________________ > > Users mailing list > > Users at lists.opensips.org > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pratik.patel19970128 at gmail.com Thu Mar 30 16:31:54 2023 From: pratik.patel19970128 at gmail.com (Pratik Patel) Date: Thu, 30 Mar 2023 22:01:54 +0530 Subject: [OpenSIPS-Users] TLS and WSS Opensips Listen In-Reply-To: References: Message-ID: If I will set require_cert 0 in the tls_mgm module then able to register and make a call but when the destination person answers the call then the below error I get in Syslog : ERROR:tls_openssl:openssl_tls_blocking_write: TLS send timeout (100) Mar 30 16:26:41 opensips[154227]: Mar 30 16:26:41 [154227] ERROR:proto_wss:ws_client_handshake: cannot start handshake Mar 30 16:26:41 opensips[154227]: Mar 30 16:26:41 [154227] ERROR:proto_wss:ws_connect: cannot complete WebSocket handshake Mar 30 16:26:41 opensips[154227]: Mar 30 16:26:41 [154227] ERROR:tls_openssl:openssl_tls_blocking_write: TLS send timeout (100) Mar 30 16:26:41 opensips[154227]: Mar 30 16:26:41 [154227] ERROR:tls_openssl:openssl_tls_conn_shutdown: something wrong in SSL: 1, 11, Resource temporarily unavailable Mar 30 16:26:41 opensips[154227]: Mar 30 16:26:41 [154227] ERROR:tls_openssl:tls_print_errstack: TLS errstack: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init Mar 30 16:26:41 opensips[154227]: Mar 30 16:26:41 [154227] ERROR:proto_wss:proto_wss_send: connect failed Mar 30 16:26:41 opensips[154227]: Mar 30 16:26:41 [154227] ERROR:core:msg_send: send() to 11.11.11.11:5060 for proto wss/6 failed On Thu, Mar 30, 2023 at 7:43 PM Pratik Patel wrote: > Hi Rizwan, > > I am really sorry for that I am posting first time my question about > opensips and I have not clear idea which channel I will get responses. > > I will take care of that now . > > I have done this wss with TLS on freeswitch there working fine with same > certificate but when on opensips when try to configure wss with TLS facing > issue . > > I have done pastbin url that I have configured . > > In freeswitch I have added some pem files in /etc/freeswitch/TLS/ > > chain.pem > cafile.pem > fullchain.pem > privkey.pem > wss.pem > > Then restart freeswitch service and it's start working. > > So I have pointed same domain to my opensips and copy all certificate to > /etc/opensips/tls/ > > And check some documents as per that I have configured on opensips.cfg but > not able to connect that was url from my web client . > > Can you please share steps and documents something that I will prefer or > generate let's encrypted certificate that use to do enable TLS with wss in > opensips. > > > > On Thu, Mar 30, 2023, 18:58 Răzvan Crainea wrote: > >> Hi, Pratik! >> >> As the error clearly says, you are requiring a certificate in your >> configuration file, but not providing one when running the openssl >> command. >> >> Best regards, >> >> Răzvan Crainea >> OpenSIPS Core Developer >> http://www.opensips-solutions.com >> >> On 3/30/23 15:52, Pratik Patel wrote: >> > Hello >> > >> > I want to make my opensips listen as wss same like FreeSWITCH but >> facing >> > issue with opensips : >> > >> > I am working on opensips with wss and tls configuration but facing >> below >> > Error : >> > 140010946856256:error:1409445C:SSL routines:ssl3_read_bytes:tlsv13 >> alert >> > certificate required:../ssl/record/rec_layer_s3.c:1543:SSL alert number >> 116 >> > >> > openssl s_client -connect abc.com:7443 >> -servername >> > abc.com >> > In opensips.cfg code : >> > >> > https://pastebin.com/Bn9fc70Z >> > >> > >> > _______________________________________________ >> > Users mailing list >> > Users at lists.opensips.org >> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> _______________________________________________ >> Users mailing list >> Users at lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alberto.rinaudo at gmail.com Thu Mar 30 16:52:21 2023 From: alberto.rinaudo at gmail.com (Alberto) Date: Thu, 30 Mar 2023 17:52:21 +0100 Subject: [OpenSIPS-Users] python module Message-ID: Hi, I'm curious, since python_exec only accepts one extra parameter, how do you guys pass multiple variables to a python function? I personally do this: $json(args) := "{}"; $json(args/param0) = "sdifuhsidfg"; $json(args/param1) = "asfagfgf"; $json(args/param2) = "asfergerghdf"; python_exec("python_my_fn", $json(args)); and then I restore the json object in the python function and use my variables.. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From kwem at gmx.de Fri Mar 31 09:35:54 2023 From: kwem at gmx.de (Karsten Wemheuer) Date: Fri, 31 Mar 2023 11:35:54 +0200 Subject: [OpenSIPS-Users] looking for PCAP to CDR utility In-Reply-To: References: <625000add549e9c236f9baa4332753f96ee13655.camel@gmx.de> Message-ID: <85fe439c7524034b738fc1f128d47404304e2fbe.camel@gmx.de> Hi Frederico, I unfortunately do not know about the output format of tshark. With ngrep you can use "-W byline" to make sure that the SIP messages are displayed line by line. Have a nice weekend, Karsten Am Donnerstag, dem 30.03.2023 um 06:21 -0400 schrieb Saint Michael: > I am alradybusing tshark and awk, but I thought that there was some > tools written to do this > > Federico > > On Thu, Mar 30, 2023, 1:55 AM Karsten Wemheuer wrote: > > Hi, > > > > maybe You can use ngrep (converting pcap to text) and than a lot of > > scripting in the language of Your choice. > > > > Have a nice day > > > > Karsten > > > > Am Donnerstag, dem 30.03.2023 um 01:40 -0400 schrieb Saint Michael: > > > Is there any command line tool for Linux (ubuntu 20.04 or better) > > > that can generate opensips SIP CDR from a group of large *.pcap > > files > > > that only contain SIP information? > > > I have not found it. I tried with tshark and it would take a lot > > of > > > coding to get this done. I am looking for these fields > > > > > > > > fields="method,from_tag,to_tag,callid,sip_code,sip_reason,time,orig > > _ > > fu,orig_ru,out_fu,out_ru,source_ip,dst_ip,lrn,rate,provrate,jurisd, > > ro > > unding,minsec,singlecharge,setuptime,closetime,duration,ms_duration > > " > > > one record per call of course > > > > > > > > > > > > > > > _______________________________________________ > > > Users mailing list > > > Users at lists.opensips.org > > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > _______________________________________________ > > Users mailing list > > Users at lists.opensips.org > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users From apsaras at microbase.gr Fri Mar 3 14:37:47 2023 From: apsaras at microbase.gr (Antonis Psaras) Date: Fri, 03 Mar 2023 14:37:47 -0000 Subject: [OpenSIPS-Users] 183 to 180 manipulation without external application In-Reply-To: <4768f206-b627-12d7-7dba-f8ab5501c0a0@democon.be> References: <26d101d94dd2$c7f6ee20$57e4ca60$@microbase.gr> <4768f206-b627-12d7-7dba-f8ab5501c0a0@democon.be> Message-ID: <27c301d94ddd$8a4e78d0$9eeb6a70$@microbase.gr> Yes. I managed to do that with the following code onreply_route[REPLY] { if(t_check_status("183")) { change_reply_status("180", "Ringing"); } } Thank you for your reply Antonis Psaras 14 Iteas Str., Argyroupoli, 16452, Athens, Greece Tel: +30.21200.05300 | Fax: +30.21200.05800 www.microbase.gr From: Users On Behalf Of johan Sent: Παρασκευή, 3 Μαρτίου 2023 16:03 To: users at lists.opensips.org Subject: Re: [OpenSIPS-Users] 183 to 180 manipulation without external application Just rewerite the status line ? On 3/03/2023 14:19, Antonis Psaras wrote: I am trying to figure a way to translate 183 mes -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 801 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 905 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 768 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.png Type: image/png Size: 1269 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image006.png Type: image/png Size: 15117 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6640 bytes Desc: not available URL: From kwe at temp.temp Fri Mar 31 09:32:54 2023 From: kwe at temp.temp (Karsten Wemheuer) Date: Fri, 31 Mar 2023 11:32:54 +0200 Subject: [OpenSIPS-Users] looking for PCAP to CDR utility In-Reply-To: References: <625000add549e9c236f9baa4332753f96ee13655.camel@gmx.de> Message-ID: Hi Frederico, I unfortunately do not know about the output format of tshark. With ngrep you can use "-W byline" to make sure that the SIP messages are displayed line by line. Have a nice weekend, Karsten Am Donnerstag, dem 30.03.2023 um 06:21 -0400 schrieb Saint Michael: > I am alradybusing tshark and awk, but I thought that there was some > tools written to do this > > Federico > > On Thu, Mar 30, 2023, 1:55 AM Karsten Wemheuer wrote: > > Hi, > > > > maybe You can use ngrep (converting pcap to text) and than a lot of > > scripting in the language of Your choice. > > > > Have a nice day > > > > Karsten > > > > Am Donnerstag, dem 30.03.2023 um 01:40 -0400 schrieb Saint Michael: > > > Is there any command line tool for Linux (ubuntu 20.04 or better) > > > that can generate opensips SIP CDR from a group of large *.pcap > > files > > > that only contain SIP information? > > > I have not found it. I tried with tshark and it would take a lot > > of > > > coding to get this done. I am looking for these fields > > > > > > > > fields="method,from_tag,to_tag,callid,sip_code,sip_reason,time,orig > > _ > > > > > fu,orig_ru,out_fu,out_ru,source_ip,dst_ip,lrn,rate,provrate,jurisd, > > ro > > > > > unding,minsec,singlecharge,setuptime,closetime,duration,ms_duration > > " > > > one record per call of course > > > > > > > > > > > > > > > _______________________________________________ > > > Users mailing list > > > Users at lists.opensips.org > > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > > > _______________________________________________ > > Users mailing list > > Users at lists.opensips.org > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users