Re: [SR-Users] IPv6 addresses in dispatcher.list file

2017-02-15 Thread Sergey Okhapkin
I use sip:[X:X:X:X::X:1]:5060 format, it works fine to me. On Thursday, February 16, 2017 02:25:29 AM Joel Serrano | VOZELIA wrote: > Hi, > > What is the correct format for the dispatcher.list file using IPv6? > > I have the following file: > > $ cat /etc/kamailio/dispatcher.list > # $Id$ > # d

Re: [SR-Users] Best way to log incoming/outgoing sip messages?

2017-01-20 Thread Sergey Okhapkin
Use xlog function. See $mb core variable documentation. On Friday, January 20, 2017 10:27:03 PM Pranathi Venkatayogi wrote: > Hi, > What is the best way to get a complete dump of incoming/outgoing SIP > messages of Kamailio server? I encountered “SIPTrace” module, but it > writes to database. I

Re: [SR-Users] IP-based security + registrations

2016-12-08 Thread Sergey Okhapkin
Sure you can. Look at "permissions" module, allow_source_address() function. On Thursday, December 08, 2016 05:48:39 PM JLL wrote: > Hello, > > > > I would like to know if anyone can help me accomplish the following: > > > > I have a Kamailio server (4.2.3 on CentOS 7 x64) and 5 Asterisk ser

Re: [SR-Users] Location Table In db_mode 3

2016-09-24 Thread Sergey Okhapkin
I'd avoid slow innodb engine for "temporary" frequently changing tables like location. Use MyISAM engine instead for the table. On Saturday 24 September 2016 19:37:22 Phil Lavin wrote: > Did you have a look at > innodb_flush_log_at_trx_commit b-param

Re: [SR-Users] Error 2002 (HY000) creating database kamailio

2016-09-21 Thread Sergey Okhapkin
Is mysql server running? On Wednesday 21 September 2016 08:30:48 Diogenes Marcano wrote: > Iam new in kamailio. > When I try to create the data base with kamdbctl y have the following error > > root@diogenes-Inspiron-1525:/usr/local/sbin# kamdbctl create > MySQL password for root: > INFO: test s

Re: [SR-Users] [KAMAILIO]: How to count three or more invalid REGISTERs from the same IP-address

2016-06-19 Thread Sergey Okhapkin
Log error message on unsuccessful REGISTER and let fail2ban do the rest. Anyway you're running fail2ban, don't you? On Sunday 19 June 2016 21:19:42 Яцко Эллад Геннадьевич wrote: > Hello! > > How to detect several unsuccessful REGISTER attempts from the same IP? > > For example: a malicious user

Re: [SR-Users] IPv6 Only client-rtp proxy configuration

2016-06-07 Thread Sergey Okhapkin
Why do you need rtpproxy for IPv6 first of all? Rtpproxy was invented to avoid ipv4 NAT issues, NAT should not be used with IPv6. On Tuesday 07 June 2016 15:11:19 aman jeff wrote: > Hi team, > > How to do the Configuration of Kamailio+RTP-Proxy for SER in IPv6, > Currently I can establish SIP Se

Re: [SR-Users] How long will be client online in kamailio server since client is forcely closed

2016-02-20 Thread Sergey Okhapkin
It depends on the client's settings, the expiry parameter from the client on registration. On Saturday 20 February 2016 09:29:45 sgy wrote: > Hi All, > If the client is forcely closed, the client will be shown as online > state in kamailio when I run the command: "kamctl online". How long wil

Re: [SR-Users] Kamailio - Asterisk: Handling loss of SIP BYE and dangling channels

2016-01-08 Thread Sergey Okhapkin
RTP timeout in asterisk is the best place to handle the situation. Another option is SIP session timer, but it could give false negatives with NATed clients. On Friday 08 January 2016 11:56:51 Benjamin Fitzgerald wrote: > Hi, > > I'm wondering what the best approach to handling a SIP dialog whe

[SR-Users] Media address family

2015-11-26 Thread Sergey Okhapkin
What is the best way to find out address family (IPV4 or IPV6) of media in SDP? My goal is to reject INVITEs which have different address families in headers and SDP, i.e. IPv4 INVITE with IPv6 media address in SDP and vice versa. ___ SIP Express Rout

Re: [SR-Users] crash on using the $expires variable

2015-11-26 Thread Sergey Okhapkin
Confirmed, I'm getting crash too. On Thursday 26 November 2015 13:05:57 Jayesh Nambiar wrote: > Hi, > I am trying to extract out the expires value from the incoming REGISTER > request. It might be present in the Contact header or as a separate Expires > header and hence I planned to use the $expir

Re: [SR-Users] SIP Packet identifier

2015-05-19 Thread Sergey Okhapkin
Why not log the SIP message itself to the same syslog? On May 19, 2015 12:46:34 AM EDT, jay binks wrote: >So im logging lots of information to Syslog to assist our helpdesk in >diagnosing customer issues. > >Im seeing LOTS of user agents that re-use the sip Call-ID ( especially >in >registers ).

Re: [SR-Users] Continent Code GeoIP module, kamailio 4.2

2015-03-11 Thread Sergey Okhapkin
ds. > > On the other hand, I can rename it in the old module if people prefer > other variant. > > Cheers, > Daniel > > On 11/03/15 19:14, Sergey Okhapkin wrote: > > Why the pvar name is contid when the entity name is continent code? > > > > On Wednesday

Re: [SR-Users] Continent Code GeoIP module, kamailio 4.2

2015-03-11 Thread Sergey Okhapkin
attribute > > name for > > continent id as for geoip module, to be coherent. > > > > Cheers, > > Daniel > > > > On 11/03/15 15:34, Sergey Okhapkin wrote: > > > The patch to return continent code in geoip2 module attach

Re: [SR-Users] Continent Code GeoIP module, kamailio 4.2

2015-03-11 Thread Sergey Okhapkin
08, Rene Montilva wrote: > > I am trying to separate from continent to have rtp more dynamic to > > simplify the assignment, the geoip i'm working on v1 > > > > On Tue, Mar 10, 2015 at 7:22 PM, Sergey Okhapkin > > > > mailto:s...@sokhapkin.dyndns.

Re: [SR-Users] Continent Code GeoIP module, kamailio 4.2

2015-03-10 Thread Sergey Okhapkin
Hmm, I can add continent code pvar to geoip2 module in kamailio trunk. Is it really useful instead of country code? On Tuesday 10 March 2015 19:03:35 Rene Montilva wrote: > Hi list > > i'm trying to configure rtp engine routing by source ip, i'd like divide it > by continent code, is there any p

Re: [SR-Users] how can I use WITH_IPAUTH when the IP may be stored in the DB as a FQDN?

2015-03-08 Thread Sergey Okhapkin
Authentication by IP address must be done by IP address only, DNS names must not be allowed. Period. By definition. What you want can be achieved with dns_int_match_ip() function provided by ipops module. But keep in mind it is slow because of DNS lookup. On Sunday 08 March 2015 13:38:52 canuck

Re: [SR-Users] source websocket ip address

2015-02-26 Thread Sergey Okhapkin
The same way like for other transports - $si. On Thursday 26 February 2015 18:11:39 jaflong jaflong wrote: > On a request received over websocket how can the ip address of the http > server that jssip library connected through and send the call from be know? > > _

Re: [SR-Users] RTPEngine IPv4 to IPv6 bridging returning c=IN IP4 0.0.0.0 on answer?

2015-02-24 Thread Sergey Okhapkin
Which IP address has been sent to carrier in SDP offer? GLOBAL_IPv6 or EXTERNAL_IPv4? On Tuesday 24 February 2015 19:20:15 Anthony Messina wrote: > This is probably very likely a configuration issue on my part, but I wanted > to check before reporting an RTPEngine bug... > > Thank you for any po

