<br><br><div class="gmail_quote">On 30 April 2010 10:09, Michael Giagnocavo <span dir="ltr">&lt;<a href="mailto:mgg@giagnocavo.net">mgg@giagnocavo.net</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 link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">There is/was a feature that did this: copy_xml_cdr, which sticks the b-leg CDR into the a-leg XML as a channel var. In practice I’ve found it sometimes just doesn’t work, so don’t use it if it’s still there. There’s also failed_xml_cdr_prefix which will write the failed b-legs into the main CDR. But I’m seeing a bug there too, where sometimes the b-leg CDR XML gets truncated. I have to do more research and I’ll open a jira on it.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">If you don’t need the full b-leg CDR, it’ll make your life a lot easier to just track the few pieces of info you need right on the a-leg by setting variables before bridging. <br>
</span></p></div></div></blockquote><div><br>Could you show me an example of the above?<br><br>I am right the CDR into a database immediately and now it looks like I have to save the b-leg and wait for the a-leg to come through before I can match them. I would love the a-leg cdr to show which b-leg succeeded though.<br>
 <br>Is this the  problem you are describing <a href="http://jira.freeswitch.org/browse/FSCORE-565">http://jira.freeswitch.org/browse/FSCORE-565</a> ?<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
Is the <span style="font-size: 11pt; color: rgb(31, 73, 125);">copy_xml_cdr the stuff implemented by </span>xml_copy_cdr in the thread?<br></blockquote><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">-Michael</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Michael Collins<br>
<b>Sent:</b> Friday, April 30, 2010 1:55 AM<br><b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br><b>Subject:</b> Re: [Freeswitch-users] How does Freeswitch CDR determine which gateway was used in failover?</span></p>
<div><div></div><div class="h5"><p class="MsoNormal"> </p><p class="MsoNormal" style="margin-bottom: 12pt;">It&#39;s late and I can&#39;t seem to locate it right now but Mathieu Rene mentioned that there was a way to embed the b-leg cdr into the a leg cdr. Math, am I losing it? :)<br>
<br>-MC</p><div><p class="MsoNormal">On Fri, Apr 30, 2010 at 12:32 AM, David Ponzone &lt;<a href="mailto:david.ponzone@gmail.com" target="_blank">david.ponzone@gmail.com</a>&gt; wrote:</p><div><p class="MsoNormal">Frank,</p>
<div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">first of all, be sure you enabled writing leg B to CDR. If you don&#39;t, you won&#39;t see a gateway in there anytime soon.</p></div><div><p class="MsoNormal">
 </p></div><div><p class="MsoNormal">In CSV CDR, you can change the template used by adding the field ${sip_gateway_name}.</p></div><div><p class="MsoNormal">In XML CDR, you get this variable automatically, of course only in the leg B file.</p>
</div><div><p class="MsoNormal"> </p><div><div><div><div><p class="MsoNormal"><span style="font-size: 10.5pt;">David Ponzone  </span><span style="font-size: 9pt;">Direction Technique</span><span style="font-size: 10.5pt; color: black;"></span></p>
</div><div><p class="MsoNormal"><span style="font-size: 10pt;">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span><span style="font-size: 10.5pt; color: black;"></span></p></div>
<div><p class="MsoNormal"><span style="font-size: 10pt;">tel:      01 74 03 18 97</span><span style="font-size: 10.5pt; color: black;"></span></p></div><div><p class="MsoNormal"><span style="font-size: 10pt;">gsm:   06 66 98 76 34</span><span style="font-size: 10.5pt; color: black;"></span></p>
</div><div><p class="MsoNormal"><span style="font-size: 10.5pt; color: black;"> </span></p></div><div><p class="MsoNormal"><span style="font-size: 10.5pt;">Service Client </span><span style="font-size: 10.5pt;">IP</span><span style="font-size: 10.5pt;">eva</span><span style="font-size: 10.5pt; color: black;"></span></p>
</div><div><div><p class="MsoNormal"><span style="font-size: 10pt;">tel:      0811 46 26 26</span><span style="font-size: 10.5pt; color: black;"></span></p></div><div><div><p class="MsoNormal"><u><span style="font-size: 10pt;"><a href="http://www.ipeva.fr" target="_blank">www.ipeva.fr</a></span></u><span style="font-size: 10pt;">  -   </span><u><span style="font-size: 10pt;"><a href="http://www.ipeva-studio.com" target="_blank">www.ipeva-studio.com</a></span></u><span style="font-size: 10pt;"></span></p>
</div><div><p class="MsoNormal"><span style="font-size: 10pt;"> </span></p></div><div><p class="MsoNormal" style="text-align: justify;"><i><span style="font-size: 10pt;">Ce message et toutes les pièces jointes sont confidentiels et établis à l&#39;intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d&#39;altération. <b>IPeva</b> décline toute responsabilité au titre de ce message s&#39;il a été altéré, déformé ou falsifié. Si vous n&#39;êtes pas destinataire de ce message, merci de le détruire immédiatement et d&#39;avertir l&#39;expéditeur.</span></i><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal" style="text-align: justify;"><u><span style="font-size: 10pt;"><span style="text-decoration: none;"> </span></span></u></p></div></div></div></div><p class="MsoNormal"><span style="font-size: 10.5pt; color: black;"> </span></p>
</div><p class="MsoNormal"> </p></div><p class="MsoNormal"> </p><div><div><p class="MsoNormal">Le 30/04/2010 à 09:06, Frank Church a écrit :</p></div><div><div><p class="MsoNormal"><br><br></p><p class="MsoNormal" style="margin-bottom: 12pt;">
I am not sure if you misunderstood my question.<br><br>The XML provided by mod_xml_cdr does not tell which gateway succeeded. When I use a single gateway without failover I know the gateway specified in lastapp was used. When I use failover the last_app string contains all the gateways. I am looking for a value which tells which gateway was used.</p>
<p class="MsoNormal">&lt;include&gt;<br>  &lt;context name=&quot;external&quot;&gt;<br>      &lt;extension name=&quot;external_outbound&quot;&gt;<br>        &lt;condition field=&quot;destination_number&quot; expression=&quot;(.*)&quot;&gt; <br>
            &lt;!-- &lt;action application=&quot;set&quot; data=&quot;proxy_media=true&quot;/&gt; --&gt;<br>            &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>            &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br>
            &lt;action application=&quot;set&quot; data=&quot;originate_timeout=2&quot;/&gt;<br>            &lt;action application=&quot;set&quot; data=&quot;originate_retries=1&quot;/&gt;<br>            &lt;action application=&quot;set&quot; data=&quot;progress_timeout=15&quot;/&gt;<br>
            &lt;action application=&quot;set&quot; data=&quot;call_timeout=35&quot;/&gt;<br>            &lt;action application=&quot;set&quot; data=&quot;proxy_media=true&quot;/&gt;<br>            &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/provider1/$1|sofia/gateway/provider2/$1|sofia/gateway/provider3/$1&quot; /&gt; <br>
        &lt;/condition&gt;    <br>      &lt;/extension&gt;    <br>  &lt;/context&gt;<br>&lt;/include&gt;</p><p class="MsoNormal"><br><br><br>On 30 April 2010 04:09, Rupa Schomaker &lt;<a href="mailto:rupa@rupa.com" target="_blank">rupa@rupa.com</a>&gt; wrote:<br>
&gt; set a var for each leg, this is how I do it in mod_lcr:<br>&gt; [gateway=foo]sofia/gateway/foo/$1|[gateway=bar]sofia/gateway/bar/$1<br>&gt;<br>&gt; On Thu, Apr 29, 2010 at 8:20 PM, Frank Church &lt;<a href="mailto:vfclists@googlemail.com" target="_blank">vfclists@googlemail.com</a>&gt;<br>
&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; How does Freeswitch CDR determine which gateway was used in failover?<br>&gt;&gt;<br>&gt;&gt; I am looking at the xml cdr and cdr_csv and they don&#39;t appear to show<br>&gt;&gt; which gateway was used in the bridge data.<br>
&gt;&gt;<br>&gt;&gt; Is there a separate uuid for each bridging attempt, that can be<br>&gt;&gt; obtained from the  CDR,  or the event socket as last resort?<br>&gt;&gt;<br>&gt;&gt; --<br>&gt;&gt; Frank Church<br>&gt;&gt;<br>
&gt;&gt; =======================<br>&gt;&gt; <a href="http://devblog.brahmancreations.com" target="_blank">http://devblog.brahmancreations.com</a><br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>
&gt;&gt; FreeSWITCH-users mailing list<br>&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; -Rupa<br>&gt;<br>&gt; _______________________________________________<br>&gt; FreeSWITCH-users mailing list<br>&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>&gt;<br>&gt;<br><br><br><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com" target="_blank">http://devblog.brahmancreations.com</a><br>
<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></p>
</div></div></div><p class="MsoNormal"> </p></div></div><p class="MsoNormal" style="margin-bottom: 12pt;"><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></p></div><p class="MsoNormal"> </p></div></div></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><br clear="all"><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a><br>