<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello,<br>
<br>
On 03/16/2010 03:05 PM, Brandon Armstead wrote:
<blockquote
 cite="mid:d52f51c81003160705k1d2fd3ecv4af2e238b9a23043@mail.gmail.com"
 type="cite">Daniel,<br>
  <br>
&nbsp;&nbsp;&nbsp; I did do a check and "" quotes are printing in xlog for $fn.<br>
</blockquote>
<br>
can you send the sip trace for such case? I tested with options and ""
is removed.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
 cite="mid:d52f51c81003160705k1d2fd3ecv4af2e238b9a23043@mail.gmail.com"
 type="cite"><br>
Thanks!<br>
  <br>
Sincerely,<br>
Brandon Armstead<br>
  <br>
  <div class="gmail_quote">On Tue, Mar 16, 2010 at 7:32 AM,
Daniel-Constantin Mierla <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div text="#000000" bgcolor="#ffffff">
Hello,
    <div class="im"><br>
    <br>
On 03/16/2010 01:22 PM, Brandon Armstead wrote:
    </div>
    <blockquote type="cite">Daniel,<br>
      <br>
      <div class="im">&nbsp;&nbsp;&nbsp; So if I am to set it to "none" it should give
me the desired
affects, and not alter back to the original From header upon
transmission of an ACK?<br>
      </div>
    </blockquote>
    <br>
auto mode should do everything (update/restore From (or To)) for within
dialog requests, if you used uac_replace_from() for initial INVITE,
therefore this is the best mode. However, it adds an extra parameter
(pretty long) to RR header and some UA strips it when building the
reply.<br>
    <br>
If you know you are in a SIP2.0 (rfc3261) compatible environment, then
you can use other modes.<br>
    <br>
In sip 2.0 a dialog is identified by call-id, from-tag and to-tag,
which are not affected by From updates. However, in previous version of
sip, From URI and To URI were used to identify the sip dialog,
therefore, in order to be compatible with sip 1.0 then you should not
change From/To.<br>
    <br>
In auto mode, the From/To are restored to be safe with sip 1.0 devices.<br>
    <br>
Btw, if you have time, can you please print the $fn in xlog for ACK and
send it here? Will show if quotes are considered part of display name.
If not, I will look later in sources.<br>
    <br>
Cheers,<br>
Daniel<br>
    <br>
    <blockquote type="cite">
      <div>
      <div class="h5"><br>
Sincerely,<br>
Brandon Armstead<br>
      <br>
      <div class="gmail_quote">On Tue, Mar 16, 2010 at 7:05 AM,
Daniel-Constantin Mierla <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span>
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        <div text="#000000" bgcolor="#ffffff">
        <div><br>
        <br>
On 03/16/2010 01:03 PM, Brandon Armstead wrote:
        <blockquote type="cite">Value of uac_restore_mode is not set so
"auto".<br>
        </blockquote>
        <br>
        </div>
but if it is not set to something else, this is the default value.<br>
        <br>
Cheers,<br>
        <font color="#888888">Daniel</font>
        <div>
        <div><br>
        <br>
        <blockquote type="cite"><br>
Thanks!<br>
          <br>
          <div class="gmail_quote">On Tue, Mar 16, 2010 at 7:00 AM,
Daniel-Constantin Mierla <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span>
wrote:<br>
          <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
            <div text="#000000" bgcolor="#ffffff">Hello,
            <div><br>
            <br>
On 03/16/2010 12:52 PM, Brandon Armstead wrote:
            <blockquote type="cite">Daniel,<br>
              <br>
&nbsp;&nbsp; This is 1.5 and there is nothing between the quotes "".<br>
            </blockquote>
            </div>
the question is whether the display name attribute in From header
structure includes the quotes or not -- this is to be revealed by code.
            <div><br>
            <br>
            <blockquote type="cite"><br>
The
last time I tried to remove_hf, and then append_hf(From) or To header,
it seemed to break call flow completely?</blockquote>
            <br>
            </div>
It can break in case you have non-RFC3261 compliant devices.<br>
            <br>
What is the value of uac module parameter from_restore_mode?<br>
            <br>
If it is auto or not set, then it is not the same behavior as with
remove_hf/append_hf.
            <div><br>
            <br>
            <blockquote type="cite">&nbsp; I will give it another go,
however if you have any further thoughts it is much appreciated, thanks!<br>
            </blockquote>
            </div>
Going to check the sources and come back with more details.<br>
            <br>
