<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>I am struggling to see why my SDP is not being set correctly on
      the INVITE to my supplier with Proxy-Authentication when I use
      uac_auth().</p>
    <p>The initial INVITE to my supplier has correct SDP set by
      rtpengine_manage. Then supplier replies with a 407.  My failure
      route correctly handles the Auth, and also calls NATMANAGE
      again... but this time the SDP is unchanged and the private IP and
      original media information from the original device is relayed to
      my supplier. <br>
      <br>
      kamailio.cfg isbased on the default config.  Running kamailio
      5.4.6 and using example from uac module for uac_auth.</p>
    <p>My failure route calls NATMANAGE.  Is there anything special
      about uac_auth?  Do I need some extra magic to apply the message
      body changes after I have run rtpengine_manage().</p>
    <p>====================<br>
    </p>
    <p>Extract of kamailio.cfg<br>
    </p>
    <blockquote><br>
      <pre>failure_route[TRUNKAUTH] {</pre>
      <pre>
    if (t_is_canceled()) {</pre>
      <pre>        exit;</pre>
      <pre>    }</pre>
      <pre>    route(NATMANAGE);</pre>
      <pre>
    xlog("L_INFO","In failure route, just finshed NATMANAGE and now body is $mb");</pre>
      <pre>
    if(t_check_status("401|407")) {</pre>
      <pre>        # $avp(auser) = "test";</pre>
      <pre>        # $avp(apass) = "test";</pre>
      <pre>        # $avp(apass) = "36d0a02793542b4961e8348347236dbf";</pre>
      <pre>        if (uac_auth()) {</pre>
      <pre>                t_relay();</pre>
      <pre>        }</pre>
      <pre>        exit;</pre>
      <pre>    }</pre>
      <pre>}</pre>
      <br>
    </blockquote>
  </body>
</html>