Re: [OpenSIPS-Users] Passing of PN params from Linphone to opensips
Hi Ruben, I am also working with Linphone on IOS, Mac and Windows. I also followed the stepes in https://blog.opensips.org/2020/05/07/sip-push-notification-with-opensips-3-1-lts-rfc-8599-supportpart-i/ and part ii I have actually succeeded to pass the credentials for the Linphone Callkit Tutorial. For the pushnotifications to work must pass them to the provider. In your example all these are empty: "+pn-provider="";+pn-prid="";+pn-param=""". I have not been able to pass the params for Linphone IOS. They get rejected by apns apple push notification service as: {"reason":"BadDeviceToken"} In Linphone IOS you have to turn on Push Notifications my logs for show the: The first new argument, pn_provider is: apns The second new argument, pn_prid is: DAAEB86C0B1AA01477835A95B1180551AD9698923AE63CFAF68DDA5C7F5F9A49:voip:remote The third new argument, pn_param is: ABCD1234.org.linphone.phone.voip The third new argument, pn_param is new2: org.linphone.phone.voip Regards, Ronald Geerligs May 31, 2024 at 1:24 PM, "Bogdan-Andrei Iancu" wrote: > > Hi Ruben, > > Could you post the at least the full Contact hdr you have? > > Regards, > > Bogdan-Andrei Iancu > > OpenSIPS Founder and Developer > https://www.opensips-solutions.com/ > https://www.siphub.com/ > > On 13.05.2024 00:06, Ruben Heusel wrote: > > > > > Hey all, > > > > i have an opensips running and followed > > > > https://blog.opensips.org/2020/05/07/sip-push-notification-with-opensips-3-1-lts-rfc-8599-supportpart-i/ > > > > to enable Push Notification support. > > I can connect to the opensips server with linphone, but the PN params > > i pass are not recognized. > > > > DBG:core:parse_params: Parsing params > > > > for:[message-expires=2419200;+pn-provider="";+pn-prid="";+pn-param="";+sip.instance="";+org.linphone.specs="lime"] > > DBG:core:pn_inspect_request: Contact URI has no PN params > > > > I have no idea how to troubleshoot this and would appreciate any help. > > > > Regards > > > > ___ > > Users mailing list > > Users@lists.opensips.org > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Webrtc LB Opensips 3.1
Hi, I guess something based on DNS, considering the fact that there is nothing between the clients and the deployments. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com https://www.siphub.com On 29.05.2024 17:16, inderjeet sharma wrote: Hi Team, I'm using OpenSIPS and RTPEngine for JSSIP/WebRTC, and it's working fine. However, I plan to run the same setup in parallel and load balance the traffic between these two deployments. Could you suggest a solution [JSSIP Client] / \ / \ [OpenSIPS + RTPEngine Deployment 1] [OpenSIPS + RTPEngine Deployment 2] \ / \ / [Asterisk Server] Thanks Inderjeet ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] opensips nat question
Hi, And what's the actual question ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com https://www.siphub.com On 27.05.2024 12:18, suifeng wrote: HI,I has an NAT question; img one: [...] img two: Use fix_nated_sdp(10) processing: [] opensips version OpenSIPS (3.2.17 (x86_64/linux)) opensips.cfg part context: route{ if (nat_uac_test(23)) { if (is_method("REGISTER")) { setbflag("NAT"); fix_nated_register(); xlog("request nat: $fd, rd: $rd, ru: $ru"); xlog("request -1"); } if (is_method("INVITE")){ xlog("request invite: $fd, rd: $rd, ru: $ru"); fix_nated_contact(); add_rr_param(";nat=yes"); xlog("request -2"); } } if (is_method("INVITE") && has_body("application/sdp")) { xlog("request 13-1si:[$si],cs:[$cs],uri:[uri]"); fix_nated_sdp(10); } } ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Passing of PN params from Linphone to opensips
Hi Ruben, Could you post the at least the full Contact hdr you have? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com https://www.siphub.com On 13.05.2024 00:06, Ruben Heusel wrote: Hey all, i have an opensips running and followed https://blog.opensips.org/2020/05/07/sip-push-notification-with-opensips-3-1-lts-rfc-8599-supportpart-i/ to enable Push Notification support. I can connect to the opensips server with linphone, but the PN params i pass are not recognized. DBG:core:parse_params: Parsing params for:[message-expires=2419200;+pn-provider="";+pn-prid="";+pn-param="";+sip.instance="";+org.linphone.specs="lime"] DBG:core:pn_inspect_request: Contact URI has no PN params I have no idea how to troubleshoot this and would appreciate any help. Regards ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Tracer module integration with Opensips 3.4
Your college Chaker pushed the same question, just check my reply there ;) Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com https://www.siphub.com On 08.05.2024 17:53, amel.gue...@sofrecom.com wrote: Hello, Any help please regarding my question ? Thank you BR, Amel *De :*GUESMI Amel SOFRECOM *Envoyé :* lundi 29 avril 2024 10:57 *À :* OpenSIPS users mailling list *Cc :* DL FT-FR Sbc TEAM *Objet :* Tracer module integration with Opensips 3.4 Hello Everyone, I need your support to add tracer module in order tostore incoming/outgoing SIP messages in database. I already add some configs to my opensips.cfg file: *### Tracer ###* *loadmodule "tracer.so"* *modparam("tracer", "trace_on", 1)* *modparam("tracer", "trace_local_ip", "opensips:5060")* *modparam("tracer", "trace_id","[tid]uri=mysql://opensips:opensipsrw@ossdb/opensips;table=sip_trace;") **….* *if ( is_method("INVITE")) {* *record_route();* *do_accounting("db|log", "cdr|missed", "acc");* *trace($var(trace_id), "d", "sip|xlog", $var(user));* ** * t_relay();* *exit;* *}* ** The error in Opensips logs is: ERROR:core:db_check_api: module db_mysql does not export db_use_table function 2024-04-25 09:29:10 Apr 25 10:29:10 [52] ERROR:tracer:get_db_struct: *unable to bind database module* 2024-04-25 09:29:10 Apr 25 10:29:10 [52] ERROR:tracer:parse_siptrace_id: Invalid parameters extracted!url ! table name ! 2024-04-25 09:29:10 Apr 25 10:29:10 [52] ERROR:tracer:parse_trace_id: *failed to parse tracer uri []* 2024-04-25 09:29:10 Apr 25 10:29:10 [52] CRITICAL:Traceback (last included file at the bottom): 2024-04-25 09:29:10 Apr 25 10:29:10 [52] CRITICAL: 0. /etc/opensips/opensips.cfg 2024-04-25 09:29:10 Apr 25 10:29:10 [52] CRITICAL:core:yyerror: parse error in /etc/opensips/opensips.cfg:53:19-20: *Parameter not found in module - can't set* 2024-04-25 09:29:10 Apr 25 10:29:10 [52] CRITICAL:modparam("tracer", "trace_on", 1) 2024-04-25 09:29:10 Apr 25 10:29:10 [52] CRITICAL:modparam("tracer", "trace_local_ip", "opensips:5060") 2024-04-25 09:29:10 Apr 25 10:29:10 [52] CRITICAL:modparam("tracer", "trace_id","[tid]uri=mysql://opensips:opensipsrw@ossdb/opensips;table=sip_trace;") I think that the module should store the messages in sip_trace table but I didn’t understand how to configure properly the trace_id with mysql module. Could you help me please ? Thank you. Best Regards, Amel on behalf of my colleague Chaker ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] route handling of http protocol in opensips
Hi Anmol, May I ask why do you want to handle HTTP custom traffic in OpenSIPS, which is a SIP server? Best regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com https://www.siphub.com On 01.05.2024 07:12, ANMOL PRAKASH via Users wrote: Hi all, Is there any module in opensips inline with xHTTP in kamailio. In kamailio, xHTTP module offers a generic way of handling the HTTP protocol, by calling event_route[xhttp:request] in your config. In opensips, httpd module is there to enable http server on opensips but I am looking for handling of HTTP protocol in opensips. Any help will be highly appreciated. Thanks & Regards Anmol Prakash (5273) C-DOT DELHI INDIA --- ::Disclaimer:: --- The contents of this email and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on C-DOT. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of C-DOT. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. --- ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Tracer module integration with Opensips 3.4
Hi, Quick one: do you load the db_mysql.so module too ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com https://www.siphub.com On 25.04.2024 11:31, chaker.barka...@sofrecom.com wrote: Hello Everyone, I need your support to add tracer module in order tostore incoming/outgoing SIP messages in database. I already add some configs to my opensips.cfg file: *### Tracer ###* *loadmodule "tracer.so"* *modparam("tracer", "trace_on", 1)* *modparam("tracer", "trace_local_ip", "opensips:5060")* *modparam("tracer", "trace_id","[tid]uri=mysql://opensips:opensipsrw@ossdb/opensips;table=sip_trace;") **….* *if ( is_method("INVITE")) {* *record_route();* *do_accounting("db|log", "cdr|missed", "acc");* *trace($var(trace_id), "d", "sip|xlog", $var(user));* ** * t_relay();* *exit;* *}* ** The error in Opensips logs is: ERROR:core:db_check_api: module db_mysql does not export db_use_table function 2024-04-25 09:29:10 Apr 25 10:29:10 [52] ERROR:tracer:get_db_struct: *unable to bind database module* 2024-04-25 09:29:10 Apr 25 10:29:10 [52] ERROR:tracer:parse_siptrace_id: Invalid parameters extracted!url ! table name ! 2024-04-25 09:29:10 Apr 25 10:29:10 [52] ERROR:tracer:parse_trace_id: *failed to parse tracer uri []* 2024-04-25 09:29:10 Apr 25 10:29:10 [52] CRITICAL:Traceback (last included file at the bottom): 2024-04-25 09:29:10 Apr 25 10:29:10 [52] CRITICAL: 0. /etc/opensips/opensips.cfg 2024-04-25 09:29:10 Apr 25 10:29:10 [52] CRITICAL:core:yyerror: parse error in /etc/opensips/opensips.cfg:53:19-20: *Parameter not found in module - can't set* 2024-04-25 09:29:10 Apr 25 10:29:10 [52] CRITICAL:modparam("tracer", "trace_on", 1) 2024-04-25 09:29:10 Apr 25 10:29:10 [52] CRITICAL:modparam("tracer", "trace_local_ip", "opensips:5060") 2024-04-25 09:29:10 Apr 25 10:29:10 [52] CRITICAL:modparam("tracer", "trace_id","[tid]uri=mysql://opensips:opensipsrw@ossdb/opensips;table=sip_trace;") I think that the module should store the messages in sip_trace table but I didn’t understand how to configure properly the trace_id with mysql module. Could you help me please ? Thank you. Best Regards, Chaker BARKAOUI. Orange Restricted ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips as proxy for Asterisk
Hi, What exact part is not working for you? The REGISTERs? or the INVITEs? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com https://www.siphub.com On 11.04.2024 13:58, Sterlin Devanish wrote: Hi friends, I am new to opensips. I am working on handling Background calls for Flutter WebRTC clients using Asterisk. Since Asterisk doesn't support RFC8599, I am trying to configure opensips as a proxy server for Asterisk. I am using mid_registrar to forward the registration request from opensips to asterisk. It is perfectly working for SIP signaling, whereas for WebSockets the request is not reaching the asterisk from opensips. Kindly help me where I am going wrong, or help me handle this scenario. /Thanks,/ /*Sterlin Devanish D*/ ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Long reload time for mi tls_reload for 200 tls/ssl certs
Hi Denys, The report shows OpenSSL library doing small SHM allocations (4, 10, 608, 24... bytes), which seem to frequently take place inside the PEM_read_bio_X509() loop (as part of the load_certificate_db() function). Such a sequence of allocations could be stress-testing the allocator in a way that could justify 250 ms per certificate in total, as it is fragmenting the memory. The effect can be more pronounced the *less* stuff is going on in your OpenSIPS instance, as the process of breaking up the big memory chunk into smaller units may use up to hundreds of cycles on each allocation. For example: testing box with no SIP traffic, or 'tls_reload' after a fresh restart, etc. Please try the following: - still using F_MALLOC, try doing more 'tls_reload' operations in a row. Does performance improve? - try using the "-a HP_MALLOC" allocator when booting your OpenSIPS - that one favors memory fragmentation a bit more, so subsequent reloads should be faster Best regards, Liviu Chircu www.twitter.com/liviuchircu | www.opensips-solutions.com On 14.05.2024 16:47, Denys Pozniak wrote: I disabled logging and added some resources to the virtual machine. On a working OpenSIPS, I reloaded the tls several times and in parallel ran a trap. #opensips-cli -x mi tls_reload #opensips-cli -x trap If possible, please analyze it again, maybe you could find something interesting: https://github.com/denyspozniak/opensips_tls_debug/tree/main Thanks in advance! ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users