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
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>wrote:
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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
On Fri, 2008-12-12 at 13:18 -0600, Anthony Minessale wrote:
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
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:
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
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:
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.
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:
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, Dec 12, 2008 at 12:21 PM, Brian West <brian@freeswitch.org> wrote:
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
On Dec 12, 2008, at 2:14 PM, Alexandru Nedelcu wrote:
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
On Fri, Dec 12, 2008 at 12:14 PM, Alexandru Nedelcu <alex@sinapticode.ro> wrote:
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
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:
On Fri, Dec 12, 2008 at 12:14 PM, Alexandru Nedelcu <alex@sinapticode.ro> wrote:
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
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:
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:
On Fri, Dec 12, 2008 at 12:14 PM, Alexandru Nedelcu <alex@sinapticode.ro> wrote:
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
participants (5)
-
Alexandru Nedelcu
-
Anthony Minessale
-
Brian West
-
Michael Collins
-
Shelby Ramsey