Re: [OpenSIPS-Users] support for cloudamqp

2017-04-21 Thread Tito Cumpen
Hey Razvan, I tried the following on Opensips: subscribe_event("E_ACC_EVENT"," rabbitmq:vhostuser:p...@host.cloudamqp.com/vhostuser/queuename"); their URL string is in this format : amqp://vhostusert:p...@host.cloudamqp.com/vhostuser When Opensips tries to connect to this queue it sends /

[OpenSIPS-Users] ERROR topology_hiding_match() and WSS

2017-04-21 Thread Dragomir Haralambiev
Hello, I have problem with "topology_hiding_match()" and WSS. Zoiper ---(send BYE)--> Opensips --(can not relay to)---> SIP.JS Here part ot script: if (has_totag()) { if (topology_hiding_match()) { t_relay(); exit; } ... Opensips receive BYE. When execute "t_relay()" give follow ERRORS: INFO:

Re: [OpenSIPS-Users] python module - bug and questions

2017-04-21 Thread Maxim Sobolev
Robert, what Bogdan says is essentially correct. The OpenSIPS itself is not using any threads AFAIK, therefore python module code is kept as simple as possible. Now back to the original question: we use quite a lot of python code in our routing and some of the python modules that are running are ac

Re: [OpenSIPS-Users] opensips 2.3 crashed on user reg - mid_registrar

2017-04-21 Thread Liviu Chircu
Hi Achintha, If you are using usrloc with DB persistence and you reloaded / restarted your OpenSIPS, this is a known issue (ticket #1094 [1]). The logs look almost identical - let me know if this is not the case, and we'll take a better look at it. Regards, [1]: https://github.com/OpenSIPS/

Re: [OpenSIPS-Users] How to convert BYE to CANCEL( status code 480)

2017-04-21 Thread benjamin.cropley
I agree with Ben Newlin. Pradee – are you trying to simulate a ‘broken call’? Eg one that stops working, as opposed to a BYE indicating that it has ended ‘cleanly’? Ben Cropley Sent from my Windows 10 phone From: Newlin, Ben Sent: 21 April 2017 12:50 To: OpenSIPS users mailling list Subject: R

Re: [OpenSIPS-Users] How to convert BYE to CANCEL( status code 480)

2017-04-21 Thread Newlin, Ben
What you are asking to do breaks the protocol rules of SIP. Neither Opensips nor any other SIP proxy will do it. I am not sure which you actually wanted as the result as CANCEL and 480 are not the same thing, but you cannot convert a BYE into either one. A CANCEL has to refer to an in-progress

Re: [OpenSIPS-Users] uac_registrant module and TCP

2017-04-21 Thread Bogdan-Andrei Iancu
Hi Peter, In TCP, you cannot control the port used to fire a new TCP connection - this is selected by the kernel. Still, the UAS side will reply back to the originating port (as the trace shows). The fact the uac_registrant does not see the 401 is not necessarily because of the TCP connection

[OpenSIPS-Users] How to convert BYE to CANCEL( status code 480)

2017-04-21 Thread Pradeepa Gurusinghe
Hi, I'm using opensip as a load balancer in front of Freeswitch nodes. Opensips Version 1.11 is used for a reason and can't change the version. When an INVITE comes from mobile to Freeswitch through Opensips, call will be answered. Then at the end of call, Freeswitch sends BYE to Opensips. I wa

[OpenSIPS-Users] How to convert BYE to CANCEL with status code 480

2017-04-21 Thread Pradeepa
Hi, I'm using opensip as a load balancer in front of Freeswitch nodes. Opensips Version 1.11 is used for a reason and can't change the version. When an INVITE comes from mobile to Freeswitch through Opensips, call will be answered. Then at the end of call, Freeswitch sends BYE to Opensips. I

[OpenSIPS-Users] opensips 2.3 crashed on user reg - mid_registrar

2017-04-21 Thread Achintha
hi all, i configured opensips 2.3 beta on centos 7 then i configured mid-registrar module and freeswitch server as main registrar. first user registered properly but opensips is crashed when second user registration with following console-log Apr 21 08:29:41 [17198] DBG:core:udp_read_re

Re: [OpenSIPS-Users] Ghost calls 1001

2017-04-21 Thread Uzair Hassan
thank you, i added this to my opensips.cfg file and it started successfully. Lets see if it works. From: "Nabeel" To: "users" Sent: Friday, April 21, 2017 2:23:52 AM Subject: Re: [OpenSIPS-Users] Ghost calls 1001 In case the call is attempted via your server, you can add the following to

Re: [OpenSIPS-Users] Ghost calls 1001

2017-04-21 Thread Schneur Rosenberg
Sending a 200 ok will notify the hacker that a sip server exists on the IP/port, simply ignoring the request is best. On Apr 21, 2017 12:20 PM, "johan de clercq" wrote: > Another approach is sending 200 ok and then exit(). > > > > *From:* Users [mailto:users-boun...@lists.opensips.org] *On Behal

Re: [OpenSIPS-Users] support for cloudamqp

2017-04-21 Thread Răzvan Crainea
Hi, Tito! I've just made a free cloudamqp account for testing and used the new rabbitmq module to send a message in the queue. The message was not published initially due to the fact that I was using the "immediate" flag, (I was receiving NOT_IMPLEMENTED, probably because the free account lac

Re: [OpenSIPS-Users] Ghost calls 1001

2017-04-21 Thread Nabeel
In case the call is attempted via your server, you can add the following to opensips.cfg to block sip scanners: if($ua=~"friendly-scanner") { xlog("L_ERROR", "Auth error for $fU@$fd from $si method $rm user-agent (friendly-scanner)\n"); drop(); exit; } if($ua=~"sipv

Re: [OpenSIPS-Users] uac_registrant module and TCP

2017-04-21 Thread Peter Baines (lists)
Hi Bogdan, Yes you are correct, it is a retransmission. I've specifed port 5060 as the forced_socket in the registrant table but opensips (1.2.3.4 below) doesn't use it. Is there a way to force uac_registrant to use 5060, or alternatively make the uac_registrant module listen for replies on whate

Re: [OpenSIPS-Users] Ghost calls 1001

2017-04-21 Thread johan de clercq
Another approach is sending 200 ok and then exit(). From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Schneur Rosenberg Sent: Friday, April 21, 2017 11:00 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Ghost calls 1001 User agent variable is stored in

Re: [OpenSIPS-Users] Ghost calls 1001

2017-04-21 Thread Schneur Rosenberg
User agent variable is stored in $ua do a if and drop() Regarding iptables do something like this https://community.freepbx.org/t/stop-sipvicious-friendly-scanner/28580 On Apr 21, 2017 10:12 AM, "Uzair Hassan" wrote: > Is there any documentation I could read to understand the process you jus

Re: [OpenSIPS-Users] uac_registrant module and TCP

2017-04-21 Thread Bogdan-Andrei Iancu
Hi Pete, Looking to the logs, I see only one line : Apr 21 09:58:56 dev01 /usr/local/opensips_2.2/sbin/opensips[4766]: DBG:uac_registrant:reg_tm_cback: tm [0x7f2ceb70b2f0] notification cb for FAKED_REPLY [408] reply at [1492761536] The "reg_tm_cback" is the TM callback used to report back to

Re: [OpenSIPS-Users] How to now if Cflags == NAT ?

2017-04-21 Thread Bogdan-Andrei Iancu
Hi Rodrigo, After doing the lookup(location), you can do : if ( isbflagset("NAT") ) {} Best regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Summit May 2017 Amsterdam http://www.opensips.org/events/Summit-2017Amsterdam.html On 04

Re: [OpenSIPS-Users] Advise on proposed HVOIP/SIPT infrastructure with OpenSIPS

2017-04-21 Thread Bogdan-Andrei Iancu
Hi Marty, As a high level blueprint, it looks ok - I suggest using in OpenSIPs the new FreeSWITCH integration for better load balancing : https://blog.opensips.org/2017/03/01/freeswitch-driven-routing-in-opensips-2-3/ and using topo hiding in OpenSIPS to avoid exposing the FS IP addresses. Be

Re: [OpenSIPS-Users] python module - bug and questions

2017-04-21 Thread Bogdan-Andrei Iancu
Hi Robert, The only question I can answer is 1) - OpenSIPS it is a multi-process application (and not using threads). How the python module is design (from threading perspective), I do not know - maybe Maxim, the author of this module can help with this. Regards, Bogdan-Andrei Iancu Open

Re: [OpenSIPS-Users] opensips logging format

2017-04-21 Thread Bogdan-Andrei Iancu
As an extra note here . When logging via syslog, the time and pid part are formated by syslog itself. When logging to stderr, opensips emulates the syslog formating for consistency reasons. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenS

Re: [OpenSIPS-Users] Need some help for configuring more servers sharing the same DB.

2017-04-21 Thread Bogdan-Andrei Iancu
Hi Sasmita, Sharing the contacts themselves is not really enough - as you have WS endpoints, they use TCP connections, which can be initiated by end-point only (the registrar cannot). So if an endpoint registers with R1 server and, sharing the contacts, the R2 server tries to deliver a call to

[OpenSIPS-Users] uac_registrant module and TCP

2017-04-21 Thread Peter Baines (lists)
Hello, I am trying to use the uac_registrant module (2.2) to register via TCP but when it recieves the 401 it is not adding the Authorization header. It does work with UDP so I get: REGISTER -> 401 (with WWW-Authenticate) -> REGISTER (with Authorization) -> 200 OK However when I tell it to use

Re: [OpenSIPS-Users] drop_replies and drop_requests statistics counters

2017-04-21 Thread Bogdan-Andrei Iancu
Hi Søren, The drop stats are incremented if one of the modules (like B2B) indicates that the SIP message should be discarded (before getting into the script). Maybe your messages look like B2B related, but the B2B cannot find the matching sessions ? Could you provide more info on how you get

Re: [OpenSIPS-Users] ERROR when receive INVITE

2017-04-21 Thread Răzvan Crainea
Hi, Dragomir! Most likely OpenSIPS B is too old and cannot parse WSS transport. You could sort this out by doing topology hiding on OpenSIPS A. Best regards, Răzvan Crainea OpenSIPS Solutions www.opensips-solutions.com On 04/20/2017 11:52 PM, Dragomir Haralambiev wrote: Hello, I make tes

Re: [OpenSIPS-Users] Ghost calls 1001

2017-04-21 Thread Uzair Hassan
Is there any documentation I could read to understand the process you just described? On April 20, 2017 11:15:54 PM Schneur Rosenberg wrote: In addition to iptables/fail2ban you should inspect the useragent that the packets come from, most of them will come from sip vicious or friendly sca