<!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 bgcolor="#ffffff" text="#000000">
    <tt>Hi Ali,<br>
      <br>
      Per fifo syntax (see
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.9.x/mi_fifo.html#id247980">http://www.opensips.org/html/docs/modules/1.9.x/mi_fifo.html#id247980</a>),
      if one of the parameter contains \n or \r (which is fifo param
      separator), you need to escape the whole string between "" . So
      try :<br>
      <br>
      opensipsctl fifo t_uac_dlg NOTIFY <a class="moz-txt-link-freetext" href="sip:sip.ali@sip.domain.com">sip:sip.ali@sip.domain.com</a>
      <a class="moz-txt-link-freetext" href="sip:sip.ali@10.10.10.10">sip:sip.ali@10.10.10.10</a> .
      '\"From:<a class="moz-txt-link-rfc2396E" href="sip:sip.ali@sip.domain.com">&lt;sip:sip.ali@sip.domain.com&gt;</a>;tag=2e6d0428dde36eaa\r\nTo:<a class="moz-txt-link-rfc2396E" href="sip:sip.ali@sip.domain.com">&lt;sip:sip.ali@sip.domain.com&gt;</a>\r\nCseq:
      1243 NOTIFY\r\nCall-ID: 5957934579359\r\nEvent: resync\r\n\"'<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <br>
    On 02/12/2013 06:28 PM, Ali Pey wrote:
    <blockquote
cite="mid:CA+q4kRJpP12oU4-r=a8mqqGJk=pBoPZ6u3TySzr2h0yKCVytRg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I cannot get t_uac_dlg to work. It keeps telling me 400 Too
          few or too many arguments. My server is running opensips
          version 1.6.3 and this is how I am &nbsp;doing it:</div>
        <div><br>
        </div>
        <div>opensipsctl fifo t_uac_dlg NOTIFY <a
            moz-do-not-send="true"
            href="mailto:sip%3Asip.ali@sip.domain.com" target="_blank">sip:sip.ali@sip.domain.com</a>
          <a moz-do-not-send="true"
            href="mailto:sip%3Asip.ali@10.10.10.10" target="_blank">sip:sip.ali@10.10.10.10</a>
          . "From:&lt;<a moz-do-not-send="true"
            href="mailto:sip%3Asip.ali@sip.domain.com" target="_blank">sip:sip.ali@sip.domain.com</a>&gt;;tag=2e6d0428dde36eaa\r\nTo:&lt;<a
            moz-do-not-send="true"
            href="mailto:sip%3Asip.ali@sip.domain.com" target="_blank">sip:sip.ali@sip.domain.com</a>&gt;\r\nCseq:
          1243 NOTIFY\r\nCall-ID: 5957934579359\r\nEvent: resync\r\n"</div>
        <div>400 Too few or too many arguments<br>
        </div>
        <div><br>
        </div>
        <div>This is how it looks in the log file:</div>
        <div><br>
        </div>
        <div>
          <div>Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_parse_tree: adding node &lt;&gt; ; val
            &lt;NOTIFY&gt;</div>
          <div>Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_parse_tree: adding node &lt;&gt; ; val &lt;<a
              moz-do-not-send="true"
              href="mailto:sip%3Asip.ali@sip.domain.com" target="_blank">sip:sip.ali@sip.domain.com</a>&gt;</div>
          <div>
            Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_parse_tree: adding node &lt;&gt; ; val &lt;<a
              moz-do-not-send="true"
              href="mailto:sip%3Asip.ali@10.10.10.10" target="_blank">sip:sip.ali@10.10.10.10</a>&gt;</div>
          <div>Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_parse_tree: adding node &lt;&gt; ; val
            &lt;.&gt;</div>
          <div>Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_parse_tree: adding node &lt;&gt; ; val
            &lt;From:&lt;<a moz-do-not-send="true"
              href="mailto:sip%3Asip.ali@sip.domain.com" target="_blank">sip:sip.ali@sip.domain.com</a>&gt;;tag=2e6d0428dde36eaa&gt;</div>
          <div>Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_parse_tree: adding node &lt;&gt; ; val
            &lt;To:&lt;<a moz-do-not-send="true"
              href="mailto:sip%3Asip.ali@sip.domain.com" target="_blank">sip:sip.ali@sip.domain.com</a>&gt;&gt;</div>
          <div>Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_parse_tree: adding node &lt;&gt; ; val
            &lt;Cseq: 1243 NOTIFY&gt;</div>
          <div>Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_parse_tree: adding node &lt;&gt; ; val
            &lt;Call-ID: 5957934579359&gt;</div>
          <div>Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_parse_tree: adding node &lt;&gt; ; val
            &lt;Event: resync&gt;</div>
          <div>Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_parse_node: end of input tree</div>
          <div>Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_fifo_server: done parsing the mi tree</div>
          <div>Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_fifo_server: command empty</div>
          <div>Feb 12 11:20:37 opensips-1 /usr/sbin/opensips[3409]:
            DBG:mi_fifo:mi_fifo_server: entered consume</div>
          <div><br>
          </div>
        </div>
        <div><br>
        </div>
        <div>Can someone shed some light here for me? I have tried any
          possible combination I could think of.</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Ali</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Sat, Jan 26, 2013 at 2:46 AM,
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <div>
              <div>Hi Ali,</div>
              <div><br>
              </div>
              <div>&nbsp;See the TM docs.</div>
              <div class="im">
                <div><br>
                </div>
                <div>Regards,</div>
                <div>Bogdan</div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>
                  <div style="font-size: 75%; color: rgb(87, 87, 87);">Sent
                    from Samsung Mobile</div>
                </div>
                <br>
                <br>
                <br>
                -------- Original message --------<br>
                From: Ali Pey &lt;<a moz-do-not-send="true"
                  href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>&gt;
                <br>
                Date: <br>
              </div>
              <div>
                <div class="h5">To: Bogdan-Andrei Iancu &lt;<a
                    moz-do-not-send="true"
                    href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;
                  <br>
                  Subject: Re: [OpenSIPS-Users] Send a SIP Notify
                  message to a registered SIP Phone (config resync) <br>
                  <br>
                  <br>
                  <div dir="ltr">Thank you for the quick response
                    Bogdan.
                    <div><br>
                    </div>
                    <div>Is there an example of how to use this command
                      somewhere? I can't get it to work.&nbsp;</div>
                    <div><br>
                    </div>
                    <div>Regards,</div>
                    <div>
                      Ali Pey</div>
                    <div><br>
                    </div>
                  </div>
                  <div class="gmail_extra"><br>
                    <br>
                    <div class="gmail_quote">On Fri, Jan 25, 2013 at
                      12:14 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
                          moz-do-not-send="true"
                          href="mailto:bogdan@opensips.org"
                          target="_blank">bogdan@opensips.org</a>&gt;</span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin: 0pt
                        0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                        204, 204); padding-left: 1ex;">
                        <div>
                          <div>Hi Ali,</div>
                          <div><br>
                          </div>
                          <div>Use the t_uac_dlg MI command to do it.</div>
                          <div><br>
                          </div>
                          <div>Best regards,</div>
                          <div>Bogdan</div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div>
                            <div style="font-size: 75%; color: rgb(87,
                              87, 87);">Sent from Samsung Mobile</div>
                          </div>
                          <div>
                            <div> <br>
                              <br>
                              <br>
                              -------- Original message --------<br>
                              From: Ali Pey &lt;<a
                                moz-do-not-send="true"
                                href="mailto:alipey@gmail.com"
                                target="_blank">alipey@gmail.com</a>&gt;
                              <br>
                              Date: <br>
                              To: OpenSIPS users mailling list &lt;<a
                                moz-do-not-send="true"
                                href="mailto:users@lists.opensips.org"
                                target="_blank">users@lists.opensips.org</a>&gt;
                              <br>
                              Subject: [OpenSIPS-Users] Send a SIP
                              Notify message to a registered SIP Phone
                              (config resync) <br>
                              <br>
                              <br>
                              <div dir="ltr">Hello,
                                <div><br>
                                </div>
                                <div>What's the best way to generate and
                                  send a custom Notify SIP message to a
                                  registered sip phone (for
                                  configuration resync)?</div>
                                <div><br>
                                </div>
                                <div>Thanks,</div>
                                <div>Ali Pey</div>
                                <div><br>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </blockquote>
                    </div>
                    <br>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
  </body>
</html>