[Freeswitch-users] How does Freeswitch CDR determine which gateway was used in failover?
Michael Giagnocavo
mgg at giagnocavo.net
Fri Apr 30 02:09:59 PDT 2010
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.
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.
-Michael
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael Collins
Sent: Friday, April 30, 2010 1:55 AM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] How does Freeswitch CDR determine which gateway was used in failover?
It's late and I can'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? :)
-MC
On Fri, Apr 30, 2010 at 12:32 AM, David Ponzone <david.ponzone at gmail.com<mailto:david.ponzone at gmail.com>> wrote:
Frank,
first of all, be sure you enabled writing leg B to CDR. If you don't, you won't see a gateway in there anytime soon.
In CSV CDR, you can change the template used by adding the field ${sip_gateway_name}.
In XML CDR, you get this variable automatically, of course only in the leg B file.
David Ponzone Direction Technique
email: david.ponzone at ipeva.fr<mailto:david.ponzone at ipeva.fr>
tel: 01 74 03 18 97
gsm: 06 66 98 76 34
Service Client IPeva
tel: 0811 46 26 26
www.ipeva.fr<http://www.ipeva.fr> - www.ipeva-studio.com<http://www.ipeva-studio.com>
Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 30/04/2010 à 09:06, Frank Church a écrit :
I am not sure if you misunderstood my question.
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.
<include>
<context name="external">
<extension name="external_outbound">
<condition field="destination_number" expression="(.*)">
<!-- <action application="set" data="proxy_media=true"/> -->
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="originate_timeout=2"/>
<action application="set" data="originate_retries=1"/>
<action application="set" data="progress_timeout=15"/>
<action application="set" data="call_timeout=35"/>
<action application="set" data="proxy_media=true"/>
<action application="bridge" data="sofia/gateway/provider1/$1|sofia/gateway/provider2/$1|sofia/gateway/provider3/$1" />
</condition>
</extension>
</context>
</include>
On 30 April 2010 04:09, Rupa Schomaker <rupa at rupa.com<mailto:rupa at rupa.com>> wrote:
> set a var for each leg, this is how I do it in mod_lcr:
> [gateway=foo]sofia/gateway/foo/$1|[gateway=bar]sofia/gateway/bar/$1
>
> On Thu, Apr 29, 2010 at 8:20 PM, Frank Church <vfclists at googlemail.com<mailto:vfclists at googlemail.com>>
> wrote:
>>
>> How does Freeswitch CDR determine which gateway was used in failover?
>>
>> I am looking at the xml cdr and cdr_csv and they don't appear to show
>> which gateway was used in the bridge data.
>>
>> Is there a separate uuid for each bridging attempt, that can be
>> obtained from the CDR, or the event socket as last resort?
>>
>> --
>> Frank Church
>>
>> =======================
>> http://devblog.brahmancreations.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
>
>
>
> --
> -Rupa
>
> _______________________________________________
> 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
>
>
--
Frank Church
=======================
http://devblog.brahmancreations.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
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100430/a3e02645/attachment.html
More information about the FreeSWITCH-users
mailing list