<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p><br>
    </p>
    <p>I looked quickly at the code and the mi command should take the
      values from the parameters. Can you run with debug=3 and get all
      the logs messages to see if we can spot something threre.</p>
    <p><br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 15/11/16 11:27, Jonathan Hunter
      wrote:<br>
    </div>
    <blockquote
cite="mid:AM4PR0201MB2162F5850AF6694B56B85D78BDBF0@AM4PR0201MB2162.eurprd02.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
        dir="ltr">
        <p>Hi,</p>
        <p><br>
        </p>
        <p>Sorry Daniel, let me be clear.</p>
        <p><br>
        </p>
        <p>Correct the To/From are not taken from the rpc command, the
          INFO is triggered/sent but with the To/From of the new request
          coming in;</p>
        <p><br>
        </p>
        <p>Below I dial 07917190438 from ext 209 and this INFO is sent;</p>
        <p><br>
        </p>
        <p><br>
        </p>
        <div>INFO <a class="moz-txt-link-freetext" href="sip:kamailio.org">sip:kamailio.org</a> SIP/2.0</div>
        <div>Via: SIP/2.0/UDP
          8.8.8.8;branch=z9hG4bK63d7.374d4573000000000000000000000000.0</div>
        <div>To: <<a class="moz-txt-link-freetext" href="sip:07917190438@">sip:07917190438@</a><span style="font-family: Calibri,
            Arial, Helvetica, sans-serif, "Apple Color Emoji",
            "Segoe UI Emoji", NotoColorEmoji, "Segoe UI
            Symbol", "Android Emoji", EmojiSymbols;
            font-size: 16px;">8.8.8.8</span>></div>
        <div>From: <<a class="moz-txt-link-freetext" href="sip:209@">sip:209@</a><span style="font-family: Calibri, Arial,
            Helvetica, sans-serif, "Apple Color Emoji",
            "Segoe UI Emoji", NotoColorEmoji, "Segoe UI
            Symbol", "Android Emoji", EmojiSymbols;
            font-size: 16px;">8.8.8.8</span>>;tag=c32652d8e50f480c90e2f8379a0698aa-ea50</div>
        <div>CSeq: 10 INFO</div>
        <div>Call-ID: YWFhMmVmMzUxM2Q2YzUwMzZhOTFjNDc4OGZlYmM2N2I</div>
        <div>Max-Forwards: 70</div>
        <div>Content-Length: 0</div>
        <div>User-Agent: HA PBX</div>
        <div><br>
        </div>
        <div>However this command is triggered to send the INFO and the
          To/From/Contact are not changed/added;</div>
        <div><br>
        </div>
        <div>
          <blockquote type="cite" style="font-family: Calibri, Arial,
            Helvetica, sans-serif, "Apple Color Emoji",
            "Segoe UI Emoji", NotoColorEmoji, "Segoe UI
            Symbol", "Android Emoji", EmojiSymbols;
            font-size: 16px;">
            <div id="divtagdefaultwrapper" dir="ltr" style="font-size:
              12pt; font-family: Calibri, Arial, Helvetica, sans-serif;">
              jsonrpc_exec('{"jsonrpc":"2.0","method":"mi","params":
              ["t_uac_dlg", "INFO", <a moz-do-not-send="true"
                class="moz-txt-link-rfc2396E" href="sip:3003@8.8.8.8">"sip:3003@8.8.8.8"</a>,".",".","From:<a
                moz-do-not-send="true" class="moz-txt-link-freetext"
                href="sip:1234@2.2.2.2">sip:1234@2.2.2.2</a>","To:<a
                moz-do-not-send="true" class="moz-txt-link-freetext"
                href="sip:3003@8.8.8.8">sip:3003@8.8.8.8</a>",<a
                moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="https://outlook.live.com/owa/?path=/mail/AQMkADAwATE0YzUwLWUxMjQtMzE3Yy0wMAItMDAKAC4AAAN%2F3kvE%2FPvCRZG1c9k9YgOnAQChqxR4ZvI4ToC2kdUvgxopAAACP%2FMAAAA%3D/rp">"Contact:sip:1234@2.2.2.2"</a>]}');</div>
          </blockquote>
          <br>
        </div>
        <div><br>
        </div>
        <div>I assumed (possibly incorrectly) you can get the command to
          overwrite the current contents of the headers, so as above the
          RURI would change to <a class="moz-txt-link-freetext" href="sip:3003@8.8.8.8">sip:3003@8.8.8.8</a> and the From to
          <a class="moz-txt-link-freetext" href="sip:1234@2.2.2.2">sip:1234@2.2.2.2</a> etc, however they remain unchanged.</div>
        <div><br>
        </div>
        <div>Does that make sense?</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div><br>
        </div>
        <div>Jon</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <br>
        <br>
        <br>
        <div style="color: rgb(0, 0, 0);">
          <hr tabindex="-1" style="display:inline-block; width:98%">
          <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
              face="Calibri, sans-serif" color="#000000"><b>From:</b>
              Daniel-Constantin Mierla <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a><br>
              <b>Sent:</b> 15 November 2016 10:12<br>
              <b>To:</b> Jonathan Hunter; Kamailio SER - Users Mailing
              List<br>
              <b>Subject:</b> Re: [SR-Users] Send SIP Info within a
              dialog using $uac_req(method)="INFO"</font>
            <div> </div>
          </div>
          <div>
            <p>Hello,</p>
            <p><br>
            </p>
            <p>what do you mean by "with default parameters" in your
              last remark? Are the To/From not taken from the rpc
              command?</p>
            <p><br>
            </p>
            <p>Cheers,<br>
              Daniel<br>
            </p>
            <br>
            <div class="moz-cite-prefix">On 15/11/16 11:06, Jonathan
              Hunter wrote:<br>
            </div>
            <blockquote type="cite">
              <div id="divtagdefaultwrapper" dir="ltr"
                style="font-size:12pt; color:#000000;
                font-family:Calibri,Arial,Helvetica,sans-serif">
                <p>Hi Daniel,</p>
                <p><br>
                </p>
                <p>That works in terms of clearing the error, however I
                  just see kamailio send a SIP info message to
                  kamailio.org, as apposed to the RURI I provide, I
                  presume again this will just be putting the t_uac_dlg
                  parameters in the correct order?</p>
                <p><br>
                </p>
                <p style="font-family:Helvetica,Arial; font-size:12px;
                  text-align:justify">Parameters:</p>
                <div class="itemizedlist"
                  style="font-family:Helvetica,Arial; font-size:15px">
                  <ul class="itemizedlist">
                    <li class="listitem">
                      <p style="font-size:12px; text-align:justify"><span
                          class="emphasis"><em>method</em></span> -
                        request method</p>
                    </li>
                    <li class="listitem">
                      <p style="font-size:12px; text-align:justify"><span
                          class="emphasis"><em>RURI</em></span> -
                        request SIP URI</p>
                    </li>
                    <li class="listitem">
                      <p style="font-size:12px; text-align:justify"><span
                          class="emphasis"><em>NEXT HOP</em></span> -
                        next hop SIP URI (OBP); use <span class="quote">“<span
                            class="quote">.</span>”</span> if no value.</p>
                    </li>
                    <li class="listitem">
                      <p style="font-size:12px; text-align:justify"><span
                          class="emphasis"><em>socket</em></span> -
                        local socket to be used for sending the request;
                        use <span class="quote">“<span class="quote">.</span>”</span> if
                        no value.</p>
                    </li>
                    <li class="listitem">
                      <p style="font-size:12px; text-align:justify"><span
                          class="emphasis"><em>headers</em></span> - set
                        of additional headers to be added to the
                        request; at least <span class="quote">“<span
                            class="quote">From</span>”</span> and <span
                          class="quote">“<span class="quote">To</span>”</span> headers
                        must be specify)</p>
                    </li>
                    <li class="listitem">
                      <p style="font-size:12px; text-align:justify"><span
                          class="emphasis"><em>body</em></span> -
                        (optional, may not be present) request body (if
                        present, requires the <span class="quote">“<span
                            class="quote">Content-Type</span>”</span> and <span
                          class="quote">“<span class="quote">Content-length</span>”</span> headers)</p>
                    </li>
                  </ul>
                </div>
                As looks like I am defining things correctly now but its
                not picking them up, again if I run manually it works in
                command line;
                <p><br>
                </p>
                <div>jsonrpc_exec('{"jsonrpc":"2.0","method":"mi","params":
                  ["t_uac_dlg", "INFO",
                  <a moz-do-not-send="true"
                    class="moz-txt-link-rfc2396E"
                    href="sip:3003@8.8.8.8">"sip:3003@8.8.8.8"</a>,".",".","From:<a
                    moz-do-not-send="true" class="moz-txt-link-freetext"
                    href="sip:1234@2.2.2.2">sip:1234@2.2.2.2</a>","To:<a
                    moz-do-not-send="true" class="moz-txt-link-freetext"
                    href="sip:3003@8.8.8.8">sip:3003@8.8.8.8</a>",<a
                    moz-do-not-send="true" class="moz-txt-link-rfc2396E"
                    href="">"Contact:sip:1234@2.2.2.2"</a>]}');</div>
                <div><br>
                </div>
                <div>All I see it fire is an INFO message to <span>Request-Line:
                    INFO <a moz-do-not-send="true"
                      class="moz-txt-link-freetext"
                      href="sip:kamailio.org">
                      sip:kamailio.org</a> SIP/2.0, with default
                    parameters.</span></div>
                <br>
                <p><br>
                </p>
                <p>Thanks</p>
                <p><br>
                </p>
                <p>Jon</p>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>