<div dir="ltr"><div><div><div>Hi,<br>you can try this:<br><br></div>1) activate modpram trace_on_database 1<br></div>2) use sip_trace command <span id="result_box" class="" lang="en"><span class="">instead of trace_dialog<br>

</span></span></div><span id="result_box" class="" lang="en"><span class="">3) if method INVITE &amp;&amp; ! has_totag<br></span></span><div><div><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/6 Alexander Mustafin <span dir="ltr">&lt;<a href="mailto:mustafin.aleksandr@gmail.com" target="_blank">mustafin.aleksandr@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">Hello!<div><br></div><div>I need to save initial INVITE - but in-dialog messages only in sip_trace table. Is it possible?</div>

<div><br><div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">

<div>Best regards,</div><div>Alexander Mustafin</div><div><a href="mailto:mustafin.aleksandr@gmail.com" target="_blank">mustafin.aleksandr@gmail.com</a></div><div><br></div></div><br><br>
</div>

<br><div><div>06 дек. 2013 г., в 15:25, Bogdan-Andrei Iancu &lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt; написал(а):</div><div><div class="h5"><br><blockquote type="cite">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div><tt>Hi Mickael,<br>
        <br>
        I see you commented the &quot;trace_flag&quot; parameter in your modparm
        section - please enable it back. Even if you do not use it from
        script, it is internally used by the module.<br>
        <br>
        Best regards,<br>
      </tt>
      <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com/" target="_blank">http://www.opensips-solutions.com</a></pre>
      On 06.12.2013 09:56, Mickael Hubert wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>Hi Bigdan,<br>
          </div>
          thanks for your answer.<br>
          <br>
        </div>
        <div>I have modify my opensips code:<br>
        </div>
        <div><br>
        </div>
        <div><u>my conf:</u><br>
                  setdebug(6);<br>
                  trace_dialog();<br>
                  setdebug();<br>
          <br>
        </div>
        <div><u><br>
          </u></div>
        <u>see below my opensips.log</u><br>
        <br>
        <i>Dec  6 08:38:22 core-sip-2 /usr/local/sbin/opensips[2054]:
          DBG:dialog:build_new_dlg: new dialog 0x806aee888
          (<a href="mailto:c=1104374-3595304320-30853@asbc1b.hexavoip.local,f=" target="_blank">c=1104374-3595304320-30853@asbc1b.hexavoip.local,f=</a><a href="mailto:sip%3A%2B33310368002@10.84.8.10" target="_blank">sip:+33310368002@10.84.8.10</a>,t=<a href="mailto:sip%3A%2B33XXXXXXX@10.84.8.21" target="_blank">sip:+33XXXXXXX@10.84.8.21</a>;user=phone,ft=3595304320-30953)
          on hash 558<br>
          Dec  6 08:38:22 core-sip-2 /usr/local/sbin/opensips[2054]:
          DBG:core:parse_headers: flags=ffffffffffffffff<br>
          Dec  6 08:38:22 core-sip-2 /usr/local/sbin/opensips[2054]:
          DBG:dialog:init_leg_info: route_set , contact <a href="http://sip:+33XXXXXX@10.84.8.10:5060/" target="_blank">sip:+33XXXXXX@10.84.8.10:5060</a>,
          cseq 1 and bind_addr udp:<a href="http://10.84.8.21:5060/" target="_blank">10.84.8.21:5060</a><br>
          Dec  6 08:38:22 core-sip-2 /usr/local/sbin/opensips[2054]:
          DBG:dialog:dlg_add_leg_info: set leg 0 for 0x806aee888:
          tag=&lt;3595304320-30953&gt; rcseq=&lt;0&gt;<br>
          Dec  6 08:38:22 core-sip-2 /usr/local/sbin/opensips[2054]:
          DBG:dialog:link_dlg: ref dlg 0x806aee888 with 4 -&gt; 4 in
          h_entry 0x806adf248 - 558 <br>
          Dec  6 08:38:22 core-sip-2 /usr/local/sbin/opensips[2054]:
          DBG:rr:add_rr_param: adding (;xyz=e22.25982815) 0x80146c5e8<br>
          Dec  6 08:38:22 core-sip-2 /usr/local/sbin/opensips[2054]: <b>DBG:siptrace:sip_trace:
            nothing to trace...</b></i><br>
        <br>
        <div>
          <div>
            <div>
              <div class="gmail_extra">I don&#39;t understand this result ;)<br>
                <br>
              </div>
              <div class="gmail_extra">Have you an idea ?<br>
              </div>
              <div class="gmail_extra"><br>
                <div class="gmail_quote">2013/12/5 Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span><br>
                  <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                    <div bgcolor="#FFFFFF" text="#000000">
                      <div><tt>Hello Mickael,<br>
                          <br>
                          Try to place the trace_dialog() between a
                          set_debug(6) and set_debug(), to see what is
                          going on inside the function. Maybe the debug
                          logs will give you an idea.<br>
                          <br>
                          Best regards,<br>
                        </tt>
                        <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com/" target="_blank">http://www.opensips-solutions.com</a></pre>
                        <div>
                          <div> On 05.12.2013 09:47, Mickael
                            Hubert wrote:<br>
                          </div>
                        </div>
                      </div>
                      <blockquote type="cite">
                        <div>
                          <div>
                            <div dir="ltr">
                              <div>
                                <div>
                                  <div>Hi list,<br>
                                  </div>
                                  <div>I have an issue with my siptrace
                                    module.<br>
                                  </div>
                                  <div>see below my extract of
                                    opensips.cfg.<br>
                                    <br>
                                  </div>
                                  <div>I want duplicate  dialogs&#39;s
                                    messages to the other server
                                    (10.84.8.201), no DB.<br>
                                  </div>
                                  But, it doesn&#39;t work... no sip message
                                  in my wireshark trace.<br>
                                  <br>
                                </div>
                                Have you an idea ?<br>
                                <br>
                              </div>
                              Thanks in advance<br>
                              <div>
                                <div>
                                  <div><br>
                                    <br>
                                    <i># ----------------- module
                                      siptrace.so -----------<br>
                                      loadmodule &quot;siptrace.so&quot;<br>
                                      # ----- siptrace params -----<br>
                                      modparam(&quot;siptrace&quot;, &quot;db_url&quot;, &quot;&quot;)<br>
                                      modparam(&quot;siptrace&quot;,
                                      &quot;duplicate_uri&quot;,&quot;sip:<a href="http://10.84.8.201:9060/" target="_blank">10.84.8.201:9060</a>&quot;)<br>
                                      modparam(&quot;siptrace&quot;,
                                      &quot;duplicate_with_hep&quot;, 1)<br>
                                      modparam(&quot;siptrace&quot;,
                                      &quot;enable_ack_trace&quot;, 1)<br>
                                      modparam(&quot;siptrace&quot;,
                                      &quot;hep_version&quot;, 2)<br>
                                      modparam(&quot;siptrace&quot;,
                                      &quot;trace_to_database&quot;, 0)<br>
                                      #modparam(&quot;siptrace&quot;,
                                      &quot;trace_flag&quot;, 22)<br>
                                      modparam(&quot;siptrace&quot;,
                                      &quot;hep_capture_id&quot;, 2)<br>
                                      modparam(&quot;siptrace&quot;, &quot;trace_on&quot;,
                                      1)</i><br>
                                    <br>
                                    .....<br>
                                    <br>
                                  </div>
                                  in my code:<br>
                                  <br clear="all">
                                  <div>
                                    <div><i> if (is_method(&quot;INVITE&quot;))<br>
                                            {<br>
                                                trace_dialog();</i><br>
                                      <br>
                                      ......<br>
                                      <br>
                                      -- <br>
                                      <div dir="ltr">Cordialement<br>
                                        <br>
                                        HUBERT Mickaël<br>
                                        Ingénieur VOIP - Hexanet<br>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                            <br>
                          </div>
                        </div>
                        <img><br>
                        <fieldset></fieldset>
                        <br>
                        <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                      </blockquote>
                      <br>
                    </div>
                  </blockquote>
                </div>
                <br>
                <br clear="all">
                <br>
                -- <br>
                <div dir="ltr">Cordialement<br>
                  <br>
                  HUBERT Mickaël<br>
                  Ingénieur VOIP - Hexanet<br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <img></blockquote>
    <br>
  </div>

_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>

</blockquote></div></div></div><br></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Cordialement<br><br>HUBERT Mickaël<br>Ingénieur VOIP - Hexanet<br></div>
</div></div></div></div></div></div></div>

<br>
<img src="http://www.hexanet.fr/sites/files/hexanet/files/20130205_signature_hexanet.gif">