[Freeswitch-users] How does Freeswitch CDR determine which gateway was used in failover?
David Ponzone
david.ponzone at gmail.com
Fri Apr 30 00:32:31 PDT 2010
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
tel: 01 74 03 18 97
gsm: 06 66 98 76 34
Service Client IPeva
tel: 0811 46 26 26
www.ipeva.fr - 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> 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
> >
> > 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
> >> 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
> > 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
> 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/f0c290d9/attachment.html
More information about the FreeSWITCH-users
mailing list