VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
alex at sinapticode.ro Guest
|
Posted: Fri Dec 12, 2008 1:42 pm Post subject: [Freeswitch-users] CDR logs - adding a custom field |
|
|
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?
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
|
Posted: Fri Dec 12, 2008 2:29 pm Post subject: [Freeswitch-users] CDR logs - adding a custom field |
|
|
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:
--
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
|
Posted: Fri Dec 12, 2008 2:54 pm Post subject: [Freeswitch-users] CDR logs - adding a custom field |
|
|
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. 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:
_______________________________________________
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
|
Posted: Fri Dec 12, 2008 3:17 pm Post subject: [Freeswitch-users] CDR logs - adding a custom field |
|
|
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. 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
|
Posted: Fri Dec 12, 2008 3:21 pm Post subject: [Freeswitch-users] CDR logs - adding a custom field |
|
|
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
|
Posted: Fri Dec 12, 2008 3:27 pm Post subject: [Freeswitch-users] CDR logs - adding a custom field |
|
|
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
|
Posted: Fri Dec 12, 2008 3:28 pm Post subject: [Freeswitch-users] CDR logs - adding a custom field |
|
|
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
|
Posted: Fri Dec 12, 2008 3:32 pm Post subject: [Freeswitch-users] CDR logs - adding a custom field |
|
|
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:
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Fri Dec 12, 2008 3:35 pm Post subject: [Freeswitch-users] CDR logs - adding a custom field |
|
|
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
_______________________________________________
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
|
Posted: Fri Dec 12, 2008 3:36 pm Post subject: [Freeswitch-users] CDR logs - adding a custom field |
|
|
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:
_______________________________________________
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 |
|
|
|
|
|
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
|