Cheers,<br>
            <font color="#888888">Daniel</font>
            <div>
            <div><br>
            <br>
            <blockquote type="cite"><br>
Sincerely,<br>
Brandon Armstead<br>
              <br>
              <div class="gmail_quote">On Tue, Mar 16, 2010 at 6:44 AM,
Daniel-Constantin Mierla <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span>
wrote:<br>
              <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,



                <div>
                <div><br>
                <br>
On 03/16/2010 02:30 AM, Brandon Armstead wrote:<br>
                <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
                  <br>
As always thank you ahead of time for your help and input!<br>
                  <br>
I am currently calling uac_replace_from("", "") in effort to "leave
uri" and "toss away display name"<br>
                  <br>
Which does seem to work....... for the initial INVITE<br>
                  <br>
However upon receiving an ACK with an empty display, however "" &lt;-
quotations, it does not clear the display "" which is causing issues
with one of my upstream vendors.<br>
                  <br>
Example / Scenario:<br>
                  <br>
From: "" &lt;sip:uri@host&gt;<br>
                  <br>
Expected Result upon uac_replace_from("",""): &nbsp; &nbsp; &nbsp; &nbsp;From:
&lt;sip:uri@host&gt;<br>
                  <br>
Current Result: From: "" &lt;sip:uri@host&gt;<br>
                  <br>
As you can see it is not stripping the "" empty display quotes.<br>
                  <br>
Any thoughts / ideas / suggestions to get my desired affect?<br>
                  <br>
                </blockquote>
                </div>
                </div>
could be that display name is set to empty string (what is between
double quotes) and in this case is nothing to replace -- I have to
doublecheck the sources. Is it 1.5 or 3.0?<br>
                <br>
Are you using From auto-replacing mode? If not, a solution for now is
to do From update using header manipulation functions:<br>
                <br>
remove_hf("From");<br>
append_hf("From: &lt;$fu&gt;;tag=$ft\r\n", "From");<br>
                <br>
Cheers,<br>
Daniel<br>
                <font color="#888888"><br>
-- <br>
Daniel-Constantin Mierla<br>
Kamailio SIP Router Masterclass, Berlin, March 22-26, 2010<br>
* <a moz-do-not-send="true"
 href="http://www.asipto.com/index.php/sip-router-masterclass/"
 target="_blank">http://www.asipto.com/index.php/sip-router-masterclass/</a><br>
                <br>
                </font></blockquote>
              </div>
              <br>
            </blockquote>
            <br>
            <pre cols="72">-- 
Daniel-Constantin Mierla
Kamailio SIP Router Masterclass, Berlin, March 22-26, 2010
* <a moz-do-not-send="true"
 href="http://www.asipto.com/index.php/sip-router-masterclass/"
 target="_blank">http://www.asipto.com/index.php/sip-router-masterclass/</a> 
    </pre>
            </div>
            </div>
            </div>
          </blockquote>
          </div>
          <br>
        </blockquote>
        <br>
        <pre cols="72">-- 
Daniel-Constantin Mierla
Kamailio SIP Router Masterclass, Berlin, March 22-26, 2010
* <a moz-do-not-send="true"
 href="http://www.asipto.com/index.php/sip-router-masterclass/"
 target="_blank">http://www.asipto.com/index.php/sip-router-masterclass/</a> 
    </pre>
        </div>
        </div>
        </div>
      </blockquote>
      </div>
      <br>
      </div>
      </div>
      <pre><fieldset></fieldset>
_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.kamailio.org"
 target="_blank">Users@lists.kamailio.org</a>
<a moz-do-not-send="true"
 href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users"
 target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a moz-do-not-send="true"
 href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users"
 target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></pre>
    </blockquote>
    <div class="im"><br>
    <pre cols="72">-- 
Daniel-Constantin Mierla
Kamailio SIP Router Masterclass, Berlin, March 22-26, 2010
* <a moz-do-not-send="true"
 href="http://www.asipto.com/index.php/sip-router-masterclass/"
 target="_blank">http://www.asipto.com/index.php/sip-router-masterclass/</a> 
    </pre>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a class="moz-txt-link-freetext" href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
Kamailio SIP Router Masterclass, Berlin, March 22-26, 2010
* <a class="moz-txt-link-freetext" href="http://www.asipto.com/index.php/sip-router-masterclass/">http://www.asipto.com/index.php/sip-router-masterclass/</a> 
</pre>
</body>
</html>