Multiple CDRS for Bridged calls from an IVR
Hi, I have written an IVR that prompts a user to Enter a Number and then the call is bridged to a particular gateway. If the user wishes to end the call early I have set the bridge_terminate_key=# variable and continue_on_fail=NORMAL_TEMPORARY_FAILURE so the dial plan continues which loops back to the IVR. For collection of CDRs, I'm using XML-CDR. The problem I'm having is that each call bridged to the gateway is not producing an individual CDR record and is instead adding the CDR information as additional records under callflow in the XML when the call to the IVR is finally terminated, instead of when each bridged call is terminated. I need to get the CDR information as the call is terminated for credit control purposes or in otherwords when the bridge is termated for XML-CDR to post the calls CDR. I have looked on the Freeswitch site for a solution to this and I have not. Is there a way that I can get information when each call ends? Hopefully someone will be able to help with this question. Thanks David
Try setting log-b-leg to true in xml_cdr.conf.xml, that should then generate CDRs for both the incoming call (aleg) and the outgoing calls from the bridge (bleg) You can match them using the UUID, and identify whether a CDR is an a-leg or b-leg from the value of <direction> (it will be either inbound or outbound). Hope that helps. -Steve On 19 July 2010 14:18, David Allen <david@virtutel.com.au> wrote:
Hi,
I have written an IVR that prompts a user to Enter a Number and then the call is bridged to a particular gateway. If the user wishes to end the call early I have set the bridge_terminate_key=# variable and continue_on_fail=NORMAL_TEMPORARY_FAILURE so the dial plan continues which loops back to the IVR. For collection of CDRs, I'm using XML-CDR.
The problem I'm having is that each call bridged to the gateway is not producing an individual CDR record and is instead adding the CDR information as additional records under callflow in the XML when the call to the IVR is finally terminated, instead of when each bridged call is terminated. I need to get the CDR information as the call is terminated for credit control purposes or in otherwords when the bridge is termated for XML-CDR to post the calls CDR.
I have looked on the Freeswitch site for a solution to this and I have not. Is there a way that I can get information when each call ends? Hopefully someone will be able to help with this question.
Thanks David
_______________________________________________ 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
Thanks - All Fixed. Regards, David On 20/07/2010 3:14 AM, Steven Ayre wrote:
Try setting log-b-leg to true in xml_cdr.conf.xml, that should then generate CDRs for both the incoming call (aleg) and the outgoing calls from the bridge (bleg)
You can match them using the UUID, and identify whether a CDR is an a-leg or b-leg from the value of <direction> (it will be either inbound or outbound).
Hope that helps.
-Steve
On 19 July 2010 14:18, David Allen <david@virtutel.com.au <mailto:david@virtutel.com.au>> wrote:
Hi,
I have written an IVR that prompts a user to Enter a Number and then the call is bridged to a particular gateway. If the user wishes to end the call early I have set the bridge_terminate_key=# variable and continue_on_fail=NORMAL_TEMPORARY_FAILURE so the dial plan continues which loops back to the IVR. For collection of CDRs, I'm using XML-CDR.
The problem I'm having is that each call bridged to the gateway is not producing an individual CDR record and is instead adding the CDR information as additional records under callflow in the XML when the call to the IVR is finally terminated, instead of when each bridged call is terminated. I need to get the CDR information as the call is terminated for credit control purposes or in otherwords when the bridge is termated for XML-CDR to post the calls CDR.
I have looked on the Freeswitch site for a solution to this and I have not. Is there a way that I can get information when each call ends? Hopefully someone will be able to help with this question.
Thanks David
_______________________________________________ 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
David Allen
-
Steven Ayre