Yes. In the example below, I would like keep the same connection, but change “From” when routing to the other end. And change it back when messages are destined to cust3 again.

 

2017-06-15 18:12:22.622140 [blink.exe 18176]: 10.11.200.13:56459 --> 10.99.52.17:2855

MSRP 724e5edef489340c SEND

To-Path: msrps://10.99.52.17:2855/s.28641.1.1903524142;tcp msrps://10.99.54.18:2855/e47976b4f6716ca7ce3a;tcp

From-Path: msrps://10.0.0.5:56459/bf85600695b5ab468931;tcp

Message-ID: 557e5ab42c43da38

Byte-Range: 1-667/667

Success-Report: yes

Failure-Report: yes

Content-Type: message/cpim

From: cust3 <sip:cust3@devtranslation.sms-test.cyracom.com>

To: <sip:agent1@xmpp.xgw.cyracomdev.com>

DateTime: 2017-06-15T18:12:22.620140-05:00

MIME-Version: 1.0

Content-Type: text/html; charset="utf8"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<html><head><meta name="qrichtext" content="1" /><style type="text/css">

p, li { white-space: pre-wrap; }

</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;">

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">new one</p></body></html>

-------724e5edef489340c$

 

From: Daniel-Constantin Mierla [mailto:miconda@gmail.com]
Sent: Friday, June 16, 2017 1:50 AM
To: Pranathi Venkatayogi <pvenkatayogi@cyracom.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: Mick McGrellis <MMcGrellis@cyracom.com>
Subject: Re: How to change MSRP from sip address?

 

Hello,

what do you mean by 'from sip address'? The From header in the INVITE initiating a MSRP chat?

Cheers,
Daniel

 

On 15.06.17 23:56, Pranathi Venkatayogi wrote:

I need to replace the “From” address of MSRP message with something different.

I noticed that module does not allow one to set values from config file.

 

What does it take to enable this functionality? Does anyone have a prototype I can leverage?

 

Need to replace from domain with some other domain –

 

Given: MSRP body is - From: cust3 <sip:cust3@devtranslation.sms-test.cyracom.com>#015#012To: <sip:agent1@xmpp.xgw.cyracomdev.com>#015#012DateTime: …..

 

Wanted: MSRP body is - From: cust3 <sip:cust3@new domain >#015#012To: <sip:agent1@xmpp.xgw.cyracomdev.com>#015#012DateTime: …..

 

Thanks,

Pranathi Venkatayogi

System Developer II

(520) 745-9447 x4466

www.cyracom.com

 

Join us:   cid:image001.gif@01D1C9C9.C4E8B6D0 cid:image002.gif@01D1C9C9.C4E8B6D0 cid:image003.gif@01D1C9C9.C4E8B6D0 cid:image004.gif@01D1C9C9.C4E8B6D0

 

cid:image005.png@01D1C9C9.C4E8B6D0

 

DISCLAIMER: This e-mail and any attached content may contain confidential or privileged material delivered for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender immediately by reply e-mail and delete all copies of this message. It is the recipient's responsibility to scan this e-mail and any attachments for viruses. The content of this e-mail message, including any attachments, does not comprise a contract or a portion of a contract, and so does not bind CyraCom International, Inc. or any of its agents or subsidiaries. CyraCom, LLC and Voiance Language Services, LLC are wholly owned subsidiaries of CyraCom International, Inc.

 



-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com