Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] CDR logs - adding a custom field


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





PostPosted: Fri Dec 12, 2008 1:42 pm    Post subject: [Freeswitch-users] CDR logs - adding a custom field Reply with quote

In Asterisk I was able to set a custom CDR field by doing something
like:
Set(CDR(userfield)=${SOMETHING})

I need to set a custom field in FreeSwitch, and preferably I want to
have control over its value from Javascript.

Can someone tell me how? Smile

Thanks,

--
Alexandru Nedelcu
Software Developer, Sinapticode


_______________________________________________
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
Back to top
anthony.minessale at g...
Guest





PostPosted: Fri Dec 12, 2008 2:29 pm    Post subject: [Freeswitch-users] CDR logs - adding a custom field Reply with quote

Yes, I'm familiar with that since i invented that feature for Asterisk =D


In FreeSWITCH, All variables are already available from the cdr
just set regular channel variables.

for xml cdr they are all there right away
for csv cdr you can reference any channel variable in your template.




On Fri, Dec 12, 2008 at 12:37 PM, Alexandru Nedelcu <alex@sinapticode.ro (alex@sinapticode.ro)> wrote:
Quote:
In Asterisk I was able to set a custom CDR field by doing something
like:
Set(CDR(userfield)=${SOMETHING})

I need to set a custom field in FreeSwitch, and preferably I want to
have control over its value from Javascript.

Can someone tell me how? Smile

Thanks,

--
Alexandru Nedelcu
Software Developer, Sinapticode


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Dec 12, 2008 2:54 pm    Post subject: [Freeswitch-users] CDR logs - adding a custom field Reply with quote

Are you using CSV or XML? The reason I ask is because I personally use
XML and I find that having lots of information (even too much) is
better than not enough. The only drawback to XML that I find is that
you have to know how to parse it properly. Smile The level of detail in
the XML CDRs is unmatched by any telephony system I've ever
encountered. I highly recommend it.

Also, check out this wiki page if you haven't already:
http://wiki.freeswitch.org/wiki/Mod_xml_cdr

-MC

On Fri, Dec 12, 2008 at 10:37 AM, Alexandru Nedelcu <alex@sinapticode.ro> wrote:
Quote:
In Asterisk I was able to set a custom CDR field by doing something
like:
Set(CDR(userfield)=${SOMETHING})

I need to set a custom field in FreeSwitch, and preferably I want to
have control over its value from Javascript.

Can someone tell me how? Smile

Thanks,

--
Alexandru Nedelcu
Software Developer, Sinapticode


_______________________________________________
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
Back to top
alex at sinapticode.ro
Guest





PostPosted: Fri Dec 12, 2008 3:17 pm    Post subject: [Freeswitch-users] CDR logs - adding a custom field Reply with quote

Thanks Michael,

I'm going to use XML, since I don't really know what variables I want.
Another problem with CSV is that many people parse them with regular
expressions and scripts break when you add a new column.


On Fri, 2008-12-12 at 11:50 -0800, Michael Collins wrote:
Quote:
Are you using CSV or XML? The reason I ask is because I personally use
XML and I find that having lots of information (even too much) is
better than not enough. The only drawback to XML that I find is that
you have to know how to parse it properly. Smile The level of detail in
the XML CDRs is unmatched by any telephony system I've ever
encountered. I highly recommend it.


_______________________________________________
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
Back to top
alex at sinapticode.ro
Guest





PostPosted: Fri Dec 12, 2008 3:21 pm    Post subject: [Freeswitch-users] CDR logs - adding a custom field Reply with quote

On Fri, 2008-12-12 at 13:18 -0600, Anthony Minessale wrote:
Quote:
Yes, I'm familiar with that since i invented that feature for Asterisk
=D


In FreeSWITCH, All variables are already available from the cdr
just set regular channel variables.

for xml cdr they are all there right away
for csv cdr you can reference any channel variable in your template.


Thank you Anthony,

In case someone wants to know how to set channel variables, there's a
link on the wiki here: http://wiki.freeswitch.org/wiki/Channel_Variables



_______________________________________________
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
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Dec 12, 2008 3:27 pm    Post subject: [Freeswitch-users] CDR logs - adding a custom field Reply with quote

On Fri, Dec 12, 2008 at 12:14 PM, Alexandru Nedelcu <alex@sinapticode.ro> wrote:
Quote:
Thanks Michael,

I'm going to use XML, since I don't really know what variables I want.
Another problem with CSV is that many people parse them with regular
expressions and scripts break when you add a new column.


This is true. If you build a proper parser for your XML it will easily
be able to handle new channel variables.
-MC

_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Dec 12, 2008 3:28 pm    Post subject: [Freeswitch-users] CDR logs - adding a custom field Reply with quote

What I think would be neat is to have a perl script to parse the XML
cdr and spit out a graphic of the call path... now that would be neat.
/b

On Dec 12, 2008, at 2:14 PM, Alexandru Nedelcu wrote:

Quote:
Thanks Michael,

I'm going to use XML, since I don't really know what variables I want.
Another problem with CSV is that many people parse them with regular
expressions and scripts break when you add a new column.


_______________________________________________
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
Back to top
sicfslist at gmail.com
Guest





PostPosted: Fri Dec 12, 2008 3:32 pm    Post subject: [Freeswitch-users] CDR logs - adding a custom field Reply with quote

Are there any good examples floating around of XML parsers for this to dump to MySQL?

On Fri, Dec 12, 2008 at 2:22 PM, Michael Collins <msc@freeswitch.org (msc@freeswitch.org)> wrote:
Quote:
On Fri, Dec 12, 2008 at 12:14 PM, Alexandru Nedelcu <alex@sinapticode.ro (alex@sinapticode.ro)> wrote:
Quote:
Thanks Michael,

I'm going to use XML, since I don't really know what variables I want.
Another problem with CSV is that many people parse them with regular
expressions and scripts break when you add a new column.



This is true. If you build a proper parser for your XML it will easily
be able to handle new channel variables.
-MC


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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


Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Dec 12, 2008 3:35 pm    Post subject: [Freeswitch-users] CDR logs - adding a custom field Reply with quote

On Fri, Dec 12, 2008 at 12:21 PM, Brian West <brian@freeswitch.org> wrote:
Quote:
What I think would be neat is to have a perl script to parse the XML
cdr and spit out a graphic of the call path... now that would be neat.
/b

I think that is a great idea. I was kicking that around as an add-on
feature to a simple CDR database. For example, when browsing the db
for calls, you could click a link that says "view call path" and it
would print a nice purty graph/chart of the call flow. I'll put that
on my rainy-day list...

-MC

Quote:

On Dec 12, 2008, at 2:14 PM, Alexandru Nedelcu wrote:

Quote:
Thanks Michael,

I'm going to use XML, since I don't really know what variables I want.
Another problem with CSV is that many people parse them with regular
expressions and scripts break when you add a new column.


_______________________________________________
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
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Dec 12, 2008 3:36 pm    Post subject: [Freeswitch-users] CDR logs - adding a custom field Reply with quote

I don't know about "good" examples. I just hacked together a perl
script to extract the very specific elements for my application. If
anyone out there has a sample XML-to-db parser that would be very
welcomed...
-MC

On Fri, Dec 12, 2008 at 12:28 PM, Shelby Ramsey <sicfslist@gmail.com> wrote:
Quote:
Are there any good examples floating around of XML parsers for this to dump
to MySQL?

On Fri, Dec 12, 2008 at 2:22 PM, Michael Collins <msc@freeswitch.org> wrote:
Quote:

On Fri, Dec 12, 2008 at 12:14 PM, Alexandru Nedelcu <alex@sinapticode.ro>
wrote:
Quote:
Thanks Michael,

I'm going to use XML, since I don't really know what variables I want.
Another problem with CSV is that many people parse them with regular
expressions and scripts break when you add a new column.


This is true. If you build a proper parser for your XML it will easily
be able to handle new channel variables.
-MC

_______________________________________________
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
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