<div dir="ltr">Glad to hear you were able to get it sorted, thanks for letting us know!<div><br></div><div>Cal</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 10, 2013 at 12:06 PM, Matt Broad <span dir="ltr">&lt;<a href="mailto:matt@inveroak.com" target="_blank">matt@inveroak.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi <br>
    <br>
    just as an update to this thread, sorry for the delay :)<br>
    <br>
    I have resolved the issue.  Freeswitch was behaving impeccably, my
    XML parsing code on the other hand was not :)<br>
    <br>
    Error handling when a node is not present is always a good thing to
    have!<br>
    <br>
    <br>
    thanks<span class="HOEnZb"><font color="#888888"><br>
    Matt</font></span><div><div class="h5"><br>
    <div><br>
      <br>
      On 12/09/2013 15:35, Matt Broad wrote:<br>
    </div>
    <blockquote type="cite">
      
      Hi Cal,<br>
      <br>
      have just seen the reply from Lloyd (my email&#39;s threading isn&#39;t
      too good), yes the bleg logging is set to true, and is working
      fine on calls instigated via an incoming call.<br>
      <br>
      I&#39;ll take a look at the bug reporting pages and try and give as
      much info as possible.  <br>
      <br>
      <br>
      <br>
      thanks<br>
      Matt<br>
      <br>
      <br>
      <div>On 12/09/2013 15:24, Cal Leeming
        [Simplicity Media Ltd] wrote:<br>
      </div>
      <blockquote type="cite">
        <div dir="ltr">Just to be sure, can you double check that b_leg
          is set to true in your xml_cdr.conf (as per Lloyds&#39;
          suggestion).
          <div><br>
          </div>
          <div>If it is set to true, then next step would be to raise a
            bug report in JIRA with as much info as possible about the
            steps you have taken to reproduce this bug. </div>
          <div><br>
          </div>
          <div>If you are unfamiliar with this process, please see;<br>
            <br>
          </div>
          <div><a href="http://wiki.freeswitch.org/wiki/Reporting_Bugs" target="_blank">http://wiki.freeswitch.org/wiki/Reporting_Bugs</a></div>
          <div><a href="http://wiki.freeswitch.org/wiki/Reporting_Bugs#Where_And_How_To_File_Bug_Reports" target="_blank">http://wiki.freeswitch.org/wiki/Reporting_Bugs#Where_And_How_To_File_Bug_Reports</a></div>
          <div><br>
          </div>
          <div>Sadly I won&#39;t have any time to look into this until late
            next week, but perhaps another volunteer will jump on and
            take a look before I do.<br>
          </div>
          <div><br>
          </div>
          <div>Cal</div>
          <div>
            <div><span style="font-family:verdana,sans-serif;font-size:13px"><br>
              </span></div>
          </div>
        </div>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Thu, Sep 12, 2013 at 2:58 PM, Matt
            Broad <span dir="ltr">&lt;<a href="mailto:matt@inveroak.com" target="_blank">matt@inveroak.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> Hi Cal,<br>
                <br>
                thanks for the suggestions.  <br>
                I have tested adding an err log dir and also enabled the
                log-http-and-disk option.<br>
                <br>
                These work fine when I make a normal call (I have forced
                a http error on the webserver to test the error
                logging), but when doing an originate from the CLI,
                there are no logs at all.  <br>
                <br>
                I don&#39;t see any messages about a failed log
                (&quot;mod_xml_cdr.c:365 Got error [0] posting to web server
                <a href="http://******" target="_blank">http://******</a>&quot; &amp;
                &quot;mod_xml_cdr.c:372 Retry will be with url <a href="http://****" target="_blank">http://****</a>&quot;) when the call ends.<br>
                <br>
                thanks<span><font color="#888888"><br>
                    Matt</font></span>
                <div>
                  <div><br>
                    <br>
                    <br>
                    <div>On 11/09/2013 20:29, Cal Leeming [Simplicity
                      Media Ltd] wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">Oh damn, sorry I was thinking of
                        mod_xml_curl!
                        <div><br>
                        </div>
                        <div>In that case, try this instead;</div>
                        <div><a href="http://wiki.freeswitch.org/wiki/Mod_xml_cdr" target="_blank">http://wiki.freeswitch.org/wiki/Mod_xml_cdr</a><br>
                          &lt;param name=&quot;err-log-dir&quot; value=&quot;/tmp&quot;/&gt;</div>
                        <div><br>
                        </div>
                        <div>Enable that param, and check to see if the
                          request ends up in that directory.</div>
                        <div><br>
                        </div>
                        <div>You can also enable &#39;<span style="line-height:19.1875px;font-size:13px;font-family:sans-serif">log-http-and-disk&#39;


                            which will ensure the request is always
                            written to disk.</span></div>
                        <div><br>
                        </div>
                        <div>You can also enable access logs on your web
                          server to check if the request is received, or
                          even just run &quot;nc -l 80&quot; on the web server and
                          wait for the connection to be received.</div>
                        <div><br>
                        </div>
                        <div>The main point of the above is to pinpoint
                          where the fault is happening (if the entry is
                          pushed to disk, then it means the problem is
                          with your web server.. if the entry is not
                          pushed to disk, then there&#39;s a problem
                          somewhere in FS, whether it be in config or a
                          bug).</div>
                        <div><br>
                        </div>
                        <div>Sorry for the confusion</div>
                        <div><br>
                        </div>
                        <div>Cal</div>
                        <div><br>
                        </div>
                      </div>
                      <div class="gmail_extra"><br>
                        <br>
                        <div class="gmail_quote">On Wed, Sep 11, 2013 at
                          7:55 PM, Matt Broad <span dir="ltr">&lt;<a href="mailto:matt@inveroak.com" target="_blank">matt@inveroak.com</a>&gt;</span>
                          wrote:<br>
                          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                            <div bgcolor="#FFFFFF" text="#000000"> Hi
                              Cal,<br>
                              <br>
                              I have tried the method that you described
                              but I get the error &quot;-ERR xml_cdr debug_on
                              Command not found!&quot;<br>
                              could this be a typo?  I have tried
                              googling but with no success.<br>
                              <br>
                              thanks<span><font color="#888888"><br>
                                  Matt</font></span>
                              <div>
                                <div><br>
                                  <br>
                                  <div>On 11/09/2013 19:26, Matt Broad
                                    wrote:<br>
                                  </div>
                                  <blockquote type="cite"> Thanks for
                                    the quick reply Cal.<br>
                                    <br>
                                    I will give that a try and see what
                                    I can see.  I will report back with
                                    my findings :)<br>
                                    <br>
                                    thanks<br>
                                    Matt<br>
                                    <br>
                                    <br>
                                    <div>On 11/09/2013 15:55, Cal
                                      Leeming [Simplicity Media Ltd]
                                      wrote:<br>
                                    </div>
                                    <blockquote type="cite">
                                      <div dir="ltr">Matt,
                                        <div><br>
                                        </div>
                                        <div>As far as I know, the API
                                          originate method should also
                                          trigger xml_cdr to post back
                                          to your server.</div>
                                        <div><br>
                                        </div>
                                        <div>Can you please run &quot;<span style="color:rgb(68,68,68);font-family:arial,sans-serif;line-height:16px">console</span><span style="color:rgb(68,68,68);font-family:arial,sans-serif;line-height:16px"> loglevel </span><span style="color:rgb(68,68,68);font-family:arial,sans-serif;line-height:16px">debug&quot;




                                            and </span>&quot;xml_cdr <span style="color:rgb(68,68,68);font-family:arial,sans-serif;line-height:16px">debug_on&quot;,




                                            attempt to use api
                                            originate, then see if
                                            anything shows up in
                                            console? (that command will
                                            enable xml_cdr debugging).</span></div>
                                        <div><span style="color:rgb(68,68,68);font-family:arial,sans-serif;line-height:16px"><br>
                                          </span></div>
                                        <div><font color="#444444" face="arial, sans-serif"><span style="line-height:16px">If

                                              this still does not work,
                                              please capture all the
                                              logs and explain the test
                                              procedure you went through
                                              and send it all in a JIRA
                                              ticket.</span></font></div>
                                        <div><font color="#444444" face="arial, sans-serif"><span style="line-height:16px"><br>
                                            </span></font></div>
                                        <div><font color="#444444" face="arial, sans-serif"><span style="line-height:16px">Hope


                                              this helps</span></font></div>
                                        <div><font color="#444444" face="arial, sans-serif"><span style="line-height:16px"><br>
                                              Cal</span></font></div>
                                      </div>
                                      <div class="gmail_extra"><br>
                                        <br>
                                        <div class="gmail_quote">On Wed,
                                          Sep 11, 2013 at 3:32 PM, Matt
                                          Broad <span dir="ltr">&lt;<a href="mailto:matt@inveroak.com" target="_blank">matt@inveroak.com</a>&gt;</span>
                                          wrote:<br>
                                          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
                                            <br>
                                            I have setup xml_cdr and it
                                            is working great, both aleg
                                            and bleg calls<br>
                                            are logged.<br>
                                            I am using the api originate
                                            method, but this does not
                                            create an xml_cdr<br>
                                            record (though a record is
                                            logged in
                                            /log/cdr-csv/master/csv).
                                             Is this<br>
                                            correct?<br>
                                            <br>
                                            <br>
                                            <br>
                                            thanks<br>
                                            Matt<br>
                                            <br>
                                            <br>
_________________________________________________________________________<br>
                                            Professional FreeSWITCH
                                            Consulting Services:<br>
                                            <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                                            <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                                            <br>
                                            FreeSWITCH-powered IP PBX:
                                            The CudaTel Communication
                                            Server<br>
                                            <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                                            <br>
                                            Official FreeSWITCH Sites<br>
                                            <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                                            <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                                            <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                                            <br>
                                            FreeSWITCH-users mailing
                                            list<br>
                                            <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                                            <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                                            UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                                            <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                                          </blockquote>
                                        </div>
                                        <br>
                                      </div>
                                      <br>
                                      <fieldset></fieldset>
                                      <br>
                                      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
                                    </blockquote>
                                    <br>
                                  </blockquote>
                                  <br>
                                </div>
                              </div>
                            </div>
                            <br>
_________________________________________________________________________<br>
                            Professional FreeSWITCH Consulting Services:<br>
                            <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                            <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                            <br>
                            FreeSWITCH-powered IP PBX: The CudaTel
                            Communication Server<br>
                            <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                            <br>
                            Official FreeSWITCH Sites<br>
                            <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                            <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                            <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                            <br>
                            FreeSWITCH-users mailing list<br>
                            <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                            <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                            UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                            <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                            <br>
                          </blockquote>
                        </div>
                        <br>
                      </div>
                      <br>
                      <fieldset></fieldset>
                      <br>
                      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
              <br>
_________________________________________________________________________<br>
              Professional FreeSWITCH Consulting Services:<br>
              <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
              <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
              <br>
              FreeSWITCH-powered IP PBX: The CudaTel Communication
              Server<br>
              <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
              <br>
              Official FreeSWITCH Sites<br>
              <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
              <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
              <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
              <br>
              FreeSWITCH-users mailing list<br>
              <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
              <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
              <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
        <br>
        <fieldset></fieldset>
        <br>
        <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>