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
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@gw kamailio]# kamcmd -s /tmp/kamailio_ctl ul.lookup location abalashov@sip.$DOMAIN { AoR: abalashov@sip.$DOMAIN Contacts: { Contact: { Address: sip:abalashov@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
On Mon, Mar 11, 2019 at 04:15:21PM -0400, Alex Balashov wrote:
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.
And by "that" I mean 5.1.1.
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@gw kamailio]# kamcmd -s /tmp/kamailio_ctl ul.lookup location abalashov@sip.$DOMAIN { AoR: abalashov@sip.$DOMAIN Contacts: { Contact: { Address: sip:abalashov@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@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi, I can confirm dmq_usrloc does replicate received, however I need to do this outside of DMQ. I have a host I need to send specific REGISTERs to so I can't include that host in the DMQ group, as it would receive all usr_loc records.
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:15 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
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@gw kamailio]# kamcmd -s /tmp/kamailio_ctl ul.lookup location abalashov@sip.$DOMAIN { AoR: abalashov@sip.$DOMAIN Contacts: { Contact: { Address: sip:abalashov@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@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Oh, I’m sorry! I misread your message and was sure you meant “with DMQ”.
In that case, if you have complete control over the relay process, why not just append the proximate source IP and port as a custom SIP header before forwarding the registration, then extract it on the other side and store it locally using an overridden received parameter value?
If you can’t do that, have you considered set/add_contact_alias() (nathelper module) to manipulate the stored binding prior to forwarding? If you then call handle_ruri_alias() after resolution on the proximate hop to the endpoint, it will strip off the alias parameter, if present, and use the values stored therein as the destination URI.
— Sent from mobile, with due apologies for brevity and errors.
On Mar 11, 2019, at 4:23 PM, Daniel W. Graham dan@cmsinter.net wrote:
Hi, I can confirm dmq_usrloc does replicate received, however I need to do this outside of DMQ. I have a host I need to send specific REGISTERs to so I can't include that host in the DMQ group, as it would receive all usr_loc records.
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:15 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
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@gw kamailio]# kamcmd -s /tmp/kamailio_ctl ul.lookup location abalashov@sip.$DOMAIN { AoR: abalashov@sip.$DOMAIN Contacts: { Contact: { Address: sip:abalashov@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@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
No problem. I didn’t consider either option but like the first idea, how do you recommend overriding the received parameter value?
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:28 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
Oh, I’m sorry! I misread your message and was sure you meant “with DMQ”.
In that case, if you have complete control over the relay process, why not just append the proximate source IP and port as a custom SIP header before forwarding the registration, then extract it on the other side and store it locally using an overridden received parameter value?
If you can’t do that, have you considered set/add_contact_alias() (nathelper module) to manipulate the stored binding prior to forwarding? If you then call handle_ruri_alias() after resolution on the proximate hop to the endpoint, it will strip off the alias parameter, if present, and use the values stored therein as the destination URI.
— Sent from mobile, with due apologies for brevity and errors.
On Mar 11, 2019, at 4:23 PM, Daniel W. Graham dan@cmsinter.net wrote:
Hi, I can confirm dmq_usrloc does replicate received, however I need to do this outside of DMQ. I have a host I need to send specific REGISTERs to so I can't include that host in the DMQ group, as it would receive all usr_loc records.
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:15 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
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@gw kamailio]# kamcmd -s /tmp/kamailio_ctl ul.lookup location abalashov@sip.$DOMAIN { AoR: abalashov@sip.$DOMAIN Contacts: { Contact: { Address: sip:abalashov@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@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
On Mon, Mar 11, 2019 at 08:46:01PM +0000, Daniel W. Graham wrote:
No problem. I didn’t consider either option but like the first idea, how do you recommend overriding the received parameter value?
Well, now that I look at the docs, there isn't really a straightforward way short of manipulating the Contact directly.
That would leave you no better off than just doing the set_contact_alias() + handle_ruri_alias() thing, so I would just do that.
Ok, that’s why I was asking.... wasn't finding a way to do so.
Thanks for the input and I'll see where I can get with the second option.
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:48 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
On Mon, Mar 11, 2019 at 08:46:01PM +0000, Daniel W. Graham wrote:
No problem. I didn’t consider either option but like the first idea, how do you recommend overriding the received parameter value?
Well, now that I look at the docs, there isn't really a straightforward way short of manipulating the Contact directly.
That would leave you no better off than just doing the set_contact_alias() + handle_ruri_alias() thing, so I would just do that.
-- 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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
This worked out. Thanks again.
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Daniel W. Graham Sent: Monday, March 11, 2019 4:53 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
Ok, that’s why I was asking.... wasn't finding a way to do so.
Thanks for the input and I'll see where I can get with the second option.
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:48 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
On Mon, Mar 11, 2019 at 08:46:01PM +0000, Daniel W. Graham wrote:
No problem. I didn’t consider either option but like the first idea, how do you recommend overriding the received parameter value?
Well, now that I look at the docs, there isn't really a straightforward way short of manipulating the Contact directly.
That would leave you no better off than just doing the set_contact_alias() + handle_ruri_alias() thing, so I would just do that.
-- 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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
an alternative: the received value can be taken from an avp, so you can pass its value via an header from the node that does replication:
append_hf(“P-RCV-ADDR: $avp(received)\r\n");
Then you can do t_replicate().
In the node that receives replication, do:
$avp(received) = $hdr(P-RCV-ADDR);
then save(). The name of the avp has to be specified via modparam to registrar module.
Cheers, Daniel
On 11.03.19 22:20, Daniel W. Graham wrote:
This worked out. Thanks again.
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Daniel W. Graham Sent: Monday, March 11, 2019 4:53 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
Ok, that’s why I was asking.... wasn't finding a way to do so.
Thanks for the input and I'll see where I can get with the second option.
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:48 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
On Mon, Mar 11, 2019 at 08:46:01PM +0000, Daniel W. Graham wrote:
No problem. I didn’t consider either option but like the first idea, how do you recommend overriding the received parameter value?
Well, now that I look at the docs, there isn't really a straightforward way short of manipulating the Contact directly.
That would leave you no better off than just doing the set_contact_alias() + handle_ruri_alias() thing, so I would just do that.
-- 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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
On the sending host, the value of $avp(received) has to be set manually?
-dan
-----Original Message----- From: Daniel-Constantin Mierla miconda@gmail.com Sent: Tuesday, March 12, 2019 8:09 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org; Daniel W. Graham dan@cmsinter.net Subject: Re: [SR-Users] Replicate REGISTER and save original received value
Hello,
an alternative: the received value can be taken from an avp, so you can pass its value via an header from the node that does replication:
append_hf(“P-RCV-ADDR: $avp(received)\r\n");
Then you can do t_replicate().
In the node that receives replication, do:
$avp(received) = $hdr(P-RCV-ADDR);
then save(). The name of the avp has to be specified via modparam to registrar module.
Cheers, Daniel
On 11.03.19 22:20, Daniel W. Graham wrote:
This worked out. Thanks again.
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Daniel W. Graham Sent: Monday, March 11, 2019 4:53 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
Ok, that’s why I was asking.... wasn't finding a way to do so.
Thanks for the input and I'll see where I can get with the second option.
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:48 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
On Mon, Mar 11, 2019 at 08:46:01PM +0000, Daniel W. Graham wrote:
No problem. I didn’t consider either option but like the first idea, how do you recommend overriding the received parameter value?
Well, now that I look at the docs, there isn't really a straightforward way short of manipulating the Contact directly.
That would leave you no better off than just doing the set_contact_alias() + handle_ruri_alias() thing, so I would just do that.
-- 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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com
I now see this comes from nathelper module, thanks!
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Daniel W. Graham Sent: Tuesday, March 12, 2019 5:02 PM To: miconda@gmail.com; Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
On the sending host, the value of $avp(received) has to be set manually?
-dan
-----Original Message----- From: Daniel-Constantin Mierla miconda@gmail.com Sent: Tuesday, March 12, 2019 8:09 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org; Daniel W. Graham dan@cmsinter.net Subject: Re: [SR-Users] Replicate REGISTER and save original received value
Hello,
an alternative: the received value can be taken from an avp, so you can pass its value via an header from the node that does replication:
append_hf(“P-RCV-ADDR: $avp(received)\r\n");
Then you can do t_replicate().
In the node that receives replication, do:
$avp(received) = $hdr(P-RCV-ADDR);
then save(). The name of the avp has to be specified via modparam to registrar module.
Cheers, Daniel
On 11.03.19 22:20, Daniel W. Graham wrote:
This worked out. Thanks again.
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Daniel W. Graham Sent: Monday, March 11, 2019 4:53 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
Ok, that’s why I was asking.... wasn't finding a way to do so.
Thanks for the input and I'll see where I can get with the second option.
-dan
-----Original Message----- From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:48 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Replicate REGISTER and save original received value
On Mon, Mar 11, 2019 at 08:46:01PM +0000, Daniel W. Graham wrote:
No problem. I didn’t consider either option but like the first idea, how do you recommend overriding the received parameter value?
Well, now that I look at the docs, there isn't really a straightforward way short of manipulating the Contact directly.
That would leave you no better off than just doing the set_contact_alias() + handle_ruri_alias() thing, so I would just do that.
-- 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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users