Re: [SR-Users] allow_trusted and ipv6 addresses

2015-02-24 Thread Sergey Okhapkin
Looks like I found a solution: create function toint(num int) returns int NO SQL begin return num; end; select toint(1) as grp returns LONG datatype. On Monday 23 February 2015 17:42:30 Sergey Okhapkin wrote: > I think the problem is not in the source column type, but in casts. I found &

Re: [SR-Users] allow_trusted and ipv6 addresses

2015-02-23 Thread Sergey Okhapkin
on out there. > > Cheers, > Daniel > > On 23/02/15 21:23, Sergey Okhapkin wrote: > > Address() functions are incompatible with mysql views/casts, > > reload_address_table() expects columns grp, mask and port to be type > > DB1_INT (mysql LONG) but views and casts alway

Re: [SR-Users] allow_trusted and ipv6 addresses

2015-02-23 Thread Sergey Okhapkin
Daniel > > On 23/02/15 03:49, Sergey Okhapkin wrote: > > allow_trusted() function of permissions module doesn't work right with > > ipv6 > > addresses - it treats IP addresses as strings and doesn't take i

[SR-Users] allow_trusted and ipv6 addresses

2015-02-22 Thread Sergey Okhapkin
allow_trusted() function of permissions module doesn't work right with ipv6 addresses - it treats IP addresses as strings and doesn't take into account variations aaa:bbb::0 vs aaa:bbb:0:0:0:0:0:0. ___ SIP Express Router (SER) and Kamailio (OpenSER) -

Re: [SR-Users] xhttp module and IPv6

2015-02-20 Thread Sergey Okhapkin
Gecko) Chrome/40.0.2214.93 Safari/537.36 Response Headers Connection:upgrade Content-Length:0 Sec-WebSocket-Accept:AnL9/ez1KsQtmMjyM2/b4FDqQPE= Sec-WebSocket-Protocol:sip Server:CWU SIP GW Sia:SIP/2.0/TCP [2601:3:8840:A:172E:9CAD:6BB2:3F69]:45464 Upgrade:websocket On Friday 20 February 2015 15:24:09 S

Re: [SR-Users] xhttp module and IPv6

2015-02-20 Thread Sergey Okhapkin
Works but something is still wrong: Feb 20 15:19:32 east /usr/local/sbin/kamailio[31935]: INFO:

[SR-Users] xhttp module and IPv6

