[SR-Users] Replicate REGISTER and save original received value
Alex Balashov
abalashov at evaristesys.com
Mon Mar 11 21:21:57 CET 2019
Now that I think about it, I wonder if the issue is that add_rcv_param()
won't add the 'received' parameter to the necessary usrloc structures to
be passed over DMQ.
We don't use add_rcv_param(). We have these options set:
modparam("registrar", "received_avp", "$avp(contact_recv)")
modparam("registrar", "received_param", "received")
modparam("registrar", "path_check_local", 1)
And it seems to "just work".
-- Alex
On Mon, Mar 11, 2019 at 04:15:21PM -0400, Alex Balashov wrote:
> Hi Daniel,
>
> The 'received' parameter should be replicated. It is in one of our
> dmq_usrloc rigs, which has four nodes, and registrations can come into
> any of them.
>
> By way of example:
>
> [root at gw kamailio]# kamcmd -s /tmp/kamailio_ctl ul.lookup location abalashov at sip.$DOMAIN
> {
> AoR: abalashov at sip.$DOMAIN
> Contacts: {
> Contact: {
> Address: sip:abalashov at 172.30.105.251:5060;alias=$PUBLIC_IP~5060~1
> Expires: 112
> Q: 0.000000
> Call-ID: b1663a59ecd8732037017105a82662d3
> CSeq: 3030
> User-Agent: PolycomVVX-VVX_411-UA/5.6.0.17325
> Received: sip:$PUBLIC_IP:5060
> Path: <sip:$NOT_THIS_HOST:5080;lr>
> State: CS_NEW
> Flags: 0
> CFlags: 0
> Socket: [not set]
> Methods: 8159
> Ruid: uloc-5c6a50c4-5c25-98d
> Instance: [not set]
> Reg-Id: 0
> Server-Id: 0
> Tcpconn-Id: -1
> Keepalive: 0
> Last-Keepalive: 1552335034
> Last-Modified: 1552335034
> }
> }
> }
>
> There's a 50% chance I could be mistaken, but I vaguely remember that
> replication of 'received' was an issue in some earlier version of
> Kamailio than that.
>
> -- Alex
>
> On Mon, Mar 11, 2019 at 05:13:31PM +0000, Daniel W. Graham wrote:
>
> > When forwarding / replicating a REGISTER, is it possible (without using DMQ) for the receiving host to save the contact with the original received parameter?
> >
> > REGISTER > server 1 (received set) > forward > server 2 (received not set)
> >
> > add_rcv_param will set received to server 1 IP, but I'm looking for the original parameter as set on SERVER 1.
> >
> > -dan
>
> > _______________________________________________
> > Kamailio (SER) - Users Mailing List
> > sr-users at lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
More information about the sr-users
mailing list