Re: [SR-Users] [sr-dev] TCP replace alias can cause core

2012-10-10 Thread Andrei Pelinescu-Onciul
On Oct 01, 2012 at 14:19, Jijo wrote: > We found a problem regarding TCP connection alias in the following code at > tcp_main.c: > > [...] > > As TCP_ALIAS_REPLACE flag is set for the default TCP options value, in the > function _tcpconn_add_alias_unsafe() a TCP connection alias can be moved >

Re: [SR-Users] [sr-dev] kamailio core at qm_status

2012-10-01 Thread Andrei Pelinescu-Onciul
On Sep 19, 2012 at 10:54, Jijo wrote: > Hi All, > > Finally i found the issue, > > Here is one of the bad trace for SUBSCRIBE(722bytes) and NOTIFY(1282bytes) > which corrupted the memory. The messages came in the order NOTIFY and > SUBSCRIBE. The core is generated in a different place but I beli

Re: [SR-Users] strange behavior when trying to reach PSTN gateway via TCP

2011-11-22 Thread Andrei Pelinescu-Onciul
s? (I couldn't reproduce it on my ancient FreeBSD 7.1) I think the problem is that newer FreeBSD versions return ENOTCONN when attempting to send on a not yet fully connected socket (instead of EAGAIN). Andrei [...] >From aa073d37a1433cad617a5f93c28a0a7c7d2ca702 Mon Sep 17 00:00:00 2001 Fro

Re: [SR-Users] tcp hangup

2011-04-05 Thread Andrei Pelinescu-Onciul
On Apr 05, 2011 at 16:10, Juha Heinanen wrote: > i turned out that the problem below was caused by a firewall that > blocked tcp session if it had been idle for a few minutes. the problem > went away when i reduced tcp_connection_lifetime from 3610 to 120 sec. > > i don't know if it possible to

Re: [SR-Users] tcp hangup

2011-01-10 Thread Andrei Pelinescu-Onciul
On Jan 09, 2011 at 21:41, Juha Heinanen wrote: > Andrei Pelinescu-Onciul writes: > > > However you could enable tcp level keepalives and on linux you can tune > > the intervals, e.g.: > > > > tcp_keepalive = yes > > tcp_keepidle = 60 > > tcp_keep

Re: [SR-Users] tcp hangup

2011-01-05 Thread Andrei Pelinescu-Onciul
On Jan 05, 2011 at 15:03, Juha Heinanen wrote: > Andrei Pelinescu-Onciul writes: > > > It looks like somehow the 3.0 does not receive the FIN (local firewall > > rules?). > > andrei, > > i'm not aware of any such firewall rules. it is possible to establish

Re: [SR-Users] tcp hangup

2011-01-05 Thread Andrei Pelinescu-Onciul
On Jan 05, 2011 at 14:29, Juha Heinanen wrote: > i did some more debugging and wireshark shows that the 3.0 sr does not > even try to send anything to the 3.1 sr over the tcp connection although > netstat now tells at both hosts that the connection is established. > instead sr 3.0 replies immediat

Re: [SR-Users] tcp hangup

2011-01-05 Thread Andrei Pelinescu-Onciul
On Jan 05, 2011 at 13:47, Juha Heinanen wrote: > i have two sr proxies talking with each other over tcp. one is running > 3.0 and the other 3.1. sometimes i notice that no sip requests or any > other tcp packets get through from 3.0 sr host to 3.1 sr host. netstat > on 3.0 sr host shows that tc

Re: [SR-Users] tm.t_uac_wait asynchronous?

2010-11-24 Thread Andrei Pelinescu-Onciul
On Oct 29, 2010 at 05:37, Alex Balashov wrote: > Does tm.t_uac_wait RPC call block a worker process while waiting for > a reply, or use some sort of asynchronous callback? It uses an async. callback, but it will work only over xmlrpc (it does not work yet with the binary rpc transport). Andrei

Re: [SR-Users] udp_send "Invalid argument"

2010-11-04 Thread Andrei Pelinescu-Onciul
On Nov 02, 2010 at 18:42, Henning Westerholt wrote: > On Sunday 24 October 2010, Juha Heinanen wrote: > > [..] > > yes, i just had forgotten to call force_send_socket() in one particular > > case and therefore got the send errors. > > > > i have not used mhomed=1 because of the performance warni

Re: [SR-Users] Setting up TLS between proxy and authentication server

2010-11-01 Thread Andrei Pelinescu-Onciul
On Oct 29, 2010 at 09:25, Jijo wrote: > Hi Andrei, > > Which version has this change? I don't see it in 3.0.4, the realease note > says that it is fixed. Here is the function > > int tls_h_fix_read_conn(struct tcp_connection *c) > { > int ret; > struct tls_extra_data* tls_c; > > ret = -1;<==

Re: [SR-Users] how can string "0" be equal to int 0?

2010-10-15 Thread Andrei Pelinescu-Onciul
On Oct 15, 2010 at 17:04, Daniel-Constantin Mierla wrote: > > > On 10/15/10 4:36 PM, Andrei Pelinescu-Onciul wrote: > >On Oct 15, 2010 at 16:26, Daniel-Constantin Mierla wrote: > >> > >>On 10/15/10 1:43 PM, Juha Heinanen wrote: > >>>Daniel-Constant

Re: [SR-Users] how can string "0" be equal to int 0?

2010-10-15 Thread Andrei Pelinescu-Onciul
On Oct 15, 2010 at 13:44, Juha Heinanen wrote: > Andrei Pelinescu-Onciul writes: > > > Because "==" works only with arguments of the same type, 0 it's > > autoconverted to "0". The alternative would be to log an error. > > andrei, > > p

Re: [SR-Users] how can string "0" be equal to int 0?

2010-10-15 Thread Andrei Pelinescu-Onciul
On Oct 15, 2010 at 16:26, Daniel-Constantin Mierla wrote: > > > On 10/15/10 1:43 PM, Juha Heinanen wrote: > >Daniel-Constantin Mierla writes: > > > >>I don't think a strict type checking is suitable for configuration file > >>- e.g., if I want to check value in cseq, don't want to get lost in ty

Re: [SR-Users] how can string "0" be equal to int 0?

2010-10-15 Thread Andrei Pelinescu-Onciul
On Oct 15, 2010 at 12:29, Juha Heinanen wrote: > i have stored in htable a key_value=0 with key_type=1, i.e., string. > > then i have this piece of test code: > > if (defined($sht(htable=>$var(carrier_key)::id))) { > xlog("L_INFO", "$sht(htable=>$var(carrier_key)::id) is defined\n");

Re: [SR-Users] Stateful vs. stateless replies from script

2010-10-12 Thread Andrei Pelinescu-Onciul
On Oct 11, 2010 at 19:01, Jiri Kuthan wrote: > On 10/7/10 12:16 PM, Andrei Pelinescu-Onciul wrote: > >On Oct 07, 2010 at 10:57, Jiri Kuthan wrote: > > >There's a bit of a misunderstanding here. > ... > >Now consider an authenticated message that is retransmit

Re: [SR-Users] Problem with ser - INVITE size problem tcp->udp?

2010-10-11 Thread Andrei Pelinescu-Onciul
On Oct 04, 2010 at 20:24, Simone Felici wrote: > Il 30/09/2010 19:47, Andrei Pelinescu-Onciul ha scritto: > >On Sep 30, 2010 at 19:07, Simone Felici wrote: > > > > > > >I've just remember one more thing: try using consume_credentials() > > when proxy_a

Re: [SR-Users] error installing ser

2010-10-11 Thread Andrei Pelinescu-Onciul
Andrei > > Le 09/10/2010 15:56, Andrei Pelinescu-Onciul a écrit : > >On Oct 09, 2010 at 13:00, Meftah Tayeb wrote: > >>hi all, > >>i have error installing ser in centOs 5.5 > >>i am not getting serctl and serdbctl, only sercmd and ser > >>any ide

Re: [SR-Users] error installing ser

2010-10-09 Thread Andrei Pelinescu-Onciul
On Oct 09, 2010 at 13:00, Meftah Tayeb wrote: > hi all, > i have error installing ser in centOs 5.5 > i am not getting serctl and serdbctl, only sercmd and ser > any idea is welcome serctl is not in the same repository anymore (it's still on cvs): http://cvs.berlios.de/viewvc/ser/serctl/ You ca

Re: [SR-Users] Regarding SER Listening on two ports

2010-10-08 Thread Andrei Pelinescu-Onciul
On Oct 06, 2010 at 11:43, Saurabh Srivastava wrote: > Hello SER Team, > > We are using SER as a SIP Server for our purpose. We wan to configure SER to > listen on two ports at the same time(i.e. 5060 & some other custom port such > as 5090 or something like that). Can you please assist us how can

Re: [SR-Users] www_challenge(realm, flags) question

2010-10-07 Thread Andrei Pelinescu-Onciul
On Oct 07, 2010 at 16:36, Juha Heinanen wrote: > Andrei Pelinescu-Onciul writes: > > > Sorry, it's slb.freply(), but you also need to send reason as str > > (in auth_send_reply reason is char, but slb.freply() expects a str* > > reason). > > thanks. i made t

Re: [SR-Users] www_challenge(realm, flags) question

2010-10-07 Thread Andrei Pelinescu-Onciul
On Oct 07, 2010 at 16:22, Juha Heinanen wrote: > Andrei Pelinescu-Onciul writes: > > > P.S.: changing www_challenge() would be trivial, but requires testing. > > Only auth_send_reply() would need to be changed to use slb.send_reply() > > and probably a module param.

Re: [SR-Users] t_relay_cancel usage

2010-10-07 Thread Andrei Pelinescu-Onciul
On Oct 07, 2010 at 15:52, Juha Heinanen wrote: > Andrei Pelinescu-Onciul writes: > > > > if proxy is processing all invites statefully, why anything needs to be > > > done when invite transaction corresponding the to cancel is missing? > > > isn't it a c

Re: [SR-Users] WARNING: script writer didn't release transaction

2010-10-07 Thread Andrei Pelinescu-Onciul
On Oct 07, 2010 at 15:45, Juha Heinanen wrote: > after playing with t_newtran(), i started to get these to syslog: > > Oct 7 15:39:11 sip /usr/sbin/sip-proxy[26119]: WARNING: tm > [t_lookup.c:1543]: WARNING: script writer didn't release transaction > > as far as i remember, in k these messages

Re: [SR-Users] www_challenge(realm, flags) question

2010-10-07 Thread Andrei Pelinescu-Onciul
On Oct 07, 2010 at 15:28, Juha Heinanen wrote: > does www_challenge(realm, flags) know to send its challenge reply > statefully or statelessly depending on if t_newtran() has been called or > not? No, you need to send it by hand. At least with ser auth_db, I would: if (!www_authenticate()){

Re: [SR-Users] auth module README t_newtran() issue

2010-10-07 Thread Andrei Pelinescu-Onciul
On Oct 07, 2010 at 15:22, Juha Heinanen wrote: > in auth module readme, there is this kind of example code in > section 1.3.3. nonce_count: > > # go stateful and catch retransmissions > if (!t_newtran()) > drop; # retransmission > > based on tm source comment, the

Re: [SR-Users] t_relay_cancel usage

2010-10-07 Thread Andrei Pelinescu-Onciul
On Oct 07, 2010 at 13:52, Juha Heinanen wrote: > in tm readme there is this kind of example regarding use of > t_relay_cancel: > > if (method == CANCEL) { > if (!t_relay_cancel()) { # implicit drop if relaying was successful, > # nothing to do > >

Re: [SR-Users] Stateful vs. stateless replies from script

2010-10-07 Thread Andrei Pelinescu-Onciul
On Oct 07, 2010 at 10:57, Jiri Kuthan wrote: > On 10/7/10 10:42 AM, Alex Balashov wrote: > >Now that K v3.1.0 provides send_reply(), what is the preferred ideology > >about whether to send stateful or stateless negative error replies? > > > >I mean in general, not in specific cases like digest au

Re: [SR-Users] kamailio 3.0.3 tls problems

2010-10-07 Thread Andrei Pelinescu-Onciul
On Sep 30, 2010 at 14:15, Rouskol Andrey wrote: > Andrei, > > 30.09.10, 03:56, "Andrei Pelinescu-Onciul" : > > > > In the meantime I managed to reproduce it. > > It should be fixed in all the versions now. > > > > Andrei > > > T

Re: [SR-Users] "Create Certificates to be used with Kamailio" changes

2010-10-04 Thread Andrei Pelinescu-Onciul
On Sep 30, 2010 at 21:12, Juha Heinanen wrote: > Andrei Pelinescu-Onciul writes: > > > > one more thing i would like to add to the tuto if someone knows the > > > answer: how to capture/see sip over ssl packets in the proxy host using > > > wireshark, ngrep, o

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

2010-10-02 Thread Andrei Pelinescu-Onciul
On Oct 02, 2010 at 03:43, Alex Balashov wrote: > Daniel, > > On 10/02/2010 03:39 AM, Daniel-Constantin Mierla wrote: > > >you can use t_uac_dlg MI command via XMLRPC. That is done via http. > > > >This command is a bit special, doing a wait until the reply comes, > >blocking working process, so

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

2010-10-02 Thread Andrei Pelinescu-Onciul
On Oct 02, 2010 at 09:39, Daniel-Constantin Mierla wrote: > Hello, > > On 10/2/10 1:49 AM, Sergey Okhapkin wrote: > >I never checked with datagram/RPC, I use MI FIFO for that in production > >environment. > > you can use t_uac_dlg MI command via XMLRPC. That is done via http. > > This command

Re: [SR-Users] Problem with ser - INVITE size problem tcp->udp?

2010-09-30 Thread Andrei Pelinescu-Onciul
On Sep 30, 2010 at 19:07, Simone Felici wrote: > > Thank you a lot for your answer! > I'll try these modifications, starting from some tune on actual > config of ser-2.0 to bring all working correctly and then ending > with a test phase of the ser-3.0 version. > I'll let you know if I should have

Re: [SR-Users] "Create Certificates to be used with Kamailio" changes

2010-09-30 Thread Andrei Pelinescu-Onciul
On Sep 30, 2010 at 19:56, Juha Heinanen wrote: > Andrei Pelinescu-Onciul writes: > > > However if you want to have different certificates in function of the > > role (server or client, or who are you talking with, you need to use a > > separate tls config > > f

Re: [SR-Users] "Create Certificates to be used with Kamailio" changes

2010-09-30 Thread Andrei Pelinescu-Onciul
On Sep 30, 2010 at 18:44, Juha Heinanen wrote: > one question about the certificate tutorial: is something else needed in > the config or certificate business, when sr talks over tls with another > sip proxy, e.g. another sr? namely in that case sr may be in client > role when tls session is esta

Re: [SR-Users] "Create Certificates to be used with Kamailio" changes

2010-09-30 Thread Andrei Pelinescu-Onciul
On Sep 30, 2010 at 18:27, Juha Heinanen wrote: > now that 3.1 has async tls support, i decided (first time ever) to try > to test tls. things went quite smoothly when i followed "Create > Certificates to be used with Kamailio" document > > http://kamailio.org/dokuwiki/doku.php/tls:create-certif

Re: [SR-Users] Problem with ser - INVITE size problem tcp->udp?

2010-09-30 Thread Andrei Pelinescu-Onciul
On Sep 29, 2010 at 10:43, Simone Felici wrote: > > Hello to all! > > I need a little help with our ser installation (ser-2.0.0-rc1). > The continuous groving up of our infrastructure and using even more > codecs, causes the INVITE (udp) to be over 1500bytes. An > external->incoming call to our p

Re: [SR-Users] tm problem with two copies of the same invite

2010-09-30 Thread Andrei Pelinescu-Onciul
On Sep 30, 2010 at 14:10, Juha Heinanen wrote: > there is a broken grandstream sip ua that sometimes sends two initial > invites back-to-back. according to wireshark, sr received them about 10 > microseconds apart. sr then forwards the request to pstn gw, but i > don't have wireshark dump of tha

Re: [SR-Users] kamailio 3.0.3 tls problems

2010-09-29 Thread Andrei Pelinescu-Onciul
On Sep 28, 2010 at 17:10, Andrei Pelinescu-Onciul wrote: > On Sep 28, 2010 at 18:04, Rouskol Andrey wrote: > > Andrei, > > > > When I recompile kamailio with debug options you specified, it works just > > fine! (no memdbg and memlog options in cfg file). If I compile

Re: [SR-Users] kamailio 3.0.3 tls problems

2010-09-28 Thread Andrei Pelinescu-Onciul
On Sep 28, 2010 at 11:29, Ovidiu Sas wrote: > On Tue, Sep 28, 2010 at 11:10 AM, Andrei Pelinescu-Onciul > wrote: > > On Sep 28, 2010 at 18:04, Rouskol Andrey wrote: > >> Andrei, > >> > >> When I recompile kamailio with debug options you specified, it works

Re: [SR-Users] kamailio 3.0.3 tls problems

2010-09-28 Thread Andrei Pelinescu-Onciul
On Sep 28, 2010 at 18:04, Rouskol Andrey wrote: > Andrei, > > When I recompile kamailio with debug options you specified, it works just > fine! (no memdbg and memlog options in cfg file). If I compile it as usual, > it fails. > > Here is the difference: > # make cfg mode=debug MEMDBG=1 \

Re: [SR-Users] kamailio 3.0.3 tls problems

2010-09-28 Thread Andrei Pelinescu-Onciul
o this bug (verify if you have already a patched > > version): > > > > > > > > Module: sip-router > > Branch: sr_3.0 > > Commit: 513c21f67f88484dd12dd6adce6d6ddc7fb60c31 > > URL: > > > > http://git.sip-router.org/cgi-bin/gitweb.cgi/s

Re: [SR-Users] sip-router 3.0.99 newbe question

2010-09-28 Thread Andrei Pelinescu-Onciul
On Sep 27, 2010 at 16:37, Rouskol Andrey wrote: > Hello, > > Could somebody check if default ser.cfg file is correct in the following > section: > > route[AUTHENTICATION] It looks ok to me, although a little ambiguous (some avps are fully specified in some cases and in others they are not). Se

Re: [SR-Users] Memory leak

2010-09-23 Thread Andrei Pelinescu-Onciul
On Sep 23, 2010 at 09:56, Daniel-Constantin Mierla wrote: > > > On 9/23/10 9:46 AM, Andrei Pelinescu-Onciul wrote: > >On Sep 22, 2010 at 22:25, Iñaki Baz Castillo wrote: > >>2010/9/22 marius zbihlei: > >>>this will be much better handled by a transformati

Re: [SR-Users] Memory leak

2010-09-23 Thread Andrei Pelinescu-Onciul
On Sep 22, 2010 at 22:25, Iñaki Baz Castillo wrote: > 2010/9/22 marius zbihlei : > > this will be much better handled by a transformation > > > > if ( $(fn{s.len}) > 62 ) {...} > > Yes, using pcre_math is good when we need to perform a regular > expression against a PV (which is not possible usin

Re: [SR-Users] mi ul_dump 'buffer too small'

2010-09-22 Thread Andrei Pelinescu-Onciul
On Sep 21, 2010 at 21:09, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > > > >ERROR: reply too big > > > > > > how to get rid of that? > > this seems to come from sercmd tool. Quickly grepping its sources, the > > internal limit is 4K for rpc replies. You can try to recompile serc

Re: [SR-Users] strange acc behavior?

2010-09-17 Thread Andrei Pelinescu-Onciul
On Sep 17, 2010 at 12:21, Daniel-Constantin Mierla wrote: > Hello, > > On 9/16/10 11:53 AM, Klaus Darilion wrote: > > > > > >Am 16.09.2010 10:31, schrieb Daniel-Constantin Mierla: > >>Hi Klaus, > >> > >>if you print the value of this avp before and after t_relay(), do you > >>get different value

Re: [SR-Users] Avoid resolving names by DNS

2010-09-02 Thread Andrei Pelinescu-Onciul
On Sep 02, 2010 at 10:13, Klaus Darilion wrote: > Hi! > > I tried to summarize the options at > http://sip-router.org/wiki/cookbooks/core-cookbook/devel#dns_parameters > > Please review and fix if something is wrong. Replaced dns_cache_init=off with use_dns_cache=off. The difference is that if

Re: [SR-Users] Avoid resolving names by DNS

2010-09-01 Thread Andrei Pelinescu-Onciul
On Sep 01, 2010 at 14:50, Alex Balashov wrote: > On 09/01/2010 01:25 PM, Andrei Pelinescu-Onciul wrote: > > >The problem with having fallback to the system resolver is that in case > >the entry is not in /etc/hosts (or similar), you will have double > >queries for each fa

Re: [SR-Users] Avoid resolving names by DNS

2010-09-01 Thread Andrei Pelinescu-Onciul
On Sep 01, 2010 at 19:09, Daniel-Constantin Mierla wrote: > > > On 9/1/10 7:01 PM, Andrei Pelinescu-Onciul wrote: > >On Sep 01, 2010 at 18:49, Klaus Darilion > >wrote: > >>kamailio>= 3.0 is based on ser's core which has implemented its own > >>c

Re: [SR-Users] Avoid resolving names by DNS

2010-09-01 Thread Andrei Pelinescu-Onciul
On Sep 01, 2010 at 18:49, Klaus Darilion wrote: > kamailio >= 3.0 is based on ser's core which has implemented its own > caching resolver library. I do not know if there is a way to disable > it complete and use the system's stub resolver. You could try the > "use_dns_cache" option: > http://sip-r

Re: [SR-Users] Setting up TLS between proxy and authentication server

2010-08-20 Thread Andrei Pelinescu-Onciul
On Aug 20, 2010 at 12:32, Andrei Pelinescu-Onciul wrote: > On Aug 20, 2010 at 10:18, Couprie Geoffroy > wrote: > > Hello, > > > > I am testing TLS communication with Kamailio 3.0.2, and I encounter a > > strange problem. My setup is like this: > > > >

Re: [SR-Users] Setting up TLS between proxy and authentication server

2010-08-20 Thread Andrei Pelinescu-Onciul
On Aug 20, 2010 at 10:18, Couprie Geoffroy wrote: > Hello, > > I am testing TLS communication with Kamailio 3.0.2, and I encounter a strange > problem. My setup is like this: > > Client <-UDP-> Proxy server <- TLS with client certificate > authentication -> Authentication server > 192.1

Re: [SR-Users] [sr-dev] Freezing for 3.1 on Monday, Aug 16

2010-08-10 Thread Andrei Pelinescu-Onciul
On Aug 10, 2010 at 12:59, Henning Westerholt wrote: > On Monday 09 August 2010, Daniel-Constantin Mierla wrote: > > [..] > > Probably during the freeze we can still merge some modules (in the way > > of moving one version to modules and removing the other as long as > > remaining version includes

Re: [SR-Users] [sr-dev] preparing kamailio 3.0.3

2010-07-21 Thread Andrei Pelinescu-Onciul
On Jul 21, 2010 at 09:58, Daniel-Constantin Mierla wrote: > Hello, > > I am planning to release minor version 3.0.3 by beginning of next > week. Please commit there what you think it needs to be fixed for > this release. I'll have to backport some tcp fixes (which are now only in adnrei/tcp_tls_

Re: [SR-Users] CANCEL before INVITE

2010-07-06 Thread Andrei Pelinescu-Onciul
On Jul 06, 2010 at 16:55, Klaus Darilion wrote: > > > Am 06.07.2010 16:36, schrieb Andrei Pelinescu-Onciul: > >On Jul 06, 2010 at 14:06, Klaus Darilion > >wrote: > >>Obiously the device is buggy. > >> > >>But there is also on strange thing at

Re: [SR-Users] CANCEL before INVITE

2010-07-06 Thread Andrei Pelinescu-Onciul
t;>sip-trace-good.log ). > >> > >>If I send the CANCEL after the 100 Trying but before the 180 Ringing ( > >>which is acceptable according to RFC3261 ), the device returns call > >>leg incorrect. > >> > >>This looks suspiciously like a bug in th

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Andrei Pelinescu-Onciul
On Jul 06, 2010 at 10:43, Iñaki Baz Castillo wrote: > 2010/7/6 Alex Balashov : > > It sets bits in a 32-bit integer (it may be 64-bit on 64-bit platforms, of > > this I am not sure) > > Hi, could it be clarified please? I also wonder how many integer AVP's > (i:N) can exist. Does it depend on the

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Andrei Pelinescu-Onciul
On Jul 06, 2010 at 10:24, Daniel-Constantin Mierla wrote: > Hello, > > On 7/6/10 10:16 AM, Alex Balashov wrote: > >Daniel, > > > >Based on this, I think I was erroneous in suggesting that plain > >flags (setflag, isflagset) are transaction-associated. They seem > >to be message-associated, not t

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Andrei Pelinescu-Onciul
On Jul 06, 2010 at 10:05, Daniel-Constantin Mierla wrote: > Hello, > > here is a wiki page with some flag bitmask vector examples that might help: > http://www.kamailio.org/dokuwiki/doku.php/tutorials:openser-flag-operations > > The cfg file examples are for older kamailio versions. Indeed. Th

Re: [SR-Users] permissions module address_reload not working

2010-07-02 Thread Andrei Pelinescu-Onciul
On Jul 01, 2010 at 13:38, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > > > Juha, I just committed on master and tested over MI where works fine. > > Can you do some tests over rpc? If all ok then can be backported. > > it would be nice if i could, but after trying to cherry-pick my

Re: [SR-Users] CANCEL before INVITE

2010-06-24 Thread Andrei Pelinescu-Onciul
On Jun 24, 2010 at 12:06, Iñaki Baz Castillo wrote: > 2010/6/17 Andrei Pelinescu-Onciul : > > Try 3.0 (kamailio or sip-router). You can control how unreplied branches > > are canceled, see > > http://sip-router.org/docbook/sip-router/branch/master/modules/tm/tm.html#canc

Re: [SR-Users] TM clarifications

2010-06-21 Thread Andrei Pelinescu-Onciul
On Jun 21, 2010 at 11:58, Iñaki Baz Castillo wrote: > 2010/6/21 Henning Westerholt : > >> But take into account that after calling t_newtran() new data being > >> created in the script is not stored within the transaction information > >> (flags, AVP's...). It produces really unexpected behavior i

Re: [SR-Users] Kamailio on Solaris(OpenSolaris)

2010-06-18 Thread Andrei Pelinescu-Onciul
On Jun 18, 2010 at 13:47, Daniel Cardoso Alves wrote: > Hi people, > > I am trying to install kamailio in a server with OpenSolaris (SunOS sun-test > 5.11 snv_83 i86pc i386 i86pc), to make some tests, performance, capacity, etc. > > I tried to compile on Solaris but, it dont works perfectly.   

Re: [SR-Users] sip-router config file syntax question

2010-06-18 Thread Andrei Pelinescu-Onciul
On Jun 15, 2010 at 17:07, Andrei Pelinescu-Onciul wrote: > On Jun 15, 2010 at 14:43, Klaus Darilion wrote: > > > -> > > > > > > > > Am 15.06.2010 12:53, schrieb Andrei Pelinescu-Onciul: > > >On Jun 14, 2010 at 13:29, Steven C. Blair wrote: &g

Re: [SR-Users] CANCEL before INVITE

2010-06-17 Thread Andrei Pelinescu-Onciul
On Jun 17, 2010 at 16:39, David wrote: > Hello, > > I had a look at RFC 3261, section 9.1. The trouble is that Kamailio > is answering "100 Trying" to the caller, so the it is ok for the > caller to send back a CANCEL request. Trouble is Kamailio forwards > the request to the called user even tho

Re: [SR-Users] sip-router config file syntax question

2010-06-15 Thread Andrei Pelinescu-Onciul
On Jun 15, 2010 at 14:43, Klaus Darilion wrote: > > -> > > > > Am 15.06.2010 12:53, schrieb Andrei Pelinescu-Onciul: > >On Jun 14, 2010 at 13:29, Steven C. Blair wrote: > >> > >> I'm migrating from an older version of SER to sip-router.

Re: [SR-Users] sip-router config file syntax question

2010-06-15 Thread Andrei Pelinescu-Onciul
On Jun 14, 2010 at 13:29, Steven C. Blair wrote: > > I'm migrating from an older version of SER to sip-router. A syntax check of > my config file produces a few errors. The most confusing is : > > 0(27980) WARNING: [cfg.y:3364]: warning in config file > /home/blairs/ser-penn.cfg, line 1270,

Re: [SR-Users] auth_radius - Segmentation fault

2010-06-14 Thread Andrei Pelinescu-Onciul
On Jun 13, 2010 at 14:40, Dmitry Kirillov wrote: > Juha Heinanen ?: > >Dmitry Kirillov writes: > >> have build SIP-Router and modules from sources from GIT repository > >>(development branch). > >>auth_radius module results in a "Segmentation fault: 11" when I try to > >>register (radius_www_a

Re: [SR-Users] [sr-dev] auth apis & radius

2010-06-14 Thread Andrei Pelinescu-Onciul
On Jun 14, 2010 at 15:35, Daniel-Constantin Mierla wrote: > > > On 6/14/10 3:23 PM, Andrei Pelinescu-Onciul wrote: > >On Jun 14, 2010 at 15:19, Henning Westerholt > >wrote: > >>On Monday 14 June 2010, Andrei Pelinescu-Onciul wrote: > >>>>Indeed t

Re: [SR-Users] [sr-dev] auth apis & radius

2010-06-14 Thread Andrei Pelinescu-Onciul
. It has only 1 script function: consume_credentials(). In kamailio besides the api interface, it exports more script functions (which seem to be simple wrappers over the already exported api functions, so they would be easiy to add to auth(s) too). Andrei > Am 14.06.2010 13:58, schrieb Andrei Pe

Re: [SR-Users] auth apis & radius (was: auth_radius - Segmentation fault)

2010-06-14 Thread Andrei Pelinescu-Onciul
On Jun 14, 2010 at 15:19, Henning Westerholt wrote: > On Monday 14 June 2010, Andrei Pelinescu-Onciul wrote: > > > Indeed the ser auth module is superiour in this areas to the kamailio > > > one. I can't judge about the auth_radius side, as i did not used it so > >

Re: [SR-Users] auth apis & radius (was: auth_radius - Segmentation fault)

2010-06-14 Thread Andrei Pelinescu-Onciul
On Jun 14, 2010 at 14:56, Henning Westerholt wrote: > On Monday 14 June 2010, Andrei Pelinescu-Onciul wrote: > > It looks like he uses modules/auth_radius (which seems to be the k > > version) and modules_s/auth. Unfortunately the ser auth api is > > incompatible with the

Re: [SR-Users] auth apis & radius (was: auth_radius - Segmentation fault)

2010-06-14 Thread Andrei Pelinescu-Onciul
On Jun 14, 2010 at 13:00, Juha Heinanen wrote: > Andrei Pelinescu-Onciul writes: > > > We need either to quickly merge the auth apis or revive > > modules_s/auth_radius (and probably the other modules_s/*radius). > > Unfortunately merging the auth api doesn't look l

[SR-Users] auth apis & radius (was: auth_radius - Segmentation fault)

2010-06-14 Thread Andrei Pelinescu-Onciul
[cc'ed sr-dev] On Jun 13, 2010 at 11:10, Juha Heinanen wrote: > Dmitry Kirillov writes: > > > Program received signal SIGSEGV, Segmentation fault. > > 0x2880c2c0 in qop () from /usr/local/lib/ser/modules_s/auth.so > > (gdb) bt > > #0 0x2880c2c0 in qop () from /usr/local/lib/ser/modules_s/auth.so

Re: [SR-Users] Match ip source of response into failure_route

2010-06-07 Thread Andrei Pelinescu-Onciul
On Jun 07, 2010 at 19:22, inge wrote: > Hi Henning, > > Thanks for your reply. > > I'm using ser 0.9.9. It looks to answer my need, but I need something > usable on this branch. > > If anyone have an idea? Try setting a flag in onreply_route if the src_ip match and then check it in the failur

Re: [SR-Users] A Problem With serctl

2010-06-07 Thread Andrei Pelinescu-Onciul
On Jun 04, 2010 at 00:26, Nahum Nir wrote: > Hi All, > > I have just installed SER 2.0 and when I run serctl I get command not found. > What to do? serctl is no longer used/installed in ser 2.0. Use sercmd (for various runtime changes, installed by default) and(or ser_ctl (for adding users, DB r

Re: [SR-Users] gmake: *** [cfg.tab.h] Broken Pipe while make kamailio on solaris 10

2010-06-02 Thread Andrei Pelinescu-Onciul
On Jun 03, 2010 at 01:36, JinKevin wrote: > > > > > > Date: Wed, 2 Jun 2010 16:54:26 +0200 > > From: and...@iptel.org > > To: kevin@hotmail.com > > CC: sr-users@lists.sip-router.org > > Subject: Re: [SR-Users] gmake: *** [cfg.tab.h] Broken Pipe while make > > kamailio on solaris 10 > >

Re: [SR-Users] gmake: *** [cfg.tab.h] Broken Pipe while make kamailio on solaris 10

2010-06-02 Thread Andrei Pelinescu-Onciul
On Jun 02, 2010 at 08:32, JinKevin wrote: > > > > Hi Andrei, > > > > gcc -dM -E -x c /dev/null > #define __sparc__ 1 > [...] > > > isainfo -n > sparcv9 > > > > isainfo -b > 64 > > uname -m > sun4u Now I remembered :-) The problem on sparcv9 is that you can build either sparc32 o

Re: [SR-Users] fix_nated_contact() on REGISTER

2010-06-02 Thread Andrei Pelinescu-Onciul
On Jun 02, 2010 at 15:35, Daniel-Constantin Mierla wrote: > > > On 6/2/10 3:00 PM, Andrei Pelinescu-Onciul wrote: > >[...] > >>>>>> > >>>>>>On 6/1/10 9:07 PM, Alex Balashov wrote: > >>>>>>>No, it'll store th

Re: [SR-Users] fix_nated_contact() on REGISTER

2010-06-02 Thread Andrei Pelinescu-Onciul
On Jun 02, 2010 at 10:58, Klaus Darilion wrote: > > > Am 02.06.2010 10:46, schrieb Klaus Darilion: > > > > > >Am 01.06.2010 22:08, schrieb Daniel-Constantin Mierla: > >> > >> > >>On 6/1/10 10:02 PM, Klaus Darilion wrote: > >>>Daniel-Constantin Mierla wrote: > > > On 6/1/10 9:07 PM,

Re: [SR-Users] gmake: *** [cfg.tab.h] Broken Pipe while make kamailio on solaris 10

2010-06-01 Thread Andrei Pelinescu-Onciul
On Jun 01, 2010 at 19:31, JinKevin wrote: > > Hi All, > > > > I'm trying to install kamailio3.0.x on solaris 10 (sparc) as following: > > > > gmake prefix="/usr/local/kamailio-3.0" include_modules="db_mysql dialplan" cfg > gmake prefix="/usr/local/kamailio-3.0" all > > > > but get the

Re: [SR-Users] Issue with starting SER

2010-05-28 Thread Andrei Pelinescu-Onciul
On May 28, 2010 at 16:05, Jesse B Scites wrote: > I am not sure if this mailing list is for any type of product support, but I > am at a loss as how to continue, so any type of guidance would be > appreciated. It's the right mailing list. > > > > I am new to using SER, however I downloaded t

Re: [SR-Users] [sr-dev] kamailio 3.0.2 for Thu, May 27, 2010

2010-05-28 Thread Andrei Pelinescu-Onciul
On May 27, 2010 at 11:43, Daniel-Constantin Mierla wrote: > > > On 5/27/10 11:12 AM, Andrei Pelinescu-Onciul wrote: > >On May 27, 2010 at 10:56, Daniel-Constantin Mierla wrote: > >>Hello, > >> > >>On 5/25/10 8:32 PM, Daniel-Constantin Mierla wrot

Re: [SR-Users] t_check_trans return false on CANCEL

2010-05-27 Thread Andrei Pelinescu-Onciul
On May 27, 2010 at 11:50, Ernest Mavrel wrote: > Please try to send mails as plain text and not as html. > Hello, > > Kamailio v 1.4.2 > I have problems with canceling calls. When CANCEL arrive to kamailio > function t_check_trans always return false. Cancel message arrive after > 75s. I was

Re: [SR-Users] MAX_BRANCHES

2010-05-27 Thread Andrei Pelinescu-Onciul
On May 26, 2010 at 21:36, Alex Balashov wrote: > On 05/26/2010 09:28 PM, Zahid Mehmood wrote: > > >Can it be set to a value> 30 now? I remember 30 > >being the max at some point. > > It seems to me, from my inspection of the code, Jiri Kuthan's > answer, and a priori reasoning, that it can

Re: [SR-Users] [sr-dev] kamailio 3.0.2 for Thu, May 27, 2010

2010-05-27 Thread Andrei Pelinescu-Onciul
On May 27, 2010 at 10:56, Daniel-Constantin Mierla wrote: > Hello, > > On 5/25/10 8:32 PM, Daniel-Constantin Mierla wrote: > >Hello, > > > >I am planning to release kamailio 3.0.2 this Thursday. There were > >some fixes since 3.0.1 that worth to be packaged. If you have > >major reports for curre