Hi Adam,<div><br></div><div> We also have this problem (no way to tell the a-leg from the b-leg in xml_cdr POST data).  </div><div><br></div><div> What I do, which is a bit of a work around, is to look for the typical SIP media IP of the b-leg of the call to differentiate the a from b legs.</div>

<div><br></div><div> It would however be great to have a tag in the POST to make life easier, similar to the feature where xml_cdr file is prefixed with a &#39;a_&#39;.</div><div><br></div><div>Cheers,</div><div><br></div>

<div>Michael</div><div><div><br></div><div> <br><br><div class="gmail_quote">On Tue, Mar 2, 2010 at 9:27 PM, Adam Ford <span dir="ltr">&lt;<a href="mailto:lists@redbonez.net">lists@redbonez.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">










<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal">Is there any way to tell whether it is the a-leg or b-leg
when receiving the POST data from mod_xml_cdr?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I wrote a parser in Python which parses the a_*.cdr.xml log files,
and only grabs the info in the associated b-leg log files if it needs
additional information(for example - in the case of a call that ends with mod_fifo). 
I want to adapt this to using the POST features of mod_xml_cdr so that it can
be real time. </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Any suggestions are greatly appreciated,</p>

<p class="MsoNormal">-Adam </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

</div>

</div>


<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></div>