Re: [SR-Users] Path & Loose Route

2016-08-04 Thread Luke Milbourne
Hi Daniel, As mentioned previously, I've pasted a copy of the loose.c log lines below. Aug 4 09:21:43 ip-10-10-2-5 /sbin/kamailio[4711]: DEBUG: rr [loose.c:179]: find_next_route(): No next Route HF found Aug 4 09:21:43 ip-10-10-2-5 /sbin/kamailio[4711]: DEBUG: rr [loose.c:846]: after_loose():

Re: [SR-Users] Path & Loose Route

2016-08-04 Thread Luke Milbourne
Hi Daniel, Thanks again for your reply again. I remembered about the debug setting and done it yesterday, not at my pc right now but I remember one of the log lines was saying "the topmost route header is me". Still trying to understand it, but will get a copy of the log lines for you, if you

Re: [SR-Users] Path & Loose Route

2016-08-03 Thread Daniel-Constantin Mierla
Hello, set debug=3 in kamailio.cfg and look at log messages in syslog. If you find it too verbose, use dispatcher module and set debug level only for core and rr modules to 3. Cheers, Daniel On 03/08/16 13:22, Luke Milbourne wrote: > Hi Daniel, > > I've added some more logging and can see

Re: [SR-Users] Path & Loose Route

2016-08-03 Thread Luke Milbourne
Hi Daniel, I've added some more logging and can see loose_route() is returning -1 - route calculation has been unsuccessful. Is there a way of finding out why this is the case? Kind regards, Luke On 2 August 2016 at 09:49, Luke Milbourne wrote: > I added the below

Re: [SR-Users] Path & Loose Route

2016-08-02 Thread Luke Milbourne
I added the below xlog lines into my script: xlog("L_NOTICE", "Before loose_route: $si -> $ru - $du\n"); xlog("L_NOTICE", "Before record_route: $si -> $ru - $du\n"); xlog("L_NOTICE", "After both: $si -> $ru - $du\n"); Which generated the below output in syslog: Aug 2 09:46:11 ip-10-10-2-5

Re: [SR-Users] Path & Loose Route

2016-08-02 Thread Luke Milbourne
Morning Gents, Firstly, thanks for taking the time to reply :) Kamailio is doing the NAT detection and simply acting as a passthrough to FreeSWITCH (which handles all SIP registrations etc). Will setup the log lines shortly and share the results. kamailio -V outputs; version: kamailio 4.3.4

Re: [SR-Users] Path & Loose Route

2016-08-02 Thread Daniel-Constantin Mierla
Hello, yes, loose_route() should be used there. Can you add a log message and print $ru and $du before and after loose_route() in config and then send the result to this mailing list? Btw, what version of Kamailio are you using? Cheers, Daniel On 01/08/16 14:46, Luke Milbourne wrote: > Is it

Re: [SR-Users] Path & Loose Route

2016-08-01 Thread Colin Morelli
Luke, This is actually the behavior I would expect, though admittedly I've never tried to rely on received= parameter routing for requests (I wasn't aware that was something that should be supported). However, you're probably better of addressing your NAT issues in a different part of your

Re: [SR-Users] Path & Loose Route

2016-08-01 Thread Luke Milbourne
Hi All, I've been going through my script against other examples on the internet and cannot see any differences, also changing use_received between 1 and 0 makes no different. Kamailio still uses the Contact header instead of the Route header. If any one has any suggestions it would be very

Re: [SR-Users] Path & Loose Route

2016-08-01 Thread Luke Milbourne
Is it correct to use loose_route() along side the path module? On 1 August 2016 at 13:33, Luke Milbourne wrote: > Hi Daniel, > > Yep, I've got the below in my kamailio.cfg > > modparam("path", "use_received", 1) > > Kind regards, > Luke > > On 1 August 2016 at 13:25,

Re: [SR-Users] Path & Loose Route

2016-08-01 Thread Luke Milbourne
Hi Daniel, Yep, I've got the below in my kamailio.cfg modparam("path", "use_received", 1) Kind regards, Luke On 1 August 2016 at 13:25, Daniel-Constantin Mierla wrote: > Hello, > > On 01/08/16 14:14, Luke Milbourne wrote: > > Hi all, > > Currently trying to use Kamailio as

Re: [SR-Users] Path & Loose Route

2016-08-01 Thread Daniel-Constantin Mierla
Hello, On 01/08/16 14:14, Luke Milbourne wrote: > Hi all, > > Currently trying to use Kamailio as a passthrough to some FreeSWITCH > boxes. > > When receiving an invite from FreeSWITCH which contains a Route header > including received information, example below; > > Route:

[SR-Users] Path & Loose Route

2016-08-01 Thread Luke Milbourne
Hi all, Currently trying to use Kamailio as a passthrough to some FreeSWITCH boxes. When receiving an invite from FreeSWITCH which contains a Route header including received information, example below; Route: ;lr;received=sip:[PUBLIC_IP]:45126 When using loose_route()