Re: [SR-Users] Problem using ds_is_from_list in failure_route

2016-09-21 Thread Andrew Pogrebennyk
Hi Joel, On 21/09/16 00:37, Joel Serrano | VOZELIA wrote: > I managed to solve this problem using ds_is_from_list in failure_route like > this: > > ds_is_from_list("8201", "3", "sip:$T_rpl($si):$T_rpl($sp)")) > > But I don't understand why I needed to do it that way. > > I would still like anyone

Re: [SR-Users] 513 Message too big for VIDEO calls

2016-05-31 Thread Andrew Pogrebennyk
This is the wrong mailing list, opensips != kamailio. On 05/27/2016 10:47 AM, Varghese Paul wrote: > Hi all, > > I am trying to setup WSS on opensips-2.2. I am getting "513 Message too > big " when i am trying to make video calls. Audio calls and Registration > is working fine.I tried to change t

Re: [SR-Users] should the AVPs be available in CANCEL?

2016-04-14 Thread Andrew Pogrebennyk
Alex Balashov wrote: > Strictly speaking, CANCEL is a different request, and accordingly, a > different transaction. > > However, you should be able to access INVITE transaction data from the > failure_route triggered in connection with transaction cancellation. Thanks, Alex! Andrew _

[SR-Users] should the AVPs be available in CANCEL?

2016-04-14 Thread Andrew Pogrebennyk
Hi all, it seems that the AVPs not available when when processing CANCEL message, even though they have been set for this transaction initially. Is this the expected behavior? P.S. kamailio 4.3.4 Andrew ___ SIP Express Router (SER) and Kamailio (OpenSER)

[SR-Users] uac "restore_mode" is auto: effective when using core variables?

2016-04-14 Thread Andrew Pogrebennyk
Per my understanding the uac module stores the "vsf" parameter in Record-Route and should be able to update the From/To URIs automatically in all in-dialog requests that carry this parameter. http://kamailio.org/docs/modules/stable/modules/uac.html#uac.p.restore_mode “auto” - all sequential reques

Re: [SR-Users] Append to reply in default action of failure_route

2015-12-28 Thread Andrew Pogrebennyk
Thanks Dmitri, I have to look closer at it, but for me it breaks parallel forking, e.g. I need to reply only when it's the last branch. Andrew On 12/22/2015 05:46 PM, Dmitri Savolainen wrote: > Andrew, I use smth like this for adding header to any response > > request_route{ > > if (is_method("

Re: [SR-Users] Append to reply in default action of failure_route

2015-12-22 Thread Andrew Pogrebennyk
Hello Efelin, I stumbled upon the issue you described here. Have you been able to find a solution? I've tried to play with t_reply(), but no luck so far. Regards, Andrew On 11/18/2013 10:00 AM, Efelin Novak wrote: > Hi, > > I would like to append a header to a 'winning' negative reply in > failu

Re: [SR-Users] why msg_apply_changes() from REQUEST_ROUTE only

2015-12-22 Thread Andrew Pogrebennyk
Hi, I have a similar issue with kamailio 4.3.4. I want to append a header to external 486 or 603 reply. If I got it right I should call append_hf, not append_to_reply which is for locally generated replies. I've added append_hf() and in the end of failure route call exit but for some reason that h

[SR-Users] registered4() is not adding xavp with details of the record

2015-09-03 Thread Andrew Pogrebennyk
Hi, I was trying to use registered("location", "$ru", 0, 1) Last parameter is the flag according to http://kamailio.org/docs/modules/stable/modules/registrar.html#registrar.f.registered flag values is as follows: 1 - set xavp_rcd with value from matched contact But I'm getting NULL instead of

Re: [SR-Users] usage of t_flush_flags() in event_route

2015-07-20 Thread Andrew Pogrebennyk
Hi, ideas anyone? BR, Andrew On 06/17/2015 12:12 PM, Andrew Pogrebennyk wrote: > Daniel, > I'm reviving this old thread.. > > On 05/27/2015 01:40 PM, Andrew Pogrebennyk wrote: >> thanks for the answer, that's what I was thinking - maybe the flags do >> not pers

Re: [SR-Users] usage of t_flush_flags() in event_route

2015-06-17 Thread Andrew Pogrebennyk
Daniel, I'm reviving this old thread.. On 05/27/2015 01:40 PM, Andrew Pogrebennyk wrote: > thanks for the answer, that's what I was thinking - maybe the flags do > not persist or are destroyed after the per-branch failure route. > > However, the t_flush_flags description

Re: [SR-Users] usage of t_flush_flags() in event_route

2015-05-27 Thread Andrew Pogrebennyk
Hi Daniel, thanks for the answer, that's what I was thinking - maybe the flags do not persist or are destroyed after the per-branch failure route. However, the t_flush_flags description says this function can be used in any route, so in should be fixed in the long term.. Let me check if I can come

[SR-Users] usage of t_flush_flags() in event_route

2015-05-26 Thread Andrew Pogrebennyk
Hi Daniel and others, I'm having a problem with acc module if I'm using the event_route/ branch-failure: say, the call comes from the app server and goes to the registered user. We arm the the failure route and per-branch failure route for the 302 redirect from the UA. We explicitly reset the accou

Re: [SR-Users] Unix timestamp with millisecond precision

2014-10-22 Thread Andrew Pogrebennyk
See http://www.kamailio.org/wiki/cookbooks/4.2.x/pseudovariables#tv_name On 10/22/2014 10:40 AM, Grant Bagdasarian wrote: > Hello, > > > > I’m currently using the $TS psuedovariable to get the current unix > timestamp, but this only returns the timestamp up to a second precision. > > Is it po

[SR-Users] textopsx issue when modifying same header several times

2014-10-16 Thread Andrew Pogrebennyk
Hi, we are filtering some method names from the Allow header with kamailio 4.1: depending in the configuration: if (hf_value_exists("Allow", "INFO")) { xlog("L_INFO", "Remove INFO from Allow\n"); exclude_hf_value("Allow", "INFO"); } if

Re: [SR-Users] howto synchronize ruid across multiple proxy instances

2014-09-18 Thread Andrew Pogrebennyk
Hi, OK, thanks for the clarification. Maybe we will check the load_db_contacts("userid") way with Victor. Regards, Andrew On 09/15/2014 12:04 PM, Daniel-Constantin Mierla wrote: > Hello, > > On 12/09/14 15:42, Andrew Pogrebennyk wrote: >> Hi, >> let's say I&#

[SR-Users] howto synchronize ruid across multiple proxy instances

2014-09-12 Thread Andrew Pogrebennyk
Hi, let's say I'm running two proxies/registrars that need to access Shared location DB in db_mode=1 (all changes to usrloc are immediately reflected in database too). I have observed that if the UAC re-registers before the previous registration's expiry and the new REGISTER reaches the other proxy

Re: [SR-Users] no rtpengine.so module

2014-07-03 Thread Andrew Pogrebennyk
On 03/07/14 16:42, Yuriy Gorlichenko wrote: > thanks for fas reply. If I may user rtpengine as rtpproxy maybe you > already use it or just know - does rtpengine provide ridge mode as > rtpproxy between internal and external interfaces? At my instalne if I add > rtpengine --ip=my.ext.net.addr/my.int

Re: [SR-Users] parallel forking and 30x

2014-02-21 Thread Andrew Pogrebennyk
In the meantime it works if I access $T_rpl($ct) from per-branch failure route. Thanks. On 02/20/2014 02:14 PM, Andrew Pogrebennyk wrote: > Daniel, > > we do seem to have a problem here, the get_redirects() function can be > used from the FAILURE_ROUTE only, not from per branch f

Re: [SR-Users] parallel forking and 30x

2014-02-20 Thread Andrew Pogrebennyk
Daniel, we do seem to have a problem here, the get_redirects() function can be used from the FAILURE_ROUTE only, not from per branch failure route ("Command cannot be used in the block"). Does it mean that uac_redirect module needs an update? Andrew On 02/18/2014 10:38 AM, Daniel-Constantin Mier

Re: [SR-Users] Error with ACK from SIPML5

2014-02-14 Thread Andrew Pogrebennyk
Sorry for reviving this old thread. I think I've come across the same issue as Jayesh and it is triggered by the Route inserted by sipml5 into in-dialog requests like ACK - Route: Jayesh had two Route headers that belong to this kamailio instance and I also have two of them: Route: Route: Alth

Re: [SR-Users] NAT helper frustrations with multiple kamailios

2014-02-05 Thread Andrew Pogrebennyk
On 02/05/2014 11:20 AM, Daniel Tryba wrote: > Off to figure out why uac_test incorrectly flags the onhold process as > needing > the nat helper... Well, nat_uac_test is pretty straightforward, it does what the flags tell it to do: http://kamailio.org/docs/modules/stable/modules/nathelper.html#id

Re: [SR-Users] reg event support in subscribe

2014-02-05 Thread Andrew Pogrebennyk
Hi, See presence_reginfo - Extension to Presence server for registration info replication (RFC3680) http://kamailio.org/docs/modules/stable/modules/presence_reginfo.html On 02/05/2014 07:56 AM, Premchandiran wrote: > Hi All, > > May I know whether kamailio supports event header with reg (EVENT:r

Re: [SR-Users] kamailio with mediaproxy-ng, 488 Not Acceptable Here

2014-02-04 Thread Andrew Pogrebennyk
Hi, could you please post also your Chrome js developer log? Does the problem exist if you start the jssip clients without video support? Andrew On 02/03/2014 12:00 PM, Mihai Marin wrote: > Hello, > > Another weekend struggling to make a call from jssip to another jssip > behind firewall and I s

Re: [SR-Users] Kamailio behind NAT

2014-01-24 Thread Andrew Pogrebennyk
On 01/23/2014 05:12 PM, Klaus Darilion wrote: >> It is necessary to use the cwie / cwei flags in the rtpproxy_manage call? > > If rtpproxy uses only a single listen-IP, then these flags are not > needed. Only if you operate rtpproxy in bridge mode, then you need these > flags. Bridge mode is neces

Re: [SR-Users] Help with authenticating using Kamailio

2014-01-14 Thread Andrew Pogrebennyk
Hi, check if this answers your question: http://kb.asipto.com/asterisk:index Andrew On 01/13/2014 04:19 PM, Kasinath wrote: > Hi All, > > I just installed Kamailio in one server and Asterisk in another. > Asterisk loads it sipusers info from database which is in Kamailio server. > > I don't kno

Re: [SR-Users] Update R-URI after lookup("location")

2014-01-14 Thread Andrew Pogrebennyk
Hi, You should create a branch_route and perform this manipulation there.. BR, Andrew On 01/14/2014 10:53 AM, Igor Potjevlesch wrote: > Hello, > > > > No one has an idea? I was thinking that each request goes to RELAY but > even if I try to modify the R-URI in this route, it fails. I still h

Re: [SR-Users] (no subject)

2013-10-15 Thread Andrew Pogrebennyk
Hi, On 10/11/2013 08:14 PM, Fred Posner wrote: >> I use "rwie" and "rwei" flags but in ngcp-mediaproxy-ng e and i >> seems to be used for IPv4 / IPv6 .. >> ... > > I don't believe that mediaproxy-ng can be used to bridge two ipv4 > networks; only bridging for ipv6 <-> ipv4. That's true, ther

Re: [SR-Users] [Spce-user] FYI: Package update(s) in release 2.8

2013-06-04 Thread Andrew Pogrebennyk
Dear 2.8 users, this update includes the fixes for kamailio-lb config (multiple sockets-related): - added record-route param to store socket; review logic for relaying in-dialog requests (fallback to default send socket if it's not defined explicitly); fixed socket selection for ACK after 4xx and r

[SR-Users] auth module Readme on website has missing ToC

2013-05-23 Thread Andrew Pogrebennyk
Hi, please check the link http://kamailio.org/docs/modules/stable/modules/auth.html - the Table of Contents is missing, there's only examples list. Andrew ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-rou

Re: [SR-Users] path uri problem

2013-04-09 Thread Andrew Pogrebennyk
On 04/09/2013 11:59 AM, Juha Heinanen wrote: > because path-value starts with name-addr and my interpretation is that > since there are <>s around this path header body: > > Path: > > > solely consists of name-addr and does not include any rr-params. sip > uri included in name-addr in turn can

Re: [SR-Users] path uri problem

2013-04-09 Thread Andrew Pogrebennyk
Hi Juha, On 04/07/2013 01:51 PM, Juha Heinanen wrote: > i escaped them, but it didn't help. path header now looks like: > > Path: > . > > and i still get the same error: > > Apr 7 14:49:47 wheezy1 /usr/sbin/sip-proxy[8709]: ERROR: registrar > [save.c:887]: Failed to parse Path: URI I don't

Re: [SR-Users] loose_route causing loop

2013-01-31 Thread Andrew Pogrebennyk
Hello, Usually this happens when the RURI has the IP address/ domain which points to this server or which is present in the domain table. There are some clients which may put even server IP address into Contact of INVITE or 200 OK instead of its own so the further requests will be mis-routed. You s

Re: [SR-Users] REGISTER OK but on send "407 Proxy Authentication Required" with no ACK

2013-01-30 Thread Andrew Pogrebennyk
Carsten, On 01/29/2013 08:25 PM, Carsten Maass wrote: > Or does it mean, the authentication is rejected because the local part > 030123456789 in URI does not match the subscriber 979? Indeed, this is what happens when you call auth_check with flag "1": if (!auth_check("$fd", "subscriber", "1"))

Re: [SR-Users] REGISTER OK but on send "407 Proxy Authentication Required" with no ACK

2013-01-29 Thread Andrew Pogrebennyk
=auth_challenge On 01/29/2013 05:25 PM, Carsten Maass wrote: > Hello Andrew, > > thanks for coming back to me. > > On 29.01.2013 13:40, Andrew Pogrebennyk wrote: >> I see no problem with an ACK in the trace. The t38modem ACK's the >> 407, sends the new INVITE

Re: [SR-Users] REGISTER OK but on send "407 Proxy Authentication Required" with no ACK

2013-01-29 Thread Andrew Pogrebennyk
Hello, I see no problem with an ACK in the trace. The t38modem ACK's the 407, sends the new INVITE with authorization but it's not accepted by kamailio. I'm not sure if t38modem can even perform the authorization. Maybe you need to accept the calls from it without authorization. But if it can and y

Re: [SR-Users] LCR

2013-01-11 Thread Andrew Pogrebennyk
Hello, try printing the $ru with xlog statement when the request comes into the server and in the beginning of route[LCR]. On 11/01/2013 01:50, Douglas Ugalde wrote: > Hi, > > Im trying to configure LCR in Kamailio 3.3.3 but I dont Know how can I > do to fix this error: > > ERROR: lcr [lcr_mod.

Re: [SR-Users] why use received as RURI for nathelper OPTIONS ping?

2013-01-07 Thread Andrew Pogrebennyk
On 01/07/2013 01:29 PM, Andrew Pogrebennyk wrote: > What I don't understand is why kamailio sets RURI of the OPTIONS message > to value of "received" instead of the contact. I suspect a bug in the > parser somewhere along these lines: > >> > r

[SR-Users] why use received as RURI for nathelper OPTIONS ping?

2013-01-07 Thread Andrew Pogrebennyk
Some Fritzbox devices don't accept the OPTIONS ping generated by kamailio with RURI: sip:11.22.3.4:5060. In the location table we have: received: sip:11.22.3.4:5060 contact: sip:user@11.22.3.4:5060;uniq=6633BC1386F4D4CC4EBD64DC7E967 path: Kamailio version is 3.3.2 and the nathelper config is noth

[SR-Users] "maximum number of branches exceeded" after kamalilio restart

2013-01-04 Thread Andrew Pogrebennyk
Hello, I'm getting some errors - if I restart kamailio on a live system, the first call after restart fails with "max nr of branches exceeded". However, we are not doing append_branch() or anything fancy for that call at all: Jan 3 15:26:54 sp1 /usr/sbin/kamailio[8078]: ERROR: [dset.c:306]: max

Re: [SR-Users] Difficulties with with loose_route() when trying to handle non-compliant ACK

2012-11-23 Thread Andrew Pogrebennyk
Richard, well, the RURI of remote ACK has proxy IP address 10.200.70.100 so proxy thinks that previous hop was a strict router. I can't think of any workaround that would not be an ugly hack at the moment, though. On 11/23/2012 03:24 AM, Richard Brady wrote: > Hi guys > > I have a multihomed Kam

Re: [SR-Users] [sr-dev] presence module makes excessive cleanups when subs_db_mode=3

2012-11-09 Thread Andrew Pogrebennyk
e notifier_processes > modparam to 0. But, if you do this you should consider not using > subs_db_mode 3 as there are many race-hazards in presence that are fixed > by using the notifier_processes. > > Regards, > > Peter > > On Fri, 2012-11-09 at 12:01 +0100, Andrew Pogre

[SR-Users] presence module makes excessive cleanups when subs_db_mode=3

2012-11-09 Thread Andrew Pogrebennyk
Hi, when presence module is running with subs_db_mode=3 it makes an excessive number of SQL select queries, litelly dozens per second: > 25232 Query select > presentity_uri,callid,to_tag,from_tag,event from active_watchers where > updated=64 AND event<>'presence.winfo' >

Re: [SR-Users] Supporting TLS and DTLS in RTP Proxy

2012-10-16 Thread Andrew Pogrebennyk
Kamal, perhaps RFC 5763 provides you some of the answers? On 10/16/2012 11:06 AM, Kamal Palei wrote: > Hi Johansson, All > Sincier regards and thanks for input. > > As I understand, all media packets pass through RTP Proxy. The RTP > Proxy will receive simple UDP media packets from endpoints.

Re: [SR-Users] DB accounting missing if t_newtran() is called explicitly

2012-09-28 Thread Andrew Pogrebennyk
17 PM, Daniel-Constantin Mierla wrote: > Hello, > > you can try after you set the flag you wanted to be in transaction, to > be sure it gets there. > > Cheers, > Daniel > > On 9/26/12 7:43 PM, Andrew Pogrebennyk wrote: >> Hi Daniel, >> >> No, I don't. T

Re: [SR-Users] DB accounting missing if t_newtran() is called explicitly

2012-09-26 Thread Andrew Pogrebennyk
_flags()? > > http://kamailio.org/docs/modules/3.3.x/modules_k/tmx.html#id2543767 > > Cheers, > Daniel > > On 9/26/12 3:30 PM, Andrew Pogrebennyk wrote: >> Hi, >> >> I have found recently that in order to detect retransmits I have to >> create a transacti

[SR-Users] DB accounting missing if t_newtran() is called explicitly

2012-09-26 Thread Andrew Pogrebennyk
Hi, I have found recently that in order to detect retransmits I have to create a transaction explicitly when the request comes in: force_rport(); if(!t_check_trans()) t_newtran(); sl_send_reply("100", "Trying"); xlog("L_INFO", "New request - $ci\n");

Re: [SR-Users] Registration Authentication Error

2012-09-19 Thread Andrew Pogrebennyk
On 09/18/2012 04:58 PM, Nathaniel L Keeling III wrote: > 11(28548) DEBUG: db_postgres [km_dbase.c:393]: PQclear(1008b8560) result > set > 11(28548) DEBUG: auth_db [authorize.c:124]: HA1 string calculated: > e13d569284e76a33ca63e4d6203f844a > 11(28548) DEBUG: auth [api.c:211]: check_response: Our re

Re: [SR-Users] IM on Kamailio

2012-09-19 Thread Andrew Pogrebennyk
On 09/18/2012 12:15 PM, Gary Shergill wrote: > Note that I am testing this with one computer connected by Bria and > another computer connected via Blink. I am able to log on to a user on > each (test1 and test2) and they are able to call each other. The issue > is, with presence enabled, they are

Re: [SR-Users] TCP Path received quotes

2012-09-15 Thread Andrew Pogrebennyk
Hello Spencer, actually double quotes are not allowed in URI parameter. In the BNF grammar the allowed chars in the "unreserved" definition are "alphanum" and "mark", where "mark" is only "-" / "_" / "." / "!" / "~" / "*" / "'" / "(" / ")" ). This is already fixed in 3.3.0 if I am not mistaken, p

Re: [SR-Users] Remove m=video from SDP header

2012-08-13 Thread Andrew Pogrebennyk
You might need to upgrade to 3.3.1 to use sdpops module: http://kamailio.org/docs/modules/stable/modules/sdpops.html On 08/13/2012 09:52 AM, phillman25 wrote: > Dear List > > I am trying to remove specific lines from the following original SDP body: > > > Content-Type: application/sdp > Content

Re: [SR-Users] Best tool for crafting sip messages

2012-08-13 Thread Andrew Pogrebennyk
Same here, also you can use protoshoot provided by kamailio, see utils/protoshoot. On 08/13/2012 07:45 AM, Mark Anthony Delfin wrote: > Hi Anton, > > Previously I used the following. > > sipsak > http://sipsak.org/ > > or > > sipp > http://sipp.sourceforge.net/ > > Regards, > > Mark __

Re: [SR-Users] 302 redirect with 2 numbers registered

2012-08-03 Thread Andrew Pogrebennyk
Mino, I am not sure, but you could try the following: set failure_reply_mode 3 (http://kamailio.org/docs/modules/stable/modules/tm.html#failure_reply_mode), then handle 302 redirect in the proxy and use the contact as a new branch like this: if(status == "302") { $var(contact) = $ct;

[SR-Users] New Wiki Site has problems?

2012-07-31 Thread Andrew Pogrebennyk
At least some links at http://www.kamailio.org/wiki/ don't work at the moment: Install Kamailio v3.3.x From GIT Upgrade Kamailio v3.1.x to v3.2.0 Upgrade Kamailio v3.2.x to v3.3.0 you are redirected to some instruction from DokuWiki Installer when trying to visit them. Could somebody

Re: [SR-Users] lcr.dump_gws problem

2012-07-27 Thread Andrew Pogrebennyk
Hi Gary, It was fixed already by Richard in 3.3 branch: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=28be16549831df46dd1b8312da223b02359d8a9c (and master) Thank you for the report. On 07/24/2012 09:44 PM, Gary Chen wrote: > Sorry, it should be Kamailio 3.3.0 not 3.2.0. >

Re: [SR-Users] lcr.dump_gws problem

2012-07-24 Thread Andrew Pogrebennyk
Hi Gary, Yes, that's an old/known issue. You can convert the IP to common format with a simple command: perl -MSocket -le 'print inet_ntoa(pack("N", 1273060816))' Maybe somebody from the kamailio team will take time to fix this. On 07/24/2012 09:39 PM, Gary Chen wrote: > Kamailio 3.2.0 > > > >

Re: [SR-Users] kamailio core request dropping - no reply

2012-06-19 Thread Andrew Pogrebennyk
On 06/19/2012 02:06 PM, Uri Shacked wrote: > I am testing kamailio replies when an INVITE or another request arrives > with lets say, "VIA" header missing > The core drops the request. But, there is no reply for the originator > (so it keep on resending the request...) > Why? If there was no V

Re: [SR-Users] Looking for RTP Proxy in TCP

2012-06-08 Thread Andrew Pogrebennyk
The papers talk about transport protocol for signaling, not media/RTP. I didn't hear of anyone who does RTP over TCP neither. I doubt even that the performance is a primary reason behind that, for media over TCP the client link must be virtually packet-loss free (due to TCP retransmissions), while

Re: [SR-Users] [NOT Solved]Creating RURI ($ru) from Contact ($ct)

2012-05-30 Thread Andrew Pogrebennyk
Hi, On 05/30/2012 12:22 PM, Aft nix wrote: > So i'm interested if RFC 3261 provides any mechanism by which we can > differentiate a BYE whether its from "caller" or "callee". Check out is_direction() function: http://www.kamailio.org/docs/modules/3.2.x/modules_k/rr.html#id2527009 ___

Re: [SR-Users] Config include

2012-05-09 Thread Andrew Pogrebennyk
Konstantin, You should put the include_file directive after loadmodule and modparam directives. So it can be either before main route block or at the bottom of your main kamailio.cfg. On 05/09/2012 06:48 PM, Konstantin M. wrote: > After including a part of main config to included file -- I got a

Re: [SR-Users] Config include

2012-05-09 Thread Andrew Pogrebennyk
Hello, It is already there, see http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x On 05/09/2012 06:04 PM, Konstantin M. wrote: > Hi, > > I would like (and a many people here I believe) to have a functional of > including a multiple config files like (foe example asterisk's > #include

Re: [SR-Users] reply code for lower cseq

2012-04-24 Thread Andrew Pogrebennyk
Hi Daniel, See RFC 3261 section 12.2.2: If the remote sequence number was not empty, but the sequence number of the request is lower than the remote sequence number, the request is out of order and MUST be rejected with a 500 (Server Internal Error) response. However, 400 or some 4xx

Re: [SR-Users] in doubt about in-dialog INVITE Route params processing

2012-04-05 Thread Andrew Pogrebennyk
Hi, despite my initial doubt it works well :-) Thank you Daniel. On 04/04/2012 05:51 PM, Daniel-Constantin Mierla wrote: > Hello, > > is record_route() executed as well as add_rr_param() for reinvites? > Cannot spot in the logs. You can load debugger module and enable > cfgtrace to see what actio

[SR-Users] in doubt about in-dialog INVITE Route params processing

2012-04-04 Thread Andrew Pogrebennyk
I've been pondering an issue with Route header parameters being not mirrored by kamailio proxy into Record-Route field on in-dialog requests over the last few hours so I thought I'd just whether I'm missing something obvious. The call scenario in UA -> lb -> proxy -> sems. Everything is fine with

Re: [SR-Users] Kamailio modifying ruri during loose-route

2012-03-26 Thread Andrew Pogrebennyk
Dan, Well, it looks like kamailio recognizes 127.0.0.1 as its own URI that's why it does rewrite. Do you have by chance such alias in your config (or auto_aliases=yes)? On 03/26/2012 03:47 PM, Dan-Cristian Bogos wrote: > Hey Guys, > > I have noticed some unexpected behavior (at least by me) durin

Re: [SR-Users] OT: is it allowed to send requests without waiting for the response of the previous request?

2012-03-14 Thread Andrew Pogrebennyk
Hello Klaus, please check this thread: http://www.mail-archive.com/sip-implementors@lists.cs.columbia.edu/msg10537.html On 03/14/2012 05:11 PM, Klaus Darilion wrote: > I wonder if a presence server may send a NOTIFY if the previous NOTIFY > in the dialog did not received an answer yet. I "grep"ed

Re: [SR-Users] Rewrite $tU

2012-03-08 Thread Andrew Pogrebennyk
On 03/07/2012 08:46 PM, Lucas Alvarez wrote:. > Something like this: > > if(($rU=~"^(box02)[0-9]{2,15}$")) { > $rU = $(rU{s.substr,5,0}); > $ru = "sip:" + $rU + "@" + $sel(cfg_get.box02.gw_ip) + ":" > + $sel(cfg_get.box02.gw_port); > } BTW alternatively you can use dia

Re: [SR-Users] Rewrite $tU

2012-03-07 Thread Andrew Pogrebennyk
On 03/07/2012 07:37 PM, Lucas Alvarez wrote: > I want rewrite $tU but I'm not being able, I'm doing the following: > > remove_hf("To"); > insert_hf("To: sip:$rU@$rd\r\n", "From"); > > Then I'm printing $tU and it is still having the previous value, any > help will be appreciated. > Thanks in

Re: [SR-Users] dialog doesn't clear calls that were re-INVITEd shortly after ACK

2012-02-29 Thread Andrew Pogrebennyk
Since Timo is most likely busy these days I will create an issue in the tracker for that. On 02/22/2012 08:48 PM, Andrew Pogrebennyk wrote: > Hi, > I noticed dialog module showing calls that have already been terminated > with state=4. > The kamailio version is 3.1.5, I'm

[SR-Users] dialog doesn't clear calls that were re-INVITEd shortly after ACK

2012-02-22 Thread Andrew Pogrebennyk
Hi, I noticed dialog module showing calls that have already been terminated with state=4. The kamailio version is 3.1.5, I'm aware of certain limitations of dialog module in this version (must use stateless replies, create dialog after 407), but this is something rather new. In kamailio config I'm

Re: [SR-Users] UAC canceling a specific early dialog with BYE

2012-02-21 Thread Andrew Pogrebennyk
On 02/21/2012 12:38 PM, Andrew Pogrebennyk wrote: > The BYE follows the loose routing path, proxy gets 481 from the sbc and > forwards that response back to PSTN gw, which somehow breaks it. AFAICS > it's not specified in RFC what should the behavior look like when > getting bot

[SR-Users] UAC canceling a specific early dialog with BYE

2012-02-21 Thread Andrew Pogrebennyk
Hello, we have a Kamailio proxy which gets the call from PSTN gw and does some call forwarding (serial forking) to several destinations through our sbc The call flow I am looking at is: - Kamailio sends INVITE to branch_1. - branch_1 sends 180 with to-tag*, proxy relays it to the gw * 180 meets t

Re: [SR-Users] ndb_redis module fails after a while

2012-02-17 Thread Andrew Pogrebennyk
Hi Daniel, On 02/17/2012 10:47 AM, Daniel-Constantin Mierla wrote: > I made a patch for server reconnect -- I had no access to a computer > with redis lib installed for the moment, hopefully it compiles. If you > can try and tell the result, it would be great, I can commit then. I may be able to

[SR-Users] image missing in xmlrpc module doc

2012-02-17 Thread Andrew Pogrebennyk
Hi, Was reading through the xmlrpc docs, could anybody with an access check why Figure "RPC Example" is missing from http://kamailio.org/docs/modules/devel/modules/xmlrpc.html#fig.rpc_example as well as 3.1 and 3.2 module docs? Thanks, Andrew ___ SIP Exp

Re: [SR-Users] redirect client to keep original ruri

2012-02-01 Thread Andrew Pogrebennyk
On 02/01/2012 12:11 PM, Daniel-Constantin Mierla wrote: >> I was getting an error for some reason: >> >> 0(7860) ERROR: [pvapi.c:516]: error searching pvar "T_rpl" >> 0(7860) ERROR: [pvapi.c:720]: wrong char [$/36] in [$T_rpl($ct)] >> at [7 (5)] >> >> version: kamailio 3.1.5 > do you have tmx

Re: [SR-Users] redirect client to keep original ruri

2012-01-30 Thread Andrew Pogrebennyk
Since this thread will probably end up in Google I''ll share my experience. I ended up with this" if(t_check_status("301|302")) { #NOTE: must assign to $du to keep R-URI intact $var(contact) = $T_rpl($ct); $var(contact) = $(var(contac

Re: [SR-Users] Kamailio with Private IP - ACK for 200 OK problem

2012-01-26 Thread Andrew Pogrebennyk
On 01/26/2012 08:21 PM, Krishna Kurapati wrote: > Is there a configuration option to let kamailio use Public IP when > setting record-route in 200 OK? Of course, you need record_route_preset() - see http://kamailio.org/docs/modules/3.1.x/modules_k/rr.html#id2667590 Also I would expect you need to

Re: [SR-Users] redirect client to keep original ruri

2012-01-25 Thread Andrew Pogrebennyk
On 01/25/2012 03:18 PM, Alex Balashov wrote: > Put the 302 Contact URI in the destination set instead, i.e. $du, not > $ru. That will cause it to be relayed to the redirect destination on > the network and transport level, but the logical target will remain the > same. Ok. I was thinking that uac

Re: [SR-Users] redirect client to keep original ruri

2012-01-25 Thread Andrew Pogrebennyk
Daniel, thank you - method (2) works like a charm. On 01/25/2012 03:16 PM, Daniel-Constantin Mierla wrote: > an option - get the contact header from 302 in failure route via > $T_rpl($ct). Use its uri to set $du. I was getting an error for some reason: 0(7860) ERROR: [pvapi.c:516]: error searc

[SR-Users] redirect client to keep original ruri

2012-01-25 Thread Andrew Pogrebennyk
Hello, assuming that I want to use contact from 302 response as outbound proxy but keep the original Request-URI, what should I do? Calling the revert_uri() after get_redirects() in failure_route doesn't do the trick. ___ SIP Express Router (SER) and Kam

Re: [SR-Users] Kamailio : Listening on multiple ports behind NAT

2012-01-16 Thread Andrew Pogrebennyk
Hi, On 01/16/2012 03:41 PM, Reda Aouad wrote: > I suggest that the function record_route( ) takes a public IP address as > a parameter, still doing what it does (correct record routing and cookie > addition did=xxx and loose route lr=on), but only replacing the private > IP address on which Kamail

Re: [SR-Users] ndb_redis module fails after a while

2012-01-13 Thread Andrew Pogrebennyk
Javi, ndb_redis does not reconnect if the server closes connection on timeout. It should work if you set timeout to zero in server config. I thought that I created a ticket in the bugtracker for that before, but not sure, I can't find it right now. On 13.01.2012 08:00, Javier Gallart wrote:

Re: [SR-Users] Pseudo-variables for "Status-Line"

2011-12-29 Thread Andrew Pogrebennyk
On 12/29/2011 03:36 PM, Robert R wrote: > Thank a lot. $T_reply_code works. > I tried all variables in pv doc ($rc, $err.rcode, $rs ... ) and none of > them works, Actually the $rs pseudo-variable should also work as described here: http://sip-router.org/wiki/cookbooks/pseudo-variables/devel#sip_r

Re: [SR-Users] Pseudo-variables for "Status-Line"

2011-12-29 Thread Andrew Pogrebennyk
On 12/29/2011 03:21 PM, Robert R wrote: > What is the Pseudo-variables for "Status-Line" filed of SIP response > messages (2xx, 3xx,4xx,5xx,6xx)? i.e., is there a Pseudo-variables to > display the SIP response code? You can test it with tm function t_check_status(...) or get it in a config variabl

Re: [SR-Users] usrloc, timer process and cache cleanup

2011-12-23 Thread Andrew Pogrebennyk
On 12/23/2011 08:18 PM, Stefan Sayer wrote: > shouldn't the db layer and driver be smart enough to do insert ... on > duplicate key update at least where it's supported? my fear is that such "first insert then update" policy will affect the performance. can create noise in the log on some db backe

Re: [SR-Users] TLS<-->UDP not working with record_route_preset

2011-12-09 Thread Andrew Pogrebennyk
Gnani, since version 3.2.0 kamailio accepts several arguments to record_route_preset() function: http://www.kamailio.org/docs/modules/3.2.x/modules_k/rr.html#id2542169 In 3.1.0 you can call insert_hf directly, but IMO it's worth upgrading. Andrew On 12/08/2011 08:50 PM, Gnaneshwar Gatla wrote: > H

Re: [SR-Users] transport=TLS

2011-11-29 Thread Andrew Pogrebennyk
Bruno, the address from contact header is put into R-URI on outgoing request to that user. This is where I catch that parameter. I think we should debug why kamailio sends the request using UDP, it is not clear, as Daniel pointed out it should work automatically. I think I had to do these manipulat

Re: [SR-Users] transport=TLS

2011-11-29 Thread Andrew Pogrebennyk
Hi Bruno, What I have done is an explicit check if (uri_param("transport","tls") || uri_param("transport","TLS")) to call force_send_socket with either udp or tls port. It would be cool for kamailio to select the proper socket automatically, I think there was a discussion on that previously but I c

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-11-09 Thread Andrew Pogrebennyk
Austin, the block beginning with dlg_manage() should be placed between route(AUTH) and route(PSTN). It is commented out and put outside the main routing block so I'm not sure if that was the case.. If the problem persists please get the dialogs list before calling, while the callee's phone is ring

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-11-03 Thread Andrew Pogrebennyk
Austin, Actually you could share your config to the mailing list, I will tell you if there is something blatantly wrong ;-) Regards, Andrew On 11/03/2011 06:15 AM, Jason Penton wrote: > Hi Austin, > > Have a look at the TM module docs. You will find the appropriate > commands there. > > HTH >

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-31 Thread Andrew Pogrebennyk
Austin, That is strange, because I am using similar setup successfully. Actually I don't know if it counts the calls that are being established, I didn't care for it. While looking through the docs: http://kamailio.org/docs/modules/3.1.x/modules_k/dialog.html#id2524304 the following note caught m

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-29 Thread Andrew Pogrebennyk
On 10/30/2011 06:00 AM, Austin Einter wrote: > When I run kamailio, I get below error. > > 0(4925) CRITICAL: dialog [dialog.c:297]: profile not definited > [...] > Any idea why this error comes and how to fix it. You should really define profile caller by putting it into profiles_with_value mo

Re: [SR-Users] kamailio sip-capture error on compile

2011-10-03 Thread Andrew Pogrebennyk
Jeff, On 10/03/2011 08:45 PM, Jeff Anderson wrote: > I am trying to get kamailio sip-capture up and running for use with homer. I > can get the service to start but i receive the following error. > > [root@homer kamailio]# /usr/local/sbin/kamailio -c > loading modules under > /usr/local/lib/kamai

Re: [SR-Users] Account 403 to RADIUS

2011-09-26 Thread Andrew Pogrebennyk
On 09/26/2011 02:16 PM, Mino Haluz wrote: Ok, the problem is the original feeradius package (squeeze) does not support Update radius messages (it gives Unsupported Acct-Status-Type = 15). It's not related to kamailio. .. however anybody knows how to patch it? The patches are here: http://downl

Re: [SR-Users] Nat problems

2011-09-02 Thread Andrew Pogrebennyk
On 09/02/2011 10:33 PM, David Zambrano wrote: Hi andrew. Thanks for your help. What module or config should I use to make sure the connection goes back through the loadbalancer? That's simply the task for record-route like: if (is_method("INVITE")) record_route(); But you also need th

Re: [SR-Users] Nat problems

2011-09-02 Thread Andrew Pogrebennyk
On 09/02/2011 08:58 PM, David Zambrano wrote: After doing some traces on the network I realized that the transcoder is trying to reach the router in front of the softphone and skipping the Kamailio loadbalancer. The call never reaches the softphone so the phonecall never completes. In UDP exactly

Re: [SR-Users] issue with tm callbacks / premature cancel

2011-08-02 Thread Andrew Pogrebennyk
ed t_reset_fr() before the call to t_set_fr(), still no luck. -- Sincerely, Andrew Pogrebennyk ___ 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-users

Re: [SR-Users] issue with tm callbacks / premature cancel

2011-08-01 Thread Andrew Pogrebennyk
ater 300 seconds, no luck.. -- Sincerely, Andrew Pogrebennyk ___ 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-users

[SR-Users] issue with tm callbacks / premature cancel

2011-08-01 Thread Andrew Pogrebennyk
00) modparam("tm", "fr_inv_timer", 12) modparam("tm", "restart_fr_on_each_reply", 1) The rest of config is really simple, I can upload it somewhere if it's necessary. -- Sincerely, Andrew Pogrebennyk ___ SIP Ex

Re: [SR-Users] Set CLI.

2011-07-29 Thread Andrew Pogrebennyk
ll to t_relay(): # Replace from if needed if(is_avp_set("$avp(s:allowed_cli)")) { uac_replace_from("","$avp(s:allowed_cli)"); xlog("L_INFO", "$ci : replaced from to $avp(s:allowed_cli)\n"); } -- Sincerely, Andrew Pogrebennyk ___

  1   2   >