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