<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">2017-06-15 18:12:22.622140 [blink.exe 18176]: 10.11.200.13:56459 --> 10.99.52.17:2855<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">MSRP 724e5edef489340c SEND<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">To-Path: msrps://10.99.52.17:2855/s.28641.1.1903524142;tcp msrps://10.99.54.18:2855/e47976b4f6716ca7ce3a;tcp<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">From-Path: msrps://10.0.0.5:56459/bf85600695b5ab468931;tcp<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Message-ID: 557e5ab42c43da38<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Byte-Range: 1-667/667<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Success-Report: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Failure-Report: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Content-Type: message/cpim<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext;background:yellow;mso-highlight:yellow">From: cust3 <sip:cust3@devtranslation.sms-test.cyracom.com></span><span style="color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">To: <sip:agent1@xmpp.xgw.cyracomdev.com><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">DateTime: 2017-06-15T18:12:22.620140-05:00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">MIME-Version: 1.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Content-Type: text/html; charset="utf8"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><html><head><meta name="qrichtext" content="1" /><style type="text/css"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">p, li { white-space: pre-wrap; }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"></style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><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><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">-------724e5edef489340c$<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span style="color:windowtext"> Daniel-Constantin Mierla [mailto:miconda@gmail.com]
<br>
<b>Sent:</b> Friday, June 16, 2017 1:50 AM<br>
<b>To:</b> Pranathi Venkatayogi <pvenkatayogi@cyracom.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org><br>
<b>Cc:</b> Mick McGrellis <MMcGrellis@cyracom.com><br>
<b>Subject:</b> Re: How to change MSRP from sip address?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hello,<span style="font-size:12.0pt"><o:p></o:p></span></p>
<p>what do you mean by 'from sip address'? The From header in the INVITE initiating a MSRP chat?<o:p></o:p></p>
<p>Cheers,<br>
Daniel<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 15.06.17 23:56, Pranathi Venkatayogi wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">I need to replace the “From” address of MSRP message with something different.<o:p></o:p></p>
<p class="MsoNormal">I noticed that module does not allow one to set values from config file.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">What does it take to enable this functionality? Does anyone have a prototype I can leverage?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Need to replace from domain with some other domain – <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Given: <span style="font-size:10.0pt;background:white">MSRP body is - From: cust3 <<a href="sip:cust3@">sip:cust3@</a><span style="background:yellow;mso-highlight:yellow">devtranslation.sms-test.cyracom.com</span>>#015#012To:
<a href="sip:agent1@xmpp.xgw.cyracomdev.com"><sip:agent1@xmpp.xgw.cyracomdev.com></a>#015#012DateTime: …..</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Wanted: <span style="font-size:10.0pt;background:white">MSRP body is - From: cust3 <<a href="sip:cust3@">sip:cust3@</a><span style="background:yellow;mso-highlight:yellow">new domain</span> >#015#012To:
<a href="sip:agent1@xmpp.xgw.cyracomdev.com"><sip:agent1@xmpp.xgw.cyracomdev.com></a>#015#012DateTime: …..</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><b>Pranathi Venkatayogi</b><o:p></o:p></p>
<p class="MsoNormal"><i>System Developer II</i><o:p></o:p></p>
<p class="MsoNormal">(520) 745-9447 x4466<o:p></o:p></p>
<p class="MsoNormal"><a href="http://www.cyracom.com/"><span style="color:blue">www.cyracom.com</span></a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Join us:   <a href="https://www.facebook.com/pages/CyraCom-LLC/134704783312720">
<span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_22" src="cid:image002.png@01D2E6A4.E6B0FEF0" alt="cid:image001.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="https://twitter.com/cyracom"><span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_23" src="cid:image004.png@01D2E6A4.E6B0FEF0" alt="cid:image002.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="http://www.linkedin.com/company/cyracom"><span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_24" src="cid:image006.png@01D2E6A4.E6B0FEF0" alt="cid:image003.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="http://www.cyracom.com/blog/"><span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_25" src="cid:image008.png@01D2E6A4.E6B0FEF0" alt="cid:image004.gif@01D1C9C9.C4E8B6D0"></span></a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#A6A6A6"><img border="0" width="200" height="30" style="width:2.0833in;height:.3166in" id="Picture_x0020_26" src="cid:image010.png@01D2E6A4.E6B0FEF0" alt="cid:image005.png@01D1C9C9.C4E8B6D0"></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#A6A6A6">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.</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla<o:p></o:p></pre>
<pre><a href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre>Kamailio Advanced Training - <a href="http://www.asipto.com">www.asipto.com</a><o:p></o:p></pre>
<pre>Kamailio World Conference - <a href="http://www.kamailioworld.com">www.kamailioworld.com</a><o:p></o:p></pre>
</div>
</body>
</html>