2015-02-20 Thread Sergey Okhapkin
It looks like when http request comes from ipv6 address, the module inserts Via header without [] around the address: Feb 20 14:26:17 east /usr/local/sbin/kamailio[30965]: ERROR: [parser/parse_via.c:2193]: parse_via(): ERROR:parse_via: bad port Feb 20 14:26:17 east /usr/local/sbin/kamailio[3096

Re: [SR-Users] Registrar module and ipv6 addresses

2015-02-03 Thread Sergey Okhapkin
Nevermind, that was a problem with kamailio.cfg. On Tuesday 03 February 2015 12:17:07 Sergey Okhapkin wrote: > Registrar module save() function stores "received" field in wrong format > like > > sip:2601:3:8805:107:41E6:C7A1:7724:CF01:5062 > > When lookup() config f

[SR-Users] Registrar module and ipv6 addresses

2015-02-03 Thread Sergey Okhapkin
Registrar module save() function stores "received" field in wrong format like sip:2601:3:8805:107:41E6:C7A1:7724:CF01:5062 When lookup() config function is executed for ipv6 client, kamailio log shows error Feb 3 12:07:34 east /usr/local/sbin/kamailio[16069]: ERROR: tm [ut.h:254]: uri2dst2()

Re: [SR-Users] GeoIP Module and IPv6 seems not to match

2015-01-27 Thread Sergey Okhapkin
The pull request with the patch submitted. On Tuesday 27 January 2015 07:59:04 Sergey Okhapkin wrote: > Yes, geoip2 module will handle v4 and v6 addresses at the same time. > > I'm learning now how to use github and will issue pull request today. > > On Tuesday 27 January

Re: [SR-Users] GeoIP Module and IPv6 seems not to match

2015-01-27 Thread Sergey Okhapkin
Yes, geoip2 module will handle v4 and v6 addresses at the same time. I'm learning now how to use github and will issue pull request today. On Tuesday 27 January 2015 12:54:59 Jöran Vinzens wrote: > Hi, thanks for that info. > > Will there be support to handle V4 and V6 at the same time? So far t

Re: [SR-Users] event on table location Duplicate entry for key 'ruid_idx'

2015-01-13 Thread Sergey Okhapkin
Add server_id=N to kamailio.cfg on both servers, where N is an integer with unique value. userloc module will use server_id value to create unique between servers ruid. On Tuesday 13 January 2015 10:53:28 Daniel-Constantin Mierla wrote: > Hello, > > On 12/01/15 22:54, Yuriy Gorlichenko wrote: >

Re: [SR-Users] Maxmind GeoIP2 implementation.

2015-01-12 Thread Sergey Okhapkin
OK, I will do it. On Monday, January 12, 2015 12:36:28 PM Daniel-Constantin Mierla wrote: > I don't do it and I am not aware of anyone else. You can do it. > > Cheers, > Daniel > > On 10/01/15 22:25, Sergey Okhapkin wrote: > > Is anybody working on implementation

[SR-Users] Maxmind GeoIP2 implementation.

2015-01-10 Thread Sergey Okhapkin
Is anybody working on implementation of geoip2 module for kamailio? The advantage of the new API is a seamless support of both ipv4 and ipv6 addresses. If there is no work in progress, I'm goild to take the duty to implement module geoip2 based on the existing geoip module. I don't think it wor

Re: [SR-Users] (no subject)

2013-11-14 Thread Sergey Okhapkin
No, you may not that way. On Thursday 14 November 2013 21:11:58 Roni | wrote: > may i join ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-

Re: [SR-Users] Reason for 401 Unauthorized message

2013-11-04 Thread Sergey Okhapkin
This is expected behavior, it is how SIP authentication works. On Monday, November 04, 2013 02:58:41 PM Owais ul Haq wrote: > Hello, > > I am using kamailio server. Problem is when my soft phone > tries to connect to Kamailio server, it connects in second attempt. > First it gets a sip reply say

Re: [SR-Users] Event route sl:local-response is not executed in kamailio 4.1

2013-11-03 Thread Sergey Okhapkin
response"); if (_sl_evrt_local_response>=0 - && event_rt.rlist[_sl_evrt_local_response]!=NULL) + && event_rt.rlist[_sl_evrt_local_response]==NULL) _sl_evrt_local_response = -1; } On Saturday 02 November 20

[SR-Users] Event route sl:local-response is not executed in kamailio 4.1

2013-11-02 Thread Sergey Okhapkin
I just upgraded one server to latest git (version: kamailio 4.1.0-pre0 (x86_64/linux) 26fa46-dirty), sl:local-response route is no longer executed. I have in kamailio.cfg event_route[sl:local-response] {

Re: [SR-Users] bad cseq attack

2013-08-21 Thread Sergey Okhapkin
Actually nothing needs to be done in kamailio core. I's a simple scripting logic. if(!sanity_check("whatever_you wan't_check")) { xlog("L_INFO","Malformed message from $proto:$si:$sp\n$mb\n"); break; } On Thursday 22 August 2013 00:07:56 Daniel-Con

[SR-Users] Call DNS resolver from a cfg script.

2013-08-20 Thread Sergey Okhapkin
Is there a way to run DNS lookups from cfg script? I need some way to get host IP by DNS name. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo

Re: [SR-Users] Issue with RTP proxy....

2013-07-02 Thread Sergey Okhapkin
understand patching mechanisms. > > Or if it is ok, just take the whole rtpproxy sources from the githug > repository and compile/install it. > > Cheers, > Daniel > > >Regards, > >Arun > > > > > > > > > > > > > >

Re: [SR-Users] Issue with RTP proxy....

2013-07-02 Thread Sergey Okhapkin
How else? On Tuesday 02 July 2013 09:44:48 arun Jayaprakash wrote: > Daniel, so you are saying that the machine running RTP proxy should not be a > natted one but should have its own public IP? > > Thanks, > Arun > > > > > > From: Daniel-Constantin Mierla >

Re: [SR-Users] Kamailio: MI Command: 'trusted_dump' and 'trusted_reload'

2013-06-21 Thread Sergey Okhapkin
Hmm... trusted_dump and trusted_reload work OK to me. Kamailio compiled from git a week ago. On Friday 21 June 2013 10:59:54 José Luis Millán wrote: > Hi, > > I'm using 'allow_trusted()' from Permissions module without a problem in a > Kamailio 4.0 routing logic. It does just work, but the MI co

[SR-Users] Variables in event_route[sl:local-response]

2013-06-19 Thread Sergey Okhapkin
Which variables I can use in event_route[sl:local-response] route to xlog proto:ip:port to which the response will be sent? event_route[sl:local-response] { xlog("L_INFO","Local response to *$?

Re: [SR-Users] usrloc + multimaster replication

2013-04-08 Thread Sergey Okhapkin
I'm running kamailio 3.X with the following patch for years, works fine to me with distributed servers and replication: diff --git a/modules_k/usrloc/udomain.c b/modules_k/usrloc/udomain.c index b52bb76..e457cc5 100644 --- a/modules_k/usrloc/udomain.c +++ b/modules_k/usrloc/udomain.c @@ -318,6 +3

Re: [SR-Users] Kamailio strange behavior : bad Via, bad port

2013-03-17 Thread Sergey Okhapkin
Why you're sure that INVITE message is OK? On Sunday 17 March 2013 20:22:21 Khoa Pham wrote: > Hi, > > When A calls B. The INVITE goes through Kamailio. In the Kamalio 's log > file, I see it say "bad Via", bad port. And it doesnot reply A with 100 > Trying not forwarding INVITE to B. > > The IN

Re: [SR-Users] Kamailio Geoip

2013-03-06 Thread Sergey Okhapkin
There are 2 separate databases, but common API (I believe). On Wednesday 06 March 2013 12:28:19 Daniel-Constantin Mierla wrote: > Hello, > > On 3/5/13 1:31 PM, Sergey Okhapkin wrote: > > Are there plans to extend geoip module to work in dual stack environment, > > i.e. look

Re: [SR-Users] Kamailio Geoip

2013-03-05 Thread Sergey Okhapkin
Are there plans to extend geoip module to work in dual stack environment, i.e. lookup both ipv4 and ipv6 addresses? Maxmind provides ipv6 databases. On Tuesday 05 March 2013 09:36:59 Daniel-Constantin Mierla wrote: > Hello, > > On 3/4/13 11:48 AM, Ian French wrote: > > Hey List, > > > >

Re: [SR-Users] Kamailio-Java Integration

2012-11-24 Thread Sergey Okhapkin
es are vital to run actual business logic code. On Saturday 24 November 2012 17:49:09 Alex Balashov wrote: > On 11/24/2012 05:41 PM, Sergey Okhapkin wrote: > > Slow Java coupled with real-time SIP protocol? Hmm... Not viable to > > my point of view. > > Despite the stereot

Re: [SR-Users] Kamailio-Java Integration

2012-11-24 Thread Sergey Okhapkin
Slow Java coupled with real-time SIP protocol? Hmm... Not viable to my point of view. On Saturday 24 November 2012 14:15:26 ron.kamai...@mcleodnet.com wrote: > I am looking for a way to integrate Java business logic with Kamailio to > influence routing decisions, add/remove/modify headers, recor

Re: [SR-Users] dialog - keep alives with lower cseq

2012-05-02 Thread Sergey Okhapkin
Isn't it a responsibility of SIP session timer? On Wednesday 02 May 2012 15:07:50 Daniel-Constantin Mierla wrote: > Hello, > > OPTIONS out of dialog are ok to detect if the device is gone (e.g., > network problem -- good for dispatcher case where it needs only to > figure out if gws are up). >

Re: [SR-Users] OT: are there still asymmetric SIP clients?

2011-06-22 Thread Sergey Okhapkin
I use a separate IP address to accept calls from such SIP clients and do not check for NAT on those calls. On Wednesday 22 June 2011, Klaus Darilion wrote: > So what do you use as nat_check? Only the received IP address? > > regards > Klaus > > Am 22.06.2011 15:36, schri

Re: [SR-Users] OT: are there still asymmetric SIP clients?

2011-06-22 Thread Sergey Okhapkin
A lot of Cisco (not linksys) SIP equipment is asymmetric. On Wednesday 22 June 2011, Klaus Darilion wrote: > Hi! > > Just a small survey: Are you still using NAT detection checks? I prefer > to apply NAT traversal always (never trust the contact header) which of > course only works if all the cli

Re: [SR-Users] Remote Party ID Header

2011-06-17 Thread Sergey Okhapkin
RPID header is sent by linksys/sipura ATAs... I have a lot of headaches with those wide spread ATAs here in USA... PAP series are OK, but SPA series send RPID. On Friday 17 June 2011, Alex Balashov wrote: > Brian, > > Remote-Party-ID is a long-obsolete draft that never became an RFC; > why are

Re: [SR-Users] "ACK not received"

2011-05-25 Thread Sergey Okhapkin
No ACK from caller at 91.121.81.212. On Wednesday 25 May 2011, Mokhtar Bengana wrote: > I am trying to forward a DID to a sip account registered to Kamailio. > The call get established with two way audio and Kamailio shows it's > comming from an Asterisk server. However the call get disconnected >

Re: [SR-Users] Authenticate if receiving 401

2011-04-17 Thread Sergey Okhapkin
http://kamailio.org/docs/modules/3.0.x/modules_k/uac.html On Sunday 17 April 2011, Eric Hiller wrote: > I want kamailio to authenticate itself to a host if it is sent a 401, just > as that host is expected to authenticate if kamailio sends it one. I am > not finding much in the online probably bec

Re: [SR-Users] loop through variables

2010-11-02 Thread Sergey Okhapkin
htable module should do the trick to you. On Tuesday 02 November 2010, Bernhard Suttner wrote: > Hi, > > I want something like that: > > # define some router to use later in the script (global section) > Mod_param(router(1), "10.10.10.1") > mod_param(router(2), "10.10.10.2") > mod_param(router(3

Re: [SR-Users] checking if calls are still active

2010-11-01 Thread Sergey Okhapkin
SST. On Monday 01 November 2010, Vic Jolin wrote: > Hi, > > Just want to ask what is the best way to check if calls are still active > especially when we are not handling media? > > Thanks > ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-u

Re: [SR-Users] setdebug() and 3.X

2010-10-30 Thread Sergey Okhapkin
It's in Rubi... Customers need client part java-based to run in web browser... On Saturday 30 October 2010, Iñaki Baz Castillo wrote: > 2010/10/28 Sergey Okhapkin : > > This logging is important to me to support customers. SIP ALG in routers > > often breaks Via line :-( >

[SR-Users] How to log local SIP replies?

2010-10-30 Thread Sergey Okhapkin
Is there a way to log local replies sent by kamailio? For example, I want to log a reply sent by kamailio in response to REGISTER request. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://l

Re: [SR-Users] setdebug() and 3.X

2010-10-29 Thread Sergey Okhapkin
The law didn't work this time, the patch works fine to me :-) On Friday 29 October 2010, Daniel-Constantin Mierla wrote: > On 10/29/10 5:40 PM, Sergey Okhapkin wrote: > > I can't test now - high volume traffic is running. But I looked at the > > diff, it seems to me O

Re: [SR-Users] NAT ping replies

2010-10-29 Thread Sergey Okhapkin
No, seems like kamailio complaints "broken reply to forward" about all sip ping replies... On Friday 29 October 2010, Klaus Darilion wrote: > On 10/29/2010 11:55 AM, Sergey Okhapkin wrote: > > Kamailio 3.1 log is filled with lines like > > > > Oct 29 03:32:46 we

[SR-Users] NAT ping replies

2010-10-29 Thread Sergey Okhapkin
Kamailio 3.1 log is filled with lines like Oct 29 03:32:46 west /usr/local/sbin/kamailio[632]: INFO:

Re: [SR-Users] setdebug() and 3.X

2010-10-29 Thread Sergey Okhapkin
$sp\n$mb\n"); > > break; > > } > > > > > > It will be up to script writer what to do in main routing block if > > message parsing fails. > > > > On Friday 29 October 2010, Sergey Okhapkin wrote: > >>

Re: [SR-Users] setdebug() and 3.X

2010-10-29 Thread Sergey Okhapkin
ot;L_INFO","Bad message from $proto:$si:$sp\n$mb\n"); break; } It will be up to script writer what to do in main routing block if message parsing fails. On Friday 29 October 2010, Sergey Okhapkin wrote: > It would be nice to get error_route back. The ro

Re: [SR-Users] setdebug() and 3.X

2010-10-29 Thread Sergey Okhapkin
It would be nice to get error_route back. The route was trivial in my cfg file: error_route { xlog("L_INFO","Bad message from $proto:$si:$sp\n$mb\n"); drop(); } On Friday 29 October 2010, Daniel-Constantin Mierla wrote: > On 10/28/10 1:41 PM, Sergey O

Re: [SR-Users] setdebug() and 3.X

2010-10-28 Thread Sergey Okhapkin
logging is important to me to support customers. SIP ALG in routers often breaks Via line :-( On Thursday 28 October 2010, Daniel-Constantin Mierla wrote: > On 10/26/10 2:22 PM, Sergey Okhapkin wrote: > > setdebug() function is no longer provided by core. How to change debug > > level

[SR-Users] setdebug() and 3.X

2010-10-26 Thread Sergey Okhapkin
setdebug() function is no longer provided by core. How to change debug level dynamically in the script to trace execution of a few statements only? ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org

Re: [SR-Users] Sanity module documentation error?

2010-10-26 Thread Sergey Okhapkin
Nevermind, I did refresh in firefox and now see new error codes. On Tuesday 26 October 2010, Sergey Okhapkin wrote: > Correct, the page mentions old 3.0 error codes, but not new error codes > returned by merged auth module. For example, functions return -3 for > invalid user condition

Re: [SR-Users] Sanity module documentation error?

2010-10-26 Thread Sergey Okhapkin
Correct, the page mentions old 3.0 error codes, but not new error codes returned by merged auth module. For example, functions return -3 for invalid user condition. On Tuesday 26 October 2010, Daniel-Constantin Mierla wrote: > On 10/26/10 12:56 PM, Sergey Okhapkin wrote: > > Documen

Re: [SR-Users] Sanity module documentation error?

2010-10-26 Thread Sergey Okhapkin
d the readme and committed to git. > > Thanks, > Daniel > > On 10/25/10 12:48 AM, Sergey Okhapkin wrote: > > The routing script has > > > > if(sanity_check("1159", "6")) { > > xlog("L

Re: [SR-Users] realm param for auth functons (was: Re: dictionary attacks)

2010-10-24 Thread Sergey Okhapkin
he older versions. 3.1 deliberately asks for > the the parameter, the docs have to be updated. > > Cheers, > Daniel > > On 10/24/10 10:44 PM, Sergey Okhapkin wrote: > > I'm working on migration of my kamailio.cfg from v1.4 to 3.1 and stuck > > with weird probl

Re: [SR-Users] dictionary attacks

2010-10-24 Thread Sergey Okhapkin
rameter value must be non-empty. On Sunday 24 October 2010, Daniel-Constantin Mierla wrote: > On 10/24/10 10:12 PM, Sergey Okhapkin wrote: > > Correction - auth module is merged in 3.1, but auth_db modules are still > > separate. > > yes, only auth modules were merged, like

Re: [SR-Users] dictionary attacks

2010-10-24 Thread Sergey Okhapkin
Correction - auth module is merged in 3.1, but auth_db modules are still separate. On Sunday 24 October 2010, Daniel-Constantin Mierla wrote: > probably omitted by mistake, but please keep the mailing list cc-ed. > > On 10/24/10 3:38 PM, Sergey Okhapkin wrote: > > Note that I ch

Re: [SR-Users] dictionary attacks

2010-10-24 Thread Sergey Okhapkin
I'm second for fail2ban. I block IP addresses with failed registration attempts for 1 hour. Here is my setup: kamailio.cfg: if (is_method("REGISTER")) { if(www_authorize("", "subscriber") < 0) { if($rc == -1) { xlog("L_INFO","Invalid username from $prot

Re: [SR-Users] Record-route issue in Kamailio 3.0.3

2010-10-14 Thread Sergey Okhapkin
Is Record-Route: a,b,c analog of Record-Route: a Record-Route: b Record-Route: c or Record-Route: c Record-Route: b Record-Route: a ? On Thursday 14 October 2010, Juha Heinanen wrote: > Morten Isaksen writes: > > When OpenSer sends the message to Kamailio the recourd-routes look like > > this

Re: [SR-Users] limiting the number of channels for the users

2010-10-06 Thread Sergey Okhapkin
NEVER use any GUI to configure a server... Never... On Wednesday 06 October 2010, Shrouk Khan wrote: > thnkx all , looking in to it. So far it seems like everything is done on > the kamailo.cfg and done manually by hand. Doesnt the siremis/seradmin or > any other kamailio/openser portal has any

Re: [SR-Users] Can this be done with xhttp module (3.1 devel)?

2010-10-01 Thread Sergey Okhapkin
I never checked with datagram/RPC, I use MI FIFO for that in production environment. On Friday 01 October 2010, Alex Balashov wrote: > On 10/01/2010 07:38 PM, Sergey Okhapkin wrote: > > Yes, it returns final SIP response back. Checked with kamailio/opensips > > 1.4, kamai

Re: [SR-Users] Can this be done with xhttp module (3.1 devel)?

2010-10-01 Thread Sergey Okhapkin
Yes, it returns final SIP response back. Checked with kamailio/opensips 1.4, kamailio 1.5 and 3.1 On Friday 01 October 2010, Alex Balashov wrote: > On 10/01/2010 07:24 PM, Sergey Okhapkin wrote: > > t_uac_dlg returns final response to the initiated request. I don't know > >

Re: [SR-Users] Can this be done with xhttp module (3.1 devel)?

2010-10-01 Thread Sergey Okhapkin
t_uac_dlg returns final response to the initiated request. I don't know if it really waits for the response or uses some kind of async callback. On Friday 01 October 2010, Alex Balashov wrote: > Sergey, > > On 10/01/2010 06:11 PM, Sergey Okhapkin wrote: > > There is a wa

Re: [SR-Users] Can this be done with xhttp module (3.1 devel)?

2010-10-01 Thread Sergey Okhapkin
g the reply > result to the waiting HTTP client that is prompted by a reply on the > Kamailio side also asynchronously. > > -- Alex > > On 10/01/2010 11:56 AM, Sergey Okhapkin wrote: > > I need to get http request with xhttp module, process request parameters, > > build

[SR-Users] Can this be done with xhttp module (3.1 devel)?

2010-10-01 Thread Sergey Okhapkin
I need to get http request with xhttp module, process request parameters, build SIP request (based on received http parameters), receive SIP reply and send http response back based on SIP reply. HTTP part is simple, but how to send SIP request from event_route[xhttp:request] and get SIP reply?