[Freeswitch-users] originate not creating xml_cdr record

Matt Broad matt at inveroak.com
Thu Sep 12 18:35:33 MSD 2013


Hi Cal,

have just seen the reply from Lloyd (my email's threading isn't too 
good), yes the bleg logging is set to true, and is working fine on calls 
instigated via an incoming call.

I'll take a look at the bug reporting pages and try and give as much 
info as possible.



thanks
Matt


On 12/09/2013 15:24, Cal Leeming [Simplicity Media Ltd] wrote:
> Just to be sure, can you double check that b_leg is set to true in 
> your xml_cdr.conf (as per Lloyds' suggestion).
>
> 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.
>
> If you are unfamiliar with this process, please see;
>
> http://wiki.freeswitch.org/wiki/Reporting_Bugs
> http://wiki.freeswitch.org/wiki/Reporting_Bugs#Where_And_How_To_File_Bug_Reports
>
> Sadly I won'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.
>
> Cal
>
>
>
> On Thu, Sep 12, 2013 at 2:58 PM, Matt Broad <matt at inveroak.com 
> <mailto:matt at inveroak.com>> wrote:
>
>     Hi Cal,
>
>     thanks for the suggestions.
>     I have tested adding an err log dir and also enabled the
>     log-http-and-disk option.
>
>     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.
>
>     I don't see any messages about a failed log ("mod_xml_cdr.c:365
>     Got error [0] posting to web server http://******" &
>     "mod_xml_cdr.c:372 Retry will be with url http://****") when the
>     call ends.
>
>     thanks
>     Matt
>
>
>
>     On 11/09/2013 20:29, Cal Leeming [Simplicity Media Ltd] wrote:
>>     Oh damn, sorry I was thinking of mod_xml_curl!
>>
>>     In that case, try this instead;
>>     http://wiki.freeswitch.org/wiki/Mod_xml_cdr
>>     <param name="err-log-dir" value="/tmp"/>
>>
>>     Enable that param, and check to see if the request ends up in
>>     that directory.
>>
>>     You can also enable 'log-http-and-disk' which will ensure the
>>     request is always written to disk.
>>
>>     You can also enable access logs on your web server to check if
>>     the request is received, or even just run "nc -l 80" on the web
>>     server and wait for the connection to be received.
>>
>>     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's a problem somewhere in FS, whether it be in
>>     config or a bug).
>>
>>     Sorry for the confusion
>>
>>     Cal
>>
>>
>>
>>     On Wed, Sep 11, 2013 at 7:55 PM, Matt Broad <matt at inveroak.com
>>     <mailto:matt at inveroak.com>> wrote:
>>
>>         Hi Cal,
>>
>>         I have tried the method that you described but I get the
>>         error "-ERR xml_cdr debug_on Command not found!"
>>         could this be a typo?  I have tried googling but with no success.
>>
>>         thanks
>>         Matt
>>
>>
>>         On 11/09/2013 19:26, Matt Broad wrote:
>>>         Thanks for the quick reply Cal.
>>>
>>>         I will give that a try and see what I can see.  I will
>>>         report back with my findings :)
>>>
>>>         thanks
>>>         Matt
>>>
>>>
>>>         On 11/09/2013 15:55, Cal Leeming [Simplicity Media Ltd] wrote:
>>>>         Matt,
>>>>
>>>>         As far as I know, the API originate method should also
>>>>         trigger xml_cdr to post back to your server.
>>>>
>>>>         Can you please run "console loglevel debug" and "xml_cdr
>>>>         debug_on", attempt to use api originate, then see if
>>>>         anything shows up in console? (that command will enable
>>>>         xml_cdr debugging).
>>>>
>>>>         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.
>>>>
>>>>         Hope this helps
>>>>
>>>>         Cal
>>>>
>>>>
>>>>         On Wed, Sep 11, 2013 at 3:32 PM, Matt Broad
>>>>         <matt at inveroak.com <mailto:matt at inveroak.com>> wrote:
>>>>
>>>>             Hi,
>>>>
>>>>             I have setup xml_cdr and it is working great, both aleg
>>>>             and bleg calls
>>>>             are logged.
>>>>             I am using the api originate method, but this does not
>>>>             create an xml_cdr
>>>>             record (though a record is logged in
>>>>             /log/cdr-csv/master/csv).  Is this
>>>>             correct?
>>>>
>>>>
>>>>
>>>>             thanks
>>>>             Matt
>>>>
>>>>
>>>>             _________________________________________________________________________
>>>>             Professional FreeSWITCH Consulting Services:
>>>>             consulting at freeswitch.org
>>>>             <mailto:consulting at freeswitch.org>
>>>>             http://www.freeswitchsolutions.com
>>>>
>>>>             
>>>>             
>>>>
>>>>             Official FreeSWITCH Sites
>>>>             http://www.freeswitch.org
>>>>             http://wiki.freeswitch.org
>>>>             http://www.cluecon.com
>>>>
>>>>             FreeSWITCH-users mailing list
>>>>             FreeSWITCH-users at lists.freeswitch.org
>>>>             <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>>>             http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>             UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>             http://www.freeswitch.org
>>>>
>>>>
>>>>
>>>>
>>>>         _________________________________________________________________________
>>>>         Professional FreeSWITCH Consulting Services:
>>>>         consulting at freeswitch.org  <mailto:consulting at freeswitch.org>
>>>>         http://www.freeswitchsolutions.com
>>>>
>>>>         
>>>>         
>>>>
>>>>         Official FreeSWITCH Sites
>>>>         http://www.freeswitch.org
>>>>         http://wiki.freeswitch.org
>>>>         http://www.cluecon.com
>>>>
>>>>         FreeSWITCH-users mailing list
>>>>         FreeSWITCH-users at lists.freeswitch.org  <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>>>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>         UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>         http://www.freeswitch.org
>>>
>>
>>
>>         _________________________________________________________________________
>>         Professional FreeSWITCH Consulting Services:
>>         consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>         http://www.freeswitchsolutions.com
>>
>>         
>>         
>>
>>         Official FreeSWITCH Sites
>>         http://www.freeswitch.org
>>         http://wiki.freeswitch.org
>>         http://www.cluecon.com
>>
>>         FreeSWITCH-users mailing list
>>         FreeSWITCH-users at lists.freeswitch.org
>>         <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>         UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>         http://www.freeswitch.org
>>
>>
>>
>>
>>     _________________________________________________________________________
>>     Professional FreeSWITCH Consulting Services:
>>     consulting at freeswitch.org  <mailto:consulting at freeswitch.org>
>>     http://www.freeswitchsolutions.com
>>
>>     
>>     
>>
>>     Official FreeSWITCH Sites
>>     http://www.freeswitch.org
>>     http://wiki.freeswitch.org
>>     http://www.cluecon.com
>>
>>     FreeSWITCH-users mailing list
>>     FreeSWITCH-users at lists.freeswitch.org  <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>     http://www.freeswitch.org
>
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     
>     
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://wiki.freeswitch.org
>     http://www.cluecon.com
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130912/c5b6ee47/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list