Re: [OpenSIPS-Users] Thanks for the great online event!
Thank you guys for hosting distributed summit this year. Kudos to Max for taking care of video streaming. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] opensips-cp for 3.1
Hi Johan, Absolutely, You can use opensips-cp 3.0 for opensips 3.1 ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS legacy repos
Hi Bill, I don't about the rpm builds but you can access all the OpenSIPS source code packages from here -> https://opensips.org/pub/opensips/ And this is for 2.1.5 https://opensips.org/pub/opensips/2.1.5/ You can compile it and can use it. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Make opensips register to VoIP Provider as a trunk with auth
Hey guys, I was just curious that can we make OpenSIPS to register as a SIP endpoint to VoIP provider like Twillio. We already using IP based auth in OpenSIPS to accept calls but one of our VOIP Provider wants our OpenSIPS SBC to register with them as a SIP trunk to get calls. Does anyone got make OpenSIPS register to provider before using AUTH or Registrar module ? Thank you___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS - Log Facility partial working
Now it's working as expected. Thanks for helping. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] OpenSIPS - Log Facility partial working
Hey guys, We configured the opensips server to send the logs to log facility 1 (opensips.log), it's working fine but at the same time it's also writing logs to log facility0 (syslog). opensips.cfg -- log_level=3 log_stderror=no log_facility=LOG_LOCAL1 log_name="osips-1" rsyslog.conf - LOCAL1.* /var/log/opensips.log opensips -v version: opensips 2.4.7 (x86_64/linux) flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_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. git revision: 0f7cd0a7d main.c compiled on 07:56:19 Feb 25 2020 with gcc 6.3.0 Any help or suggestions will be highly appreciated. Thank you___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Access to listen/advertised IP Addresses
Hi Mark, If your initial goal is to get the listener IP where you received the request then you can try these variables. *$Ri* - reference to IP address of the interface where the request has been received *$Rp* - reference to the port where the message was received ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Access to listen/advertised IP Addresses
Hi Mark, If your initial goal is to get the interface IP where request is received then you can try these variables. *$Ri* - reference to IP address of the interface where the request has been received *$Rp* - reference to the port where the message was received ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Active-Pasive Dialog Replication
That's great if problem got solved. And yes you may right we need to add active tag on 2nd opensips server too. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Active-Pasive Dialog Replication
Hi, Your keepalived configuration looks good. But you need to remove set_dlg_sharing_tag("vip") form invite block on second opensips server. Follow these steps to troubleshoot your issue - 1. Remove set_dlg_sharing_tag("vip") from OpenSIPS 2nd. 2. Before making a test call make sure OpenSIPS 1 has a active tag 3. Make a test call, and check dialog - opensipsctl fifo dlg_list_ctx And make sure your dialog has a TAG attach to it. 4. Check the tag on opensips 2nd server. 5. Stop opensips service on 1st server. 6. Check tag on 2nd Opensips server. If active tag is not there then you need to troubleshoot keepalived. Let me know how it goes. Thanks you ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Active-Pasive Dialog Replication
Hi, Can you show us that how you are creating dialogs ? and where are you setting your sharing tag, like this - set_dlg_sharing_tag("vip"); Thank you ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] OpenSIPS 3- TLS MGM unable to get local issuer certificate [error=20]
Hey guys, I am struggling to make OpenSIPS 3 work with TLS. I tried various different ways to make this work but getting the same errors. SSL certs are generated via let's encrypt. Here is my config for tls_mgm module - TLS Management Module loadmodule "tls_mgm.so" # Server defination modparam("tls_mgm", "server_domain", "voip.securevoip.io") modparam("tls_mgm", "match_ip_address", "[voip.securevoip.io]155.138.204.212:5061") modparam("tls_mgm", "match_sip_domain", "[voip.securevoip.io]*") modparam("tls_mgm", "ca_dir", "[voip.securevoip.io]/usr/local/etc/opensips/tls/") modparam("tls_mgm","verify_cert", "[voip.securevoip.io]1") modparam("tls_mgm","require_cert", "[voip.securevoip.io]1") modparam("tls_mgm","tls_method", "[voip.securevoip.io]TLSv1_2") modparam("tls_mgm","certificate", "[voip.securevoip.io]/usr/local/etc/opensips/tls/cert.pem") modparam("tls_mgm","private_key", "[voip.securevoip.io]/usr/local/etc/opensips/tls/privkey.pem") modparam("tls_mgm","ca_list", "[voip.securevoip.io]/usr/local/etc/opensips/tls/fullchain.pem") modparam("tls_mgm", "tls_handshake_timeout", 300) # Client domain defination modparam("tls_mgm", "client_domain", "securevoip.io") modparam("tls_mgm", "match_ip_address", "[securevoip.io]*") modparam("tls_mgm", "match_sip_domain", "[securevoip.io]*") modparam("tls_mgm", "ca_dir", "[securevoip.io]/usr/local/etc/opensips/tls/") modparam("tls_mgm","verify_cert", "[securevoip.io]1") modparam("tls_mgm","require_cert", "[securevoip.io]1") modparam("tls_mgm","tls_method", "[securevoip.io]TLSv1_2") modparam("tls_mgm","certificate", "[securevoip.io]/usr/local/etc/opensips/tls/cert.pem") modparam("tls_mgm","private_key", "[securevoip.io]/usr/local/etc/opensips/tls/privkey.pem") I am getting these erros - Feb 22 02:25:26 opensips3-SBC /usr/local/sbin/opensips[1538]: NOTICE:tls_mgm:verify_callback: depth = 1, verify failure Feb 22 02:25:26 opensips3-SBC /usr/local/sbin/opensips[1538]: NOTICE:tls_mgm:verify_callback: subject = /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/OU=Microsoft IT/CN=Microsoft IT TLS CA 4 Feb 22 02:25:26 opensips3-SBC /usr/local/sbin/opensips[1538]: NOTICE:tls_mgm:verify_callback: issuer = /C=IE/O=Baltimore/OU=CyberTrust/CN=Baltimore CyberTrust Root Feb 22 02:25:26 opensips3-SBC /usr/local/sbin/opensips[1538]: NOTICE:tls_mgm:verify_callback: verify error: unable to get local issuer certificate [error=20] Feb 22 02:25:26 opensips3-SBC /usr/local/sbin/opensips[1538]: ERROR:proto_tls:tls_connect: New TLS connection to 52.114.132.46:5061 failed Feb 22 02:25:26 opensips3-SBC /usr/local/sbin/opensips[1538]: ERROR:proto_tls:tls_connect: TLS error: 1 (ret=-1) err=Success(0) Feb 22 02:25:26 opensips3-SBC /usr/local/sbin/opensips[1538]: ERROR:proto_tls:tls_print_errstack: TLS errstack: error:1416F086:SSL routines:tls_process_server_certificate:certificate verif I would really appreciate if someone can help me out here. Thank you___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS 3 Installation on Debian - Detailed Blog
Thanks for your feedback Liviu, I have fixed those mistakes. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] OpenSIPS 3 Installation on Debian - Detailed Blog
Hey guys, I just wrote a blog on OpenSIPS 3 installation on Debian. I hope this blog will help newbies to get started pretty quick on OpenSIPS. Please review and comment . https://www.securevoip.io/2020/02/13/how-to-install-opensips-3-from-source-on-debian/ Thank you___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Mid Registrar Presence/Subscribe - Suggestions
Hey guys, We want to add presence feature in our existing openSIPS deployment, currently we are using mid-registrar and we would like to handle BLF messages. So what you guys recommend ? that we go for XCAP server or just relay SUBSCRIBE message to the PBX instead of using presence server ? Thank You.___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Routing Question
Hi Alex, You can also use Dynamic Routing Module to route your calls. You can add regex rules and can route the call to destination gateways. https://opensips.org/html/docs/modules/2.4.x/drouting.html Thanks and Regards Sharad Kumar ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Dialplan regex help
Thank you guys. It's working now. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Dialplan regex help
Hey guys, I need your little help in regex, I have a regex that search the 9 Digits DID and append 972 as a prefix. So for example - DID - 012345678 After regex - 9720123456789 But now I want to remove the first 0 by regex so that I should get the output like this - 97212345678 These are my current regex rules - Matching Regular Expression - ^0[0-9]{8}$ Substitution Regular Expression: ^(0)([0-9]{8})$ Replacement Expression:972\2 Any help or suggestions will be appreciated. Thank you___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Call Center Module failed to load
Thanks Razvan, I will do it and will let you know. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] [Crash Report] openSIPS 2.4 clusterer module (opensipsctl fifo cluster_broadcast_mi 1 lb_reload)
Hi folks, I am encountering a segfault error, when I am trying to sync the load balancer module data among all nodes in the cluster. I have 2 nodes in cluster, and I am executing this command to reload lb module - opensipsctl fifo cluster_broadcast_mi 1 lb_reload After executing this command, the backup openSIPS node crash every time. Here are some useful logs - Jan 11 21:45:57 ip-10-0-1-20 kernel: [600109.907423] opensips[13425]: segfault at 8 ip 7efe0fa33505 sp 7ffef08390a0 error 4 in db_mysql.so[7efe0fa24000+19000] Jan 11 21:45:57 ip-10-0-1-20 /usr/local/sbin/opensips[13425]: INFO:load_balancer:mi_lb_reload: "lb_reload" MI command received! Jan 11 21:45:57 ip-10-0-1-20 /usr/local/sbin/opensips[13425]: ERROR:core:db_use_table: invalid parameter value (nil), 0x7efe0bb1eb10 Jan 11 21:45:57 ip-10-0-1-20 /usr/local/sbin/opensips[13425]: CRITICAL:core:sig_usr: segfault in process pid: 13425, id: 9 Jan 11 21:45:57 ip-10-0-1-20 /usr/local/sbin/opensips[13412]: INFO:core:handle_sigs: child process 13425 exited by a signal 11 Jan 11 21:45:57 ip-10-0-1-20 /usr/local/sbin/opensips[13412]: INFO:core:handle_sigs: core was not generated Jan 11 21:45:57 ip-10-0-1-20 /usr/local/sbin/opensips[13412]: INFO:core:handle_sigs: terminating due to SIGCHLD Please let me know if you guys need any other data to troubleshoot this issue. Thanks and regards___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Call Center Module failed to load
Hey guys, I am trying to load call_center module on openSIPS 2.4 but getting a lot of erros. Here is my configuration - # B2B Module loadmodule "b2b_entities.so" loadmodule "b2b_logic.so" modparam("b2b_logic", "script_scenario", "/usr/local/etc/opensips/scenario_callcenter.xml") # Call center module loadmodule "call_center.so" modparam("call_center", "db_url","mysql://opensipsuser:password@localhost/opensips") # CUSTOMIZE ME #modparam("call_center", "acc_db_url","mysql://password@localhost/opensips") # CUSTOMIZE ME #modparam("b2b_logic", "script_scenario", "/usr/local/etc/opensips/scenario_callcenter.xml") modparam("call_center", "b2b_scenario", "call center") modparam("call_center", "wrapup_time", 3) -- I have tried all combinations but still no luck, I also have db_default_url variable defined. And these are the error logs - Jan 10 19:29:31 98 /usr/local/sbin/opensips[1617]: INFO:dialplan:mod_init: initializing module... Jan 10 19:29:31 98 mysqld[1393]: 2020-01-10 19:29:31 28 [Warning] Aborted connection 28 to db: 'opensips' user: 'opensipsuser' host: 'localhost' (Got an error reading communication packets) Jan 10 19:29:31 98 /usr/local/sbin/opensips[1617]: INFO:call_center:mod_init: Call Center module - initializing Jan 10 19:29:31 98 /usr/local/sbin/opensips[1617]: WARNING:call_center:cc_load_db_data: table "cc_flows" empty Jan 10 19:29:31 98 /usr/local/sbin/opensips[1617]: CRITICAL:call_center:mod_init: failed to load callcenter data Jan 10 19:29:31 98 opensips[1599]: already running. Jan 10 19:29:31 98 /usr/local/sbin/opensips[1617]: ERROR:core:init_mod: failed to initialize module call_center Jan 10 19:29:31 98 systemd[1]: Started LSB: Start the OpenSIPS SIP server. Jan 10 19:29:31 98 /usr/local/sbin/opensips[1617]: ERROR:core:main: error while initializing modules Jan 10 19:29:31 98 /usr/local/sbin/opensips[1617]: INFO:core:cleanup: cleanup Jan 10 19:29:31 98 /usr/local/sbin/opensips[1617]: NOTICE:core:main: Exiting Jan 10 19:29:31 98 opensips: INFO:core:daemonize: pre-daemon process exiting with -1 I am thinking that this is mysql related issue or openSIPS bug. I have also adjusted max_allowed_packet=256M on mysql server. Please help. Thanks and regards___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Help with rtpproxy on a multihomed host.
Hi Matt, If you want to do topology hiding too in your setup, I would recommend you, to use topology hiding module instead of using B2B_LOGIC one. Thanks and Regards Sharad Kumar ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] openSIPS - Dialog Replication Error
Hi Diptesh, Thank you for the valuable information. I have already set net.ipv4.ip_nonlocal_bind =1 but still it's not working. So what I did, I set that value and then I added one IP to listen on both openSIPS instances. listen:udp:10.10.10.111:5060 listen:tcp:10.10.10.111:5060 But what's going on is, after this openSIPS is giving me weird error messages. Because both servers are on AWS and are on different regions. So they can't be on same subnet. First server is on 10.0.0.0/24 subnet. And other one is on 10.0.1.0/24. Both subnets can ping each other tho. So what I am thinking is that instead of replicating dialogs and profiles, I will just store those in the database so that when first node fails, other one can get those from the database. I know this process will add some I/O on the database. But there is no work around I guess. Thanks and regards Sharad Kumar ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] openSIPS - Dialog Replication Error
Hi guys, We are trying to do dialog replication in openSIPS2.4 cluster and getting this error - ERROR:dialog:dlg_replicated_create: Replicated dialog doesn't match caller's listening socket udp:10.0.0.21:5060 Both openSIPS are listening on different IP Addresses subnet and I am well aware of this thing that openSIPS will only do dialog replication if we have common listening interface between 2 instances. Is there any work around to achieve it ? Because we have both instances on AWS. OpenSIPS 1 - 10.0.0.21:5060 openSIPS 2 - 10.0.1.21:5060 Any help or ideas will be appreciated. Thanks___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] sipmsg_validate not detecting wrong user agent
Hi guys, We are using openSIPS for edge proxy and one of our client is sending wrong user-agent which is not compliant with RFC. This is the username which is being passed - Asterisk PBX 1.8.23.0-1_centos5.go RPM by dem...@goautodial.com\r\n Where @ is not allowed in user-agent header. We are using this function in openSIPS to validate SIP headers but this function not seems to be working and not rejecting that INVITE. if (!sipmsg_validate("shrftc")){ send_reply("400","Bad request/body"); exit; } Thank you___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users