[SR-Users] Radius - again.

2013-04-10 Thread Victor V. Kustov
Good day. Need tips for radius auth/accounting. At fist, if I understand correctly, some changes here: modparam("acc", "service_type", 15) modparam("acc", "radius_extra", "Sip-Src-IP=$si;Sip-Src-Port=$sp") must be replaced to modparam("acc_radius", "service_type", 15) modparam("acc_radius", "r

Re: [SR-Users] path uri problem

2013-04-10 Thread Jiri Kuthan
On 4/10/13 1:25 PM, Iñaki Baz Castillo wrote: Please, RFC 5626 is the solution for NAT. I thought Olle was about to agree, except the RFC number being in fact 2460 :) jiri ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

[SR-Users] bflag mystery

2013-04-10 Thread Juha Heinanen
Juha Heinanen writes: > if i understood the above correctly, existence of received param in path > header of register request, automatically sets nat bflag that (in my > case 7). where is that documented? it is documented here: 3.19. path_use_received (integer) If set to 1, the “received” p

[SR-Users] bflag mystery

2013-04-10 Thread Juha Heinanen
Juha Heinanen writes: > however, when i look what gets stores in location table, cflags column > of the contact has value 384. it is also shown by ul_dump: > > Cflag:: 384 > > 384 = 256 + 128. i must be missing something trivial. how is it > possible that also flag 7 (which is my nat_bflag) ge

[SR-Users] bflag mystery

2013-04-10 Thread Juha Heinanen
i have in config: setbflag(8); xlog("L_INFO", "bflags are <$bf/$bF>\n"); save("location", "0x02"); and i correctly get to syslog: Apr 10 19:51:48 wheezy1 /usr/sbin/sip-proxy[6722]: INFO: bflags

Re: [SR-Users] path uri problem

2013-04-10 Thread Juha Heinanen
José Luis Millán writes: > That is a wrong formed URI but a right formed URI parameter. The right URI > format for the above is: > > sip:192.98.102.11:35453;transport=tcp > > While the right format for the same info when it is used as an URI > parameter is: > > sip:192.98.102.11:35453%3Btranspo

Re: [SR-Users] mediaproxy-ng Tutorial

2013-04-10 Thread Andreas Granig
Hi, On 04/10/2013 02:54 PM, Juha Heinanen wrote: i consider it a bad idea to call the new media proxy mediaproxy-ng, because it gives impression that this is a new incarnation of ag projects mediaproxy that has existed for years. mediaproxy-ng also exists for years (since 2007, prior to the re

Re: [SR-Users] mediaproxy-ng Tutorial

2013-04-10 Thread Manwe
El Wed, 10 Apr 2013 14:41:33 +0200 "Olle E. Johansson" escribió: > > 10 apr 2013 kl. 14:38 skrev Richard Fuchs : > > > On 04/10/13 04:17, Klaus Darilion wrote: > > > >> I think it is a bad idea to name the relay "mediaproxy-ng" and the > >> corresponding Kamailio module "rtpproxy-ng". > > > >

Re: [SR-Users] path uri problem

2013-04-10 Thread Iñaki Baz Castillo
Remember that Outbound also works for UDP. In that case: a) The Outbound Flow Token (the URI username in the Record-Route) must encode the public source IP:port of the request, and the Outbound proxy must be capable of encoding and decoding it for routing the request to the client (OverSIP does it

Re: [SR-Users] path uri problem

2013-04-10 Thread Olle E. Johansson
10 apr 2013 kl. 15:32 skrev Peter Dunkley : > When using a non-outbound client like Jitsi you can keep-alive by getting it > to re-REGISTER, OPTIONS ping, or '\r\n' frequently. > > IMHO that is far better solution than having the server run timers and > generate keep-alives. > > Regards, > >

Re: [SR-Users] path uri problem

2013-04-10 Thread Juha Heinanen
Olle E. Johansson writes: > > Who does keep-alive when outbound is used? If it is the client, then > > there still must be some tweaks in the server as the non-outbound > > client will not send keep-alive. > > Outbound puts all the client connection management burden upon the > client. yes, but

Re: [SR-Users] path uri problem

2013-04-10 Thread Peter Dunkley
When using a non-outbound client like Jitsi you can keep-alive by getting it to re-REGISTER, OPTIONS ping, or '\r\n' frequently. IMHO that is far better solution than having the server run timers and generate keep-alives. Regards, Peter On 10/04/13 13:53, Klaus Darilion wrote: Who does keep

Re: [SR-Users] path uri problem

2013-04-10 Thread Olle E. Johansson
10 apr 2013 kl. 14:53 skrev Klaus Darilion : > > > On 10.04.2013 12:58, Iñaki Baz Castillo wrote: >> There is no need at all for clients to be Outbound aware. The proxy can >> force it in the same way current "alias" / "contact mangling" / >> "received stuff" is used. > > Who does keep-alive w

Re: [SR-Users] Diversion header authentication

2013-04-10 Thread Morten Isaksen
Hi, Try to give is_user_in() the whole URI as in sip:username@domain or just username@domain. I am not sure what format it expects. /Morten On Wed, Apr 10, 2013 at 12:03 PM, phillman25 wrote: > > Thank you Daniel and Morten for your assistance and prompt reply. > > To use the tobody transform

Re: [SR-Users] mediaproxy-ng Tutorial

2013-04-10 Thread Juha Heinanen
i consider it a bad idea to call the new media proxy mediaproxy-ng, because it gives impression that this is a new incarnation of ag projects mediaproxy that has existed for years. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users m

Re: [SR-Users] path uri problem

2013-04-10 Thread Klaus Darilion
On 10.04.2013 12:58, Iñaki Baz Castillo wrote: There is no need at all for clients to be Outbound aware. The proxy can force it in the same way current "alias" / "contact mangling" / "received stuff" is used. Who does keep-alive when outbound is used? If it is the client, then there still mu

Re: [SR-Users] mediaproxy-ng Tutorial

2013-04-10 Thread Olle E. Johansson
10 apr 2013 kl. 14:38 skrev Richard Fuchs : > On 04/10/13 04:17, Klaus Darilion wrote: > >> I think it is a bad idea to name the relay "mediaproxy-ng" and the >> corresponding Kamailio module "rtpproxy-ng". > > I've considered that. Apart from the other reasons already mentioned, > for me the d

Re: [SR-Users] mediaproxy-ng Tutorial

2013-04-10 Thread Richard Fuchs
On 04/10/13 04:17, Klaus Darilion wrote: > I think it is a bad idea to name the relay "mediaproxy-ng" and the > corresponding Kamailio module "rtpproxy-ng". I've considered that. Apart from the other reasons already mentioned, for me the deciding factor was that the new module forms a drop-in rep

Re: [SR-Users] path uri problem

2013-04-10 Thread Iñaki Baz Castillo
2013/4/10 Juha Heinanen : > Olle E. Johansson writes: > >> Can't you add and forward to yourself again? I do crazy stuff like that in >> many places. Just loop around to force a new transaction with new headers. >> >> Just an idea. Maybe totally stupid. > > could be done, but it adds complexity and

Re: [SR-Users] path uri problem

2013-04-10 Thread Olle E. Johansson
10 apr 2013 kl. 13:09 skrev Juha Heinanen : > Olle E. Johansson writes: > >> Can't you add and forward to yourself again? I do crazy stuff like that in >> many places. Just loop around to force a new transaction with new headers. >> >> Just an idea. Maybe totally stupid. > > could be done, but

Re: [SR-Users] path uri problem

2013-04-10 Thread Juha Heinanen
Olle E. Johansson writes: > Can't you add and forward to yourself again? I do crazy stuff like that in > many places. Just loop around to force a new transaction with new headers. > > Just an idea. Maybe totally stupid. could be done, but it adds complexity and overhead. there is enough time be

Re: [SR-Users] path uri problem

2013-04-10 Thread Olle E. Johansson
10 apr 2013 kl. 12:54 skrev Juha Heinanen : > Peter Dunkley writes: > >> You can use the force_outbound option in the outbound module to make >> path and rr add flow-tokens even when the client isn't doing outbound. > > thank for info. it may not work though, if registrar and edge proxy are >

Re: [SR-Users] path uri problem

2013-04-10 Thread Iñaki Baz Castillo
There is no need at all for clients to be Outbound aware. The proxy can force it in the same way current "alias" / "contact mangling" / "received stuff" is used. -- Iñaki Baz Castillo El 10/04/2013 12:44, "Juha Heinanen" escribió: > Iñaki Baz Castillo writes: > > > Anyhow, why is the received s

Re: [SR-Users] path uri problem

2013-04-10 Thread Peter Dunkley
Single server outbound is on my todo list. I have put the details of what is needed here: http://www.kamailio.org/wiki/devel/completing_outbound Don't know if or when I'll get time to do it though. Regards, Peter On 10/04/13 11:54, Juha Heinanen wrote: Peter Dunkley writes: You can use th

Re: [SR-Users] path uri problem

2013-04-10 Thread Juha Heinanen
José Luis Millán writes: > That is a wrong formed URI but a right formed URI parameter. The right URI > format for the above is: > > sip:192.98.102.11:35453;transport=tcp > > While the right format for the same info when it is used as an URI > parameter is: > > sip:192.98.102.11:35453%3Btranspo

Re: [SR-Users] path uri problem

2013-04-10 Thread Juha Heinanen
Peter Dunkley writes: > You can use the force_outbound option in the outbound module to make > path and rr add flow-tokens even when the client isn't doing outbound. thank for info. it may not work though, if registrar and edge proxy are combined. in my current test, i have two proxies/registr

Re: [SR-Users] path uri problem

2013-04-10 Thread Peter Dunkley
You can use the force_outbound option in the outbound module to make path and rr add flow-tokens even when the client isn't doing outbound. Regards, Peter On 10/04/13 11:44, Juha Heinanen wrote: Iñaki Baz Castillo writes: Anyhow, why is the received stuff required at all? IMHO it is time fo

Re: [SR-Users] path uri problem

2013-04-10 Thread Juha Heinanen
Iñaki Baz Castillo writes: > Anyhow, why is the received stuff required at all? IMHO it is time for > dropping custom/proprietary hacks and use rfc 5626 Outbound instead. > Otherwise we must live with hacks in lot of places of the code and > modules. unfortunately it will take years before most s

Re: [SR-Users] path uri problem

2013-04-10 Thread Iñaki Baz Castillo
Of course I assume that modules dont implement unescaping uris encoded as URI param value. That needs to be coded. Anyhow, why is the received stuff required at all? IMHO it is time for dropping custom/proprietary hacks and use rfc 5626 Outbound instead. Otherwise we must live with hacks in lot of

[SR-Users] Diversion header authentication

2013-04-10 Thread phillman25
Thank you Daniel and Morten for your assistance and prompt reply. To use the tobody transformation, i see that i would need to upgrade to 4.1 right? Im currently on 3.3. I tried the below code: $var(i)=0; while($(hdr(Diversion)[$var(i)]) != $null )

Re: [SR-Users] path uri problem

2013-04-10 Thread José Luis Millán
Hi, 2013/4/10 Juha Heinanen > Juha Heinanen writes: > > > i tested and even when url path field contains escaped chars. however, > > i started to get these to syslog every 20 seconds > > > > Apr 10 12:17:08 wheezy1 /usr/sbin/sip-proxy[3900]: ERROR: nathelper > [nathelper.c:2018]: can't parse

Re: [SR-Users] mediaproxy-ng Tutorial

2013-04-10 Thread Andreas Granig
Hi, On 04/10/2013 11:02 AM, Jon Bonilla (Manwe) wrote: I think it is a bad idea to name the relay "mediaproxy-ng" and the corresponding Kamailio module "rtpproxy-ng". Indeed Well, the point is that it's "just" an enhancement of the rtpproxy module. In the past, the rtpproxy module was used

Re: [SR-Users] path uri problem

2013-04-10 Thread Juha Heinanen
Juha Heinanen writes: > i tested and even when url path field contains escaped chars. however, > i started to get these to syslog every 20 seconds > > Apr 10 12:17:08 wheezy1 /usr/sbin/sip-proxy[3900]: ERROR: nathelper > [nathelper.c:2018]: can't parse contact uri > > > most likely due to nat

Re: [SR-Users] path uri problem

2013-04-10 Thread Juha Heinanen
i tested and even when url path field contains escaped chars. however, i started to get these to syslog every 20 seconds Apr 10 12:17:08 wheezy1 /usr/sbin/sip-proxy[3900]: ERROR: nathelper [nathelper.c:2018]: can't parse contact uri most likely due to nat pinging. i haven't checked yet where

Re: [SR-Users] mediaproxy-ng Tutorial

2013-04-10 Thread Manwe
El Wed, 10 Apr 2013 10:17:18 +0200 Klaus Darilion escribió: > > > On 02.04.2013 15:05, Richard Fuchs wrote: > > Hi, > > > > On 04/01/13 10:03, Aft nix wrote: > > > >> I stumbled upon this git://github.com/sipwise/mediaproxy-ng.git which > >> looked very neat to me. Its said that it can be used

Re: [SR-Users] path uri problem

2013-04-10 Thread Iñaki Baz Castillo
2013/4/10 Juha Heinanen : > here is an example: > > Path: > . Perfect. > as you see, single quotes are gone, because they don't serve any purpose > after escape. Not exactly, I want to insist on this: Single quotes did not server any purpose previously because using single quotes to delimit an

Re: [SR-Users] path uri problem

2013-04-10 Thread Juha Heinanen
Iñaki Baz Castillo writes: > Juha, could you please paste here how the Path above looks with your > change? here is an example: Path: . as you see, single quotes are gone, because they don't serve any purpose after escape. -- juha ___ SIP Express R

Re: [SR-Users] path uri problem

2013-04-10 Thread Iñaki Baz Castillo
BTW not sure if your patch does it but I strongly suggest removing the useless and wrong single quotes around the received value (once such a value is properly hex-escaped it becomes a valid URI param value). Please remember that single quote is NOT a valid delimitator AT ALL for a SIP URI paramete

[SR-Users] Radius: extra fields

2013-04-10 Thread Victor V. Kustov
Good day! I had in config: modparam("acc_radius", "radius_extra", "User-Name=XXX") and get same error when start kamailio: ERROR: acc [acc_extra.c:192]: parse failed in around position 10 Any attributes from dictionary anyway got same message. -- SY, Victor JID: coy...@bks.tv

Re: [SR-Users] path uri problem

2013-04-10 Thread Iñaki Baz Castillo
Juha, could you please paste here how the Path above looks with your change? Thanks a lot. 2013/4/10 Juha Heinanen : > below is patch that fixes receiced param value. i have not tested if > kamalio that gets such a value is able to unescape the escaped chars. > if not, that is a bug too. > > --

[SR-Users] too many hope SIP issue with "Route" header in proxy server

2013-04-10 Thread Juha Heinanen
Youngjin Park writes: > I have a problem with "Route" header in my proxy server. Incoming > invite has "Route" header with the IP of the proxy. So, the proxied > invite from proxy server is looping back to the proxy server. > I believe that "Route" cannot be removed or deleted because it is one >

Re: [SR-Users] mediaproxy-ng Tutorial

2013-04-10 Thread Klaus Darilion
On 02.04.2013 15:05, Richard Fuchs wrote: Hi, On 04/01/13 10:03, Aft nix wrote: I stumbled upon this git://github.com/sipwise/mediaproxy-ng.git which looked very neat to me. Its said that it can be used with kamailio. It seems like its backed sipwise inc. But no documentation is given there

[SR-Users] too many hope SIP issue with "Route" header in proxy server

2013-04-10 Thread Youngjin Park
Hi, I have a problem with "Route" header in my proxy server. Incoming invite has "Route" header with the IP of the proxy. So, the proxied invite from proxy server is looping back to the proxy server. I believe that "Route" cannot be removed or deleted because it is one of system header. Is there a

Re: [SR-Users] PLEASE HELP

2013-04-10 Thread Victor V. Kustov
В Thu, 04 Apr 2013 21:07:34 +0200 Daniel-Constantin Mierla пишет: > Hello, > > a rather old tutorial, from openser time, is available at: > > - http://www.kamailio.org/docs/openser-radius-1.0.x.html > > That should be still useful to get the idea of configuring radius > side. Regarding Kamaili