I added the sip_h-X-crm_data variable to FSClient and then updated the FS Server's dialplan to use ${sip_h-X-crm_data} for the voice recording name...voila... pure magic! Many thanks! -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Mitch Capper Sent: 23 October 2012 04:40 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Best way to pass CRM data from FSClient into Freeswitch? you can add variables however variables by default are not transmitted to the server. You would want to add sip headers most likely (variable_sip_h_x) which then would be (I believe). ~mitch On Tue, Oct 23, 2012 at 6:45 AM, <roland@callrica.co.za> wrote:
Further to my email, I've been stepping thru the FSClient code, and I see all calls are made using this syntax:
{origination_caller_id_name='MyCallerIDName',origination_caller_id_num ber='M yCallerIDNumber'}sofia/gateway/1/5000
Can I add my own variables e.g.
{origination_caller_id_name='MyCallerIDName',origination_caller_id_num ber='M yCallerIDNumber', crm_accountid='1234', crm_contactname='johnsmith'}sofia/gateway/1/5000
And use the FS server dialplan to extract them into variables I can use in CDR and Voice recording?
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of roland@callrica.co.za Sent: 18 October 2012 02:22 PM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] Best way to pass CRM data from FSClient into Freeswitch?
Hi Freeswitch Team,
I'm looking for advice on how to pass CRM related information from a FSClient to a Freeswitch server and use that data to customise the voice recording file name and CDR
The use case is like this:
1. User starts softphone and dials a contact from his contact list e.g. John Smith
2. Softphone passes CRM Data e.g. "John Smith" with call into Freeswitch
3. Freeswitch switches the call and records the conversation
4. Freeswitch labels the recording filename as "John Smith_SomeDateTime.wav"
5. Freeswitch tags the CDR with "John Smith" and call duration, start time etc...
I would like all the voice recordings and CDRs to be stored on the FS Server.
Is it possible for the FSClient to embed the CRM data in the SIP message, and the FS server extract it into variables for use in the dial plan?
Very new to all this, so any pointers would be much appreciated.
Rgds
______________________________________________________________________ ___ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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-use rs http://www.freeswitch.org
______________________________________________________________________ ___ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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-use rs http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com 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