<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>This From header is in the MSRP message itself, it is not in the
      INVITE opening the MSRP session.</p>
    <p>I guess this is an extension of your MSRP client or maybe an
      addition done later to the core MSRP RFC, because there only
      From-Path is defined, iirc.</p>
    <p>There is no function offered by the msrp module in kamailio.cfg
      to change that header, so it will require to write some c code to
      implement such functionality.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 16.06.17 20:35, Pranathi Venkatayogi
      wrote:<br>
    </div>
    <blockquote
      cite="mid:a2b10b28f01f4b7f9e7e7730574d770e@TACEXH01.cyracom.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <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]-->
      <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 <a class="moz-txt-link-rfc2396E" href="sip:cust3@devtranslation.sms-test.cyracom.com"><sip:cust3@devtranslation.sms-test.cyracom.com></a></span><span
            style="color:windowtext"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">To:
            <a class="moz-txt-link-rfc2396E" href="sip:agent1@xmpp.xgw.cyracomdev.com"><sip:agent1@xmpp.xgw.cyracomdev.com></a><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"
            <a class="moz-txt-link-rfc2396E" href="http://www.w3.org/TR/REC-html40/strict.dtd">"http://www.w3.org/TR/REC-html40/strict.dtd"</a>><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
                [<a class="moz-txt-link-freetext" href="mailto:miconda@gmail.com">mailto:miconda@gmail.com</a>]
                <br>
                <b>Sent:</b> Friday, June 16, 2017 1:50 AM<br>
                <b>To:</b> Pranathi Venkatayogi
                <a class="moz-txt-link-rfc2396E" href="mailto:pvenkatayogi@cyracom.com"><pvenkatayogi@cyracom.com></a>; Kamailio (SER) - Users
                Mailing List <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org"><sr-users@lists.kamailio.org></a><br>
                <b>Cc:</b> Mick McGrellis <a class="moz-txt-link-rfc2396E" href="mailto:MMcGrellis@cyracom.com"><MMcGrellis@cyracom.com></a><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 moz-do-not-send="true"
                href="sip:cust3@">sip:cust3@</a><span
                style="background:yellow;mso-highlight:yellow">devtranslation.sms-test.cyracom.com</span>>#015#012To:
              <a moz-do-not-send="true"
                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 moz-do-not-send="true"
                href="sip:cust3@">sip:cust3@</a><span
                style="background:yellow;mso-highlight:yellow">new
                domain</span> >#015#012To:
              <a moz-do-not-send="true"
                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 moz-do-not-send="true"
              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 moz-do-not-send="true"
              href="https://www.facebook.com/pages/CyraCom-LLC/134704783312720">
              <span style="color:windowtext;text-decoration:none"><img
                  style="width:.1666in;height:.1666in"
                  id="Picture_x0020_22"
                  src="cid:part6.0F68C20F.73D89D1F@gmail.com"
                  alt="cid:image001.gif@01D1C9C9.C4E8B6D0" border="0"
                  height="16" width="16"></span></a> <a
              moz-do-not-send="true" href="https://twitter.com/cyracom"><span
                style="color:windowtext;text-decoration:none"><img
                  style="width:.1666in;height:.1666in"
                  id="Picture_x0020_23"
                  src="cid:part8.E2C0094A.1DB7294D@gmail.com"
                  alt="cid:image002.gif@01D1C9C9.C4E8B6D0" border="0"
                  height="16" width="16"></span></a> <a
              moz-do-not-send="true"
              href="http://www.linkedin.com/company/cyracom"><span
                style="color:windowtext;text-decoration:none"><img
                  style="width:.1666in;height:.1666in"
                  id="Picture_x0020_24"
                  src="cid:part10.1B6FEFBB.26A7A95F@gmail.com"
                  alt="cid:image003.gif@01D1C9C9.C4E8B6D0" border="0"
                  height="16" width="16"></span></a> <a
              moz-do-not-send="true" href="http://www.cyracom.com/blog/"><span
                style="color:windowtext;text-decoration:none"><img
                  style="width:.1666in;height:.1666in"
                  id="Picture_x0020_25"
                  src="cid:part12.5BA21E73.D6321821@gmail.com"
                  alt="cid:image004.gif@01D1C9C9.C4E8B6D0" border="0"
                  height="16" width="16"></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
                style="width:2.0833in;height:.3166in"
                id="Picture_x0020_26"
                src="cid:part14.798B2089.5415DDE3@gmail.com"
                alt="cid:image005.png@01D1C9C9.C4E8B6D0" border="0"
                height="30" width="200"></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 moz-do-not-send="true" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
        <pre>Kamailio Advanced Training - <a moz-do-not-send="true" href="http://www.asipto.com">www.asipto.com</a><o:p></o:p></pre>
        <pre>Kamailio World Conference - <a moz-do-not-send="true" href="http://www.kamailioworld.com">www.kamailioworld.com</a><o:p></o:p></pre>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>