Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Process_cdr question


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
vitolini at gmail.com
Guest





PostPosted: Sat Oct 04, 2008 7:23 am    Post subject: [Freeswitch-users] Process_cdr question Reply with quote

Let's say I am programatically initiating two calls and then bridging them together. If I have the dialplan as

originate sofia/example/300@foo.com &bridge(sofia/example/400@bar.com ([email]sofia/example/400@bar.com[/email]))

and have the process_cdr set to "true" which is the default.

I'd like to know how both cdr would look like...

Obviously the "b" leg will be logged starting right after "400" have answered the call... Which is fine....
Now would the "a" leg be logged starting right after its bridged to the "b" OR right after it picks up the call (even though "b" is being called or ringing at that moment)

The answer is important, because I am using VOIP for both calls, and the voip starts charging me soon as "a" picks up the phone, so i am wondering if I am able to get the same record into my cdr to process it or do I have to run some sort of magic?

Thanks,

Vito A.
Back to top
mike at jerris.com
Guest





PostPosted: Sat Oct 04, 2008 8:56 am    Post subject: [Freeswitch-users] Process_cdr question Reply with quote

On Oct 4, 2008, at 8:22 AM, Vito Andolini wrote:
Quote:
Let's say I am programatically initiating two calls and then bridging them together. If I have the dialplan as

originate sofia/example/300@foo.com ([email]sofia/example/300@foo.com[/email]) &bridge(sofia/example/400@bar.com ([email]sofia/example/400@bar.com[/email]))

and have the process_cdr set to "true" which is the default.

I'd like to know how both cdr would look like...

Obviously the "b" leg will be logged starting right after "400" have answered the call... Which is fine....
Now would the "a" leg be logged starting right after its bridged to the "b" OR right after it picks up the call (even though "b" is being called or ringing at that moment)

The answer is important, because I am using VOIP for both calls, and the voip starts charging me soon as "a" picks up the phone, so i am wondering if I am able to get the same record into my cdr to process it or do I have to run some sort of magic?

Thanks,

Vito A.





Why don't you look at the cdr and see? There are multiple fields in the cdr to represent when the session was created (INVITE), when it was answered (200) and when it hangs up (BYE). You get this timetable for each leg.


Mike
Back to top
vitolini at gmail.com
Guest





PostPosted: Sat Oct 04, 2008 3:23 pm    Post subject: [Freeswitch-users] Process_cdr question Reply with quote

Let's say I am programatically initiating two calls and then bridging them together. If I have the dialplan as

originate [url=blocked::mailto:sofia/example/300@foo.com]sofia/example/300@foo.com[/url] &bridge([url=blocked::mailto:sofia/example/400@bar.com]sofia/example/400@bar.com[/url])

and have the process_cdr set to "true" which is the default.

I'd like to know how both cdr would look like...

Obviously the "b" leg will be logged starting right after "400" have answered the call... Which is fine....
Now would the "a" leg be logged starting right after its bridged to the "b" OR right after it picks up the call (even though "b" is being called or ringing at that moment)

The answer is important, because I am using VOIP for both calls, and the voip starts charging me soon as "a" picks up the phone, so i am wondering if I am able to get the same record into my cdr to process it or do I have to run some sort of magic?

Thanks,

Vito A.
Back to top
mike at jerris.com
Guest





PostPosted: Sat Oct 04, 2008 3:35 pm    Post subject: [Freeswitch-users] Process_cdr question Reply with quote

On Oct 4, 2008, at 4:20 PM, Vito Andolini wrote:
Quote:
Let's say I am programatically initiating two calls and then bridging them together. If I have the dialplan as

originate [url=blocked::mailto:sofia/example/300@foo.com]sofia/example/300@foo.com[/url] &bridge([url=blocked::mailto:sofia/example/400@bar.com]sofia/example/400@bar.com[/url])

and have the process_cdr set to "true" which is the default.

I'd like to know how both cdr would look like...

Obviously the "b" leg will be logged starting right after "400" have answered the call... Which is fine....
Now would the "a" leg be logged starting right after its bridged to the "b" OR right after it picks up the call (even though "b" is being called or ringing at that moment)

The answer is important, because I am using VOIP for both calls, and the voip starts charging me soon as "a" picks up the phone, so i am wondering if I am able to get the same record into my cdr to process it or do I have to run some sort of magic?

Thanks,

Vito A.





Posting the same message to the mailing list twice is unlikely to get you different response. Why don't you try my suggestion?


Mike
Back to top
vitolini at gmail.com
Guest





PostPosted: Sat Oct 04, 2008 3:36 pm    Post subject: [Freeswitch-users] Process_cdr question Reply with quote

sorry I had an email from the admin about the mail and thought it was not posted, after posting it again i saw your answer... didn't want to be mean...

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris
Sent: Saturday, October 04, 2008 1:34 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Process_cdr question




On Oct 4, 2008, at 4:20 PM, Vito Andolini wrote:
Quote:
Let's say I am programatically initiating two calls and then bridging them together. If I have the dialplan as

originate [url=blocked::mailto:sofia/example/300@foo.com]sofia/example/300@foo.com[/url] &bridge([url=blocked::mailto:sofia/example/400@bar.com]sofia/example/400@bar.com[/url])

and have the process_cdr set to "true" which is the default.

I'd like to know how both cdr would look like...

Obviously the "b" leg will be logged starting right after "400" have answered the call... Which is fine....
Now would the "a" leg be logged starting right after its bridged to the "b" OR right after it picks up the call (even though "b" is being called or ringing at that moment)

The answer is important, because I am using VOIP for both calls, and the voip starts charging me soon as "a" picks up the phone, so i am wondering if I am able to get the same record into my cdr to process it or do I have to run some sort of magic?

Thanks,

Vito A.





Posting the same message to the mailing list twice is unlikely to get you different response. Why don't you try my suggestion?


Mike




No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.173 / Virus Database: 270.7.5/1705 - Release Date: 10/4/2008 11:35 AM
Back to top
brian at freeswitch.org
Guest





PostPosted: Sat Oct 04, 2008 3:39 pm    Post subject: [Freeswitch-users] Process_cdr question Reply with quote

Why not try it and look at the CDR? That should answer the question. The answer time on either leg shouldn't be till the B-Leg is answered so the times for answer should be the same.

/b

On Oct 4, 2008, at 3:20 PM, Vito Andolini wrote:
Quote:
Let's say I am programatically initiating two calls and then bridging them together. If I have the dialplan as

originate [url=blocked::mailto:sofia/example/300@foo.com]sofia/example/300@foo.com[/url] &bridge([url=blocked::mailto:sofia/example/400@bar.com]sofia/example/400@bar.com[/url])

and have the process_cdr set to "true" which is the default.

I'd like to know how both cdr would look like...

Obviously the "b" leg will be logged starting right after "400" have answered the call... Which is fine....
Now would the "a" leg be logged starting right after its bridged to the "b" OR right after it picks up the call (even though "b" is being called or ringing at that moment)

The answer is important, because I am using VOIP for both calls, and the voip starts charging me soon as "a" picks up the phone, so i am wondering if I am able to get the same record into my cdr to process it or do I have to run some sort of magic?

Thanks,

Vito A.
Back to top
vitolini at gmail.com
Guest





PostPosted: Sat Oct 04, 2008 3:47 pm    Post subject: [Freeswitch-users] Process_cdr question Reply with quote

what do you mean by look at the cdr?

I checked these 2 wiki pages bu tthey provide only SOME of the fields not all...
[url=BLOCKED::http://wiki.freeswitch.org/wiki/Mod_xml_cdr]http://wiki.freeswitch.org/wiki/Mod_xml_cdr[/url]
http://wiki.freeswitch.org/wiki/Mod_cdr_csv

I also checked the API section but couldn't find it...


Vito

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris
Sent: Saturday, October 04, 2008 6:55 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Process_cdr question




On Oct 4, 2008, at 8:22 AM, Vito Andolini wrote:
Quote:
Let's say I am programatically initiating two calls and then bridging them together. If I have the dialplan as

originate sofia/example/300@foo.com ([email]sofia/example/300@foo.com[/email]) &bridge(sofia/example/400@bar.com ([email]sofia/example/400@bar.com[/email]))

and have the process_cdr set to "true" which is the default.

I'd like to know how both cdr would look like...

Obviously the "b" leg will be logged starting right after "400" have answered the call... Which is fine....
Now would the "a" leg be logged starting right after its bridged to the "b" OR right after it picks up the call (even though "b" is being called or ringing at that moment)

The answer is important, because I am using VOIP for both calls, and the voip starts charging me soon as "a" picks up the phone, so i am wondering if I am able to get the same record into my cdr to process it or do I have to run some sort of magic?

Thanks,

Vito A.





Why don't you look at the cdr and see? There are multiple fields in the cdr to represent when the session was created (INVITE), when it was answered (200) and when it hangs up (BYE). You get this timetable for each leg.


Mike

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.173 / Virus Database: 270.7.5/1705 - Release Date: 10/3/2008 6:17 PM
Back to top
mike at jerris.com
Guest





PostPosted: Sat Oct 04, 2008 10:00 pm    Post subject: [Freeswitch-users] Process_cdr question Reply with quote

On Oct 4, 2008, at 4:45 PM, Vito Andolini wrote:
Quote:
what do you mean by look at the cdr?

I checked these 2 wiki pages bu tthey provide only SOME of the fields not all...
[url=BLOCKED::http://wiki.freeswitch.org/wiki/Mod_xml_cdr]http://wiki.freeswitch.org/wiki/Mod_xml_cdr[/url]
http://wiki.freeswitch.org/wiki/Mod_cdr_csv

I also checked the API section but couldn't find it...


Vito



We mean setup FreeSWITCH, make a call, look at the cdr.


Mike
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services