[prev in list] [next in list] [prev in thread] [next in thread]
List: openser-users
Subject: Re: [SR-Users] Location Fields Address vs Received
From: Sergiu Pojoga <pojogas () gmail ! com>
Date: 2020-11-25 16:33:31
Message-ID: CAJZsGCk63_bnxv+HoiGbU_zLmh5CCuHS=H6CR6O27ZEpboBVRA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
In short, if NAT is detected during REGISTER - then Received is set (it
later becomes the D-URI when sending something to that Contact).
https://kamailio.org/docs/modules/stable/modules/nathelper.html#nathelper.p.received_avp
Regards,
On Wed, Nov 25, 2020 at 10:54 AM Daniel Greenwald <dgreenwald@gmail.com>
wrote:
> On a usrloc record there is an Address field and Received field. The
> Received field is sometimes not set. What causes it to be not set and what
> is the difference between the two fields. Sorry if this is a dumb question,
> I looked at documentation but couldn't find it spelled out. Here is are 2
> examples from kamcmd ul.dump:
> {
> AoR: utkcf9b6h3@ata.phaxio.com
> Contacts: {
> Contact: {
> Address: sip:utkc4ff9b6h3@69.78.34.56:4615;transport=tcp
>
> Expires: 42
> Q: -1.000000
> Call-ID: d1c314305df3d342@192.168.0.3
> CSeq: 129173
> User-Agent: OBIHAI/OBi200-3.2.2.5898
> Received: [not set]
> Path: [not set]
> State: CS_NEW
> Flags: 0
> CFlags: 0
> Socket: tcp:10.0.22.254:5060
> Methods: 7839
> Ruid: uloc-5fbdd369-491e-4
> Instance:
> <urn:uuid:00000000-0000-0000-0000-9cadef62b3da>
> Reg-Id: 0
> Server-Id: 0
> Tcpconn-Id: 58
> Keepalive: 0
> Last-Keepalive: 1606317577
> Last-Modified: 1606317577
> }
> }
> }
>
>
>
>
> Contact: {
> Address: sip:mfjngfd272av@192.168.0.106:5060
> Expires: 30
> Q: -1.000000
> Call-ID: 67413de375b2e76c@192.168.0.106
> CSeq: 146320
> User-Agent: OBIHAI/OBi300-3.2.2.5921
> Received: sip:70.34.56.78:5060
> Path: [not set]
> State: CS_NEW
> Flags: 0
> CFlags: 64
> Socket: udp:10.0.22.254:5060
> Methods: 7839
> Ruid: uloc-5fbdd369-490e-efa3
> Instance: <urn:uuid:00000000-0000-0000-0000-9cadef810877>
> Reg-Id: 0
> Server-Id: 0
> Tcpconn-Id: -1
> Keepalive: 1
> Last-Keepalive: 1606314719
> Last-Modified: 1606314719
> }
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
[Attachment #5 (text/html)]
<div dir="ltr">In short, if NAT is detected during REGISTER - then Received is set \
(it later becomes the D-URI when sending something to that \
Contact).<div><br><div><div><a \
href="https://kamailio.org/docs/modules/stable/modules/nathelper.html#nathelper.p.rece \
ived_avp">https://kamailio.org/docs/modules/stable/modules/nathelper.html#nathelper.p. \
received_avp</a><br></div></div></div><div><br></div><div>Regards,</div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 25, 2020 at 10:54 \
AM Daniel Greenwald <<a \
href="mailto:dgreenwald@gmail.com">dgreenwald@gmail.com</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>On \
a usrloc record there is an Address field and Received field. The Received field is \
sometimes not set. What causes it to be not set and what is the difference between \
the two fields. Sorry if this is a dumb question, I looked at documentation but \
couldn't find it spelled out. Here is are 2 examples from kamcmd \
ul.dump:</div><div><span style="font-family:monospace"><span \
style="color:rgb(0,0,0);background-color:rgb(255,255,255)">{ </span><br> AoR: \
<a href="mailto:utkcf9b6h3@ata.phaxio.com" \
target="_blank">utkcf9b6h3@ata.phaxio.com</a> <br> Contacts: {
<br> Contact: {
<br> Address: sip:utkc4ff9b6h3@69.78.34.56:4615;transport=tcp
<br> Expires: 42
<br> Q: -1.000000
<br> Call-ID: <a href="mailto:d1c314305df3d342@192.168.0.3" \
target="_blank">d1c314305df3d342@192.168.0.3</a> <br> CSeq: \
129173 <br> User-Agent: OBIHAI/OBi200-3.2.2.5898
<br> Received: [not set]
<br> Path: [not set]
<br> State: CS_NEW
<br> Flags: 0
<br> CFlags: 0
<br> Socket: tcp:<a href="http://10.0.22.254:5060" \
target="_blank">10.0.22.254:5060</a> <br> Methods: 7839
<br> Ruid: uloc-5fbdd369-491e-4
<br> Instance: \
<urn:uuid:00000000-0000-0000-0000-9cadef62b3da> <br> \
Reg-Id: 0 <br> Server-Id: 0
<br> Tcpconn-Id: 58
<br> Keepalive: 0
<br> Last-Keepalive: 1606317577
<br> Last-Modified: 1606317577
<br> }
<br> }
<br>}<br>
</span></div><div><span style="font-family:monospace"><br></span></div><div><span \
style="font-family:monospace"><br></span></div><div><span \
style="font-family:monospace"><br></span></div><div><span \
style="font-family:monospace"><br></span></div><div><span \
style="font-family:monospace"> Contact: {<br> Address: <a \
href="http://sip:mfjngfd272av@192.168.0.106:5060" \
target="_blank">sip:mfjngfd272av@192.168.0.106:5060</a><br> Expires: \
30<br> Q: -1.000000<br> Call-ID: <a \
href="mailto:67413de375b2e76c@192.168.0.106" \
target="_blank">67413de375b2e76c@192.168.0.106</a><br> CSeq: \
146320<br> User-Agent: OBIHAI/OBi300-3.2.2.5921<br> \
Received: sip:<a href="http://70.34.56.78:5060" \
target="_blank">70.34.56.78:5060</a><br> Path: [not set]<br> \
State: CS_NEW<br> Flags: 0<br> CFlags: 64<br> \
Socket: udp:<a href="http://10.0.22.254:5060" \
target="_blank">10.0.22.254:5060</a><br> Methods: 7839<br> \
Ruid: uloc-5fbdd369-490e-efa3<br> Instance: \
<urn:uuid:00000000-0000-0000-0000-9cadef810877><br> Reg-Id: \
0<br> Server-Id: 0<br> Tcpconn-Id: -1<br> \
Keepalive: 1<br> Last-Keepalive: 1606314719<br> \
Last-Modified: 1606314719<br> }<br></span></div></div> \
_______________________________________________<br> Kamailio (SER) - Users Mailing \
List<br> <a href="mailto:sr-users@lists.kamailio.org" \
target="_blank">sr-users@lists.kamailio.org</a><br> <a \
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" \
target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br> \
</blockquote></div>
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic