[sr-dev] git:master: modules/rr: if outbound request is outgoing, do nothing outbound

Juha Heinanen jh at tutpro.com
Fri Apr 19 16:00:12 CEST 2013


Peter Dunkley writes:

> That fix looks OK.  I'd have done it slightly differently, moving the 
> "return 1" into the last "else if" and then having the "return 0" as the 
> catch-all at the end of the function instead of adding an "else" case.

peter,

feel free to improve to your liking.

once i got that solved, i'm next havind trouble with record-route added
by edge proxy (as i already mentioned in previous message).

here is invite that comes to edge proxy:

T 2013/04/19 16:50:00.043131 192.98.102.10:48018 -> 192.98.102.10:5060 [AP]
INVITE sip:test at test.fi SIP/2.0.
Via: SIP/2.0/TCP 192.98.102.10:48018;rport;branch=z9hG4bKPj19602c3d-c72f-4a4c-830d-400175af5366.
Max-Forwards: 70.
From: sip:jh at test.fi;tag=69f53ec5-b56e-4887-911d-5b389ae5ce8d.
To: sip:test at test.fi.
Contact: <sip:jh at 192.98.102.10:5068;transport=TCP;ob>.
Call-ID: 4529a8ec-bee6-4205-942f-be567e41a52e.
CSeq: 22685 INVITE.
Route: <sip:192.98.102.10;transport=tcp;lr>.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Supported: replaces, 100rel, timer, norefersub.
Session-Expires: 1800.
Min-SE: 90.
User-Agent: PJSUA v2.1 Linux-3.2.0.4/x86_64/glibc-2.13.
Content-Type: application/sdp.
Content-Length:   476.

it does not have Supported: outbound, but there is ;ob param in contact.

edge proxy then adds to the request this kind of R-R header:

Record-Route: <sip:/RhTFGTFRK1L8wLAYmYKE8TAYmYKu5I=@192.98.102.10:5070;transport=tcp;lr>

is this correct, because based on it, the ua that sent the invite above,
sends ack to incorrectly to 192.98.102.10:5070:

T 2013/04/19 16:56:33.521310 192.98.102.10:41051 -> 192.98.102.10:5070 [AP]
ACK sip:0x179a610 at 192.98.102.10:55798;transport=tcp SIP/2.0.
Via: SIP/2.0/TCP 192.98.102.10:41051;rport;branch=z9hG4bKPj9b826086-ba81-4798-9887-8e72e094276d.
Max-Forwards: 70.
From: sip:jh at test.fi;tag=cb46683f-021e-4fac-b60d-e8e23accdfe7.
To: sip:test at test.fi;tag=461b8ff42168dbf0.
Call-ID: a7869ed1-82fd-4650-a987-f62dd8551b1d.
CSeq: 32765 ACK.
Route: <sip:/RhTFGTFRK1L8wLAYmYKE8TAYmYKu5I=@192.98.102.10:5070;transport=tcp;lr>.
Route: <sip:/eWzbwNo9LE2pQLAYmYUE8TAYmYK2fY=@192.98.102.20;transport=tcp;lr>.
Content-Length:  0.

-- juha



More information about the sr-dev mailing list