Re: [SR-Users] Using flags in t_branch_timeout() section of failure_route{}

2016-04-24 Thread Marrold
oll-free) / +1-678-954-0671 (direct) > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ > > Sent from my BlackBerry. > Original Message > From: Marrold > Sent: Sunday, April 24, 2016 12:21 > To: Kamailio (SER) - Users Mailing List > Reply To:

Re: [SR-Users] Using flags in t_branch_timeout() section of failure_route{}

2016-04-24 Thread Marrold
e into the code for clues. On Sun, Apr 24, 2016 at 4:44 PM, Marrold wrote: > Hi Alex, > > Thanks for the response, I will try using an avp instead. > > I interpreted "message flags (or transaction flags) will works as they > do now, but the branch mask will be removed (

Re: [SR-Users] Using flags in t_branch_timeout() section of failure_route{}

2016-04-24 Thread Marrold
1 (direct) > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ > > Sent from my BlackBerry. > Original Message > From: Marrold > Sent: Sunday, April 24, 2016 10:34 > To: Kamailio (SER) - Users Mailing List > Reply To: Kamailio (SER) - Users Mailing List > Su

[SR-Users] Using flags in t_branch_timeout() section of failure_route{}

2016-04-24 Thread Marrold
Hi all, I'm having issues using flags in a t_branch_timeout() of failure_route{} A brief summary of the code - onreply_route{ setflag(14); } failure_route { if (t_branch_timeout()) { xlog("L_ALERT","t_branch_timeout()\n$mb"); if (isflagset(14)) { xlog("L_ALERT","isflagset(14) -

Re: [SR-Users] Kamailio Blind Call Forwarding

2016-04-18 Thread Marrold
I'm curious what issue you're trying to fix or what functionality you're trying to add? If we know the contact, we might be able to suggest a kamailio only solution. On Mon, Apr 18, 2016 at 5:26 PM, Juha Heinanen wrote: > Alex Balashov writes: > > > No, Kamailio cannot build new, independent cal

Re: [SR-Users] Check if xavp is set

2016-04-17 Thread Marrold
> Try: > > if(defined $xavp(tm_contacts)) > > or: > > if($xavp(tm_contacts) != $null) > Both of the above worked, Thanks! > I do wish "truthiness" of various sorts were better defined in Kamailio. > I don't quite follow what you mean here, but I probably agree with you. In particular for t_load

Re: [SR-Users] DISPATCHER module No destinations availables even if my Asterisk Boxes are up and running

2016-04-17 Thread Marrold
First of all I would check the result of - # kamctl dispatcher dump SET:: 4001 URI:: sip:10.0.97.17:5060 flags=IP priority=1 attrs=backend=be011 URI:: sip:10.0.97.18:5060 flags=IP priority=1 attrs=backend=be011 SET:: 4002 URI:: sip:10.0.97.21:5060 flags=AP priority=1 attrs

[SR-Users] Check if xavp is set

2016-04-17 Thread Marrold
Hi all, What's the most efficient way to check if an xavp is set? I have tried- is_avp_set() from avpops module which resulted in- ERROR: avpops [avpops.c:915]: fixup_is_avp_set(): bad attribute name <$xavp(tm_contacts)> and if ($xavp(tm_contacts)) {} which resulted in - WARNING: [rvalue.

Re: [SR-Users] Detecting calls with missing ACK (Lazy SIP scanners)

2016-04-12 Thread Marrold
Hi, >>On 06/04/16 01:57, Marrold wrote: >> Hi Charles, >> >> I can confirm that t_any_timeout(), and t_branch_timeout() return true >> when these un-ACKd transactions occur. > by un-ACKed, do you mean they didn't receive any response or they didn't &

Re: [SR-Users] Detecting calls with missing ACK (Lazy SIP scanners)

2016-04-10 Thread Marrold
s On Wed, Apr 6, 2016 at 12:57 AM, Marrold wrote: > Hi Charles, > > I can confirm that t_any_timeout(), and t_branch_timeout() return true > when these un-ACKd transactions occur. > > I just needed to make sure that I set a failure route, in my reply route. > > Thanks for t

Re: [SR-Users] SIP Message Body

2016-04-07 Thread Marrold
I use $mb to get the full SIP packet. On Thu, Apr 7, 2016 at 9:50 AM, Grant Bagdasarian wrote: > Hi Daniel, > > > > Is it also possible to get the full sip message using a pseudo variable, > including the sip headers etc? > > > > Regards, > > > > Grant > > > > *From:* sr-users [mailto:sr-users-b

Re: [SR-Users] Detecting calls with missing ACK (Lazy SIP scanners)

2016-04-05 Thread Marrold
; > From there you can do what you like. > > Cheers, > > Charles > On 5 Apr 2016 1:22 p.m., "Marrold" wrote: > >> I am interested in 'fingerprinting' various SIP scanner attacks and using >> them to intelligently block attacks, rather than just bli

Re: [SR-Users] Detecting calls with missing ACK (Lazy SIP scanners)

2016-04-05 Thread Marrold
eout reached on transmission eff430b8c1b6d21c2058049f41a7ec57 for seqno 1 (Critical Response) Thanks On Tue, Apr 5, 2016 at 1:14 PM, Daniel Tryba wrote: > On Tue, Apr 05, 2016 at 12:09:29AM +0100, Marrold wrote: > > I have been running a couple of Asterisk honey pots to get a better

Re: [SR-Users] Detecting calls with missing ACK (Lazy SIP scanners)

2016-04-04 Thread Marrold
Thanks for the speedy response as always. The current scenarios are taken from Asterisk only, Kamailio is not yet in front of it - so no record route headers. I imagine the ACKs aren't being sent due to it being a waste of resources as you suggest, but I'm interested in detecting these in Kamaili

Re: [SR-Users] get_redirects with t_next_contacts

2016-04-04 Thread Marrold
t;408", "Request Timeout MH 2"); This was due to my lazy regex whilst debugging. "[456][0-9][0-9]" Apologies for the noise. On Thu, Mar 31, 2016 at 11:57 AM, Marrold wrote: > I've found the following in an old thread that should help me debug, I > will let the li

[SR-Users] Detecting calls with missing ACK (Lazy SIP scanners)

2016-04-04 Thread Marrold
Hi, I have been running a couple of Asterisk honey pots to get a better understanding of the tools and methods potential hackers are using to exploit SIP servers. I have observed many attacks from the 'sipcli' user agent that don't send ACKs. At this stage I'm not sure what they're trying to ach

Re: [SR-Users] get_redirects with t_next_contacts

2016-03-31 Thread Marrold
I've found the following in an old thread that should help me debug, I will let the list know how I get on. pv_printf("$var(contact)", "$xavp(contacts[0]=>uri)"); xlog ("L_NOTICE", "var(contact)=$var(contact)\r\n"); On Thu, Mar 31, 2016 at 12:4

Re: [SR-Users] UAC Register Asterisk

2016-03-31 Thread Marrold
t may cause auth issues. On Thu, Mar 31, 2016 at 9:49 AM, Alberto Sagredo < alberto.sagr...@avanzada7.com> wrote: > Hi Marrold. I want to authenticate user on Kamailio but want Asterisk to > see them registered with kamailio ip as contact. > > I making also some manipulations in $fu

Re: [SR-Users] UAC Register Asterisk

2016-03-31 Thread Marrold
Why not just relay the registration messages to Asterisk itself? What's the use case? Cheers On Thu, Mar 31, 2016 at 9:34 AM, Alberto Sagredo < alberto.sagr...@avanzada7.com> wrote: > Hi > > Im trying to modify example for Asterisk/Kamailio integration that miconda > did, and trying to handle Fo

[SR-Users] get_redirects with t_next_contacts

2016-03-30 Thread Marrold
Hi all, I am having some issues using get_redirects() from the UAC_Redirect module in conjunction with t_next_contacts from the TM Module. I've searched Google and the list but the only references I can find are several years old. I am attempting to configure Kamailio so it if receives a 3XX red

Re: [SR-Users] Using 302 redirects with Dispatcher Module

2016-03-28 Thread Marrold
Well spotted, I was studying the dispatcher docs but over looked sl. Thanks On Mon, Mar 28, 2016 at 8:42 PM, Alex Balashov wrote: > On 03/28/2016 03:40 PM, Alex Balashov wrote: > >> On 03/28/2016 03:37 PM, Marrold wrote: >> >> That works, thanks. It turns out the foll

Re: [SR-Users] Using 302 redirects with Dispatcher Module

2016-03-28 Thread Marrold
e above. Thanks for pointing me in the right direction. Matthew On Mon, Mar 28, 2016 at 7:47 PM, Alex Balashov wrote: > Hello, > > On 03/28/2016 02:39 PM, Marrold wrote: > > I'd like to use the Dispatcher Module along with 30X redirects, to >> monitor gateway

[SR-Users] Using 302 redirects with Dispatcher Module

2016-03-28 Thread Marrold
Hi All, I'd like to use the Dispatcher Module along with 30X redirects, to monitor gateway availability with SIP options and to provide redundancy / fail over. Some sources online suggest it's as easy as - if ( method=="INVITE" ) { dst_select_domain("1","4"); sl_send_reply("300","Redirec

Re: [SR-Users] Removing Via and Record-Route headers

2016-03-19 Thread Marrold
That's essentially what I'm hoping for, although I appreciate from an RFC purist perspective it's probably a bit of a nasty hack. On Sun, Mar 20, 2016 at 2:57 AM, Alex Balashov wrote: > So, you mean some sort of scheme wherein... > > (1) Kamailio keeps endpoint A in the dark as to the fact that

Re: [SR-Users] Removing Via and Record-Route headers

2016-03-19 Thread Marrold
theoretically possible, although it may not be RFC compliant or something that Kamailio supports. Thanks On Sun, Mar 20, 2016 at 2:40 AM, Alex Balashov wrote: > On 03/19/2016 09:43 PM, Marrold wrote: > > It should be theoretically possible to remove some of the via and >> record

Re: [SR-Users] Removing Via and Record-Route headers

2016-03-19 Thread Marrold
ader-diet/ Thanks for the link! On Sun, Mar 20, 2016 at 1:27 AM, Alex Balashov wrote: > Marrold, > > No, you can't remove those headers. They serve an essential purpose and > the endpoints won't consider the requests or responses valid without them. > > See

[SR-Users] Removing Via and Record-Route headers

2016-03-19 Thread Marrold
Hi, Is there any way to remove Via and Record-Route headers from requests sent to an endpoint and update the contact header, but have Kamailio statefully remember where the replies need to route? I imagine this would involve mangling the packets slightly to behave similar to a B2BUA. My motivati

[SR-Users] Fwd: How to get Authorization Attributes

2016-03-06 Thread Marrold
Hi All, I am trying to get attributes from the Proxy-Authenticate WWW-Authenticate and Authorization headers, namely username, realm, uri, nonce, and response, I can see some of these are already presented as psuedo-variables, however nonce and response are not. What's the most efficient way to

Re: [SR-Users] Kamailio as a front-end proxy

2016-03-01 Thread Marrold
In the case of Asterisk you can set outboundproxy= On 1 Mar 2016 10:03, "Anton Tonev" wrote: > Hello everybody, > > I am a new user of Kamailio (4.3.1), I am working with it since 1-2 > months. The thing that I'm trying to do is to build the following system: > > same LAN > > 192.168.0.1 > Alice

Re: [SR-Users] PUBLISH request receives 404 response, and loops on loopback interface

2016-02-21 Thread Marrold
Forwards limit. >> >> Publish URI is PUBLISH sip:2...@kamailio.marrold.co.uk;transport=UDP SIP/2.0 >> >> I have two questions, >> >> 1) Why is this request being sent a 404, when the UAC is in the USRLOC table? >> 2) Why is the request looping until Max Forwa