How does Freeswitch CDR determine which gateway was used in failover?
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
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@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@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
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@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@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@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@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
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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-users
-- -Rupa
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Friday, April 30, 2010 1:55 AM To: freeswitch-users@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@gmail.com<mailto:david.ponzone@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@ipeva.fr<mailto:david.ponzone@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@rupa.com<mailto:rupa@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@googlemail.com<mailto:vfclists@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@lists.freeswitch.org<mailto:FreeSWITCH-users@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@lists.freeswitch.org<mailto:FreeSWITCH-users@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@lists.freeswitch.org<mailto:FreeSWITCH-users@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@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On 30 April 2010 10:09, Michael Giagnocavo <mgg@giagnocavo.net> wrote:
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.
Could you show me an example of the above? 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. Is this the problem you are describing http://jira.freeswitch.org/browse/FSCORE-565 ? Is the copy_xml_cdr the stuff implemented by xml_copy_cdr in the thread?
-Michael
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Michael Collins *Sent:* Friday, April 30, 2010 1:55 AM *To:* freeswitch-users@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-users
-- -Rupa
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@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@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@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@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
Oh, what I meant was setting a channel variable like "Now_calling_gateway=foo", then doing the bridge. I do not know of any simple way that drops all the b-leg GUIDs onto the a-leg XML. But, now that you mention it, this would be a smart thing to do. Then we can just scan a-leg XML, and wait for all b-legs to arrive. -Michael From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Frank Church Sent: Friday, April 30, 2010 7:42 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How does Freeswitch CDR determine which gateway was used in failover? On 30 April 2010 10:09, Michael Giagnocavo <mgg@giagnocavo.net<mailto:mgg@giagnocavo.net>> wrote: 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. Could you show me an example of the above? 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. Is this the problem you are describing http://jira.freeswitch.org/browse/FSCORE-565 ? Is the copy_xml_cdr the stuff implemented by xml_copy_cdr in the thread? -Michael From: freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org>] On Behalf Of Michael Collins Sent: Friday, April 30, 2010 1:55 AM To: freeswitch-users@lists.freeswitch.org<mailto:freeswitch-users@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@gmail.com<mailto:david.ponzone@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@ipeva.fr<mailto:david.ponzone@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@rupa.com<mailto:rupa@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@googlemail.com<mailto:vfclists@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@lists.freeswitch.org<mailto:FreeSWITCH-users@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@lists.freeswitch.org<mailto:FreeSWITCH-users@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@lists.freeswitch.org<mailto:FreeSWITCH-users@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@lists.freeswitch.org<mailto:FreeSWITCH-users@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@lists.freeswitch.org<mailto:FreeSWITCH-users@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
Could that by any chance be referring to this thread - http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg09429.h... On 30 April 2010 08:55, Michael Collins <msc@freeswitch.org> wrote:
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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-users
-- -Rupa
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@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@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@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@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
participants (5)
-
David Ponzone
-
Frank Church
-
Michael Collins
-
Michael Giagnocavo
-
Rupa Schomaker