Hi, I wanted to do a REST API call for determining the outgoing number for bridge application. My REST API call response is { - phone: "+1415800000" } How can I parse my response and get the phone number in my dialplan? I am right now using mod_curl. -- Thanks and Regards, Ashwin Jain
make your API to response a plain test string, or parse anything use lua or javascript etc. On Saturday, November 16, 2013 at 6:52 PM, Ashwin Jain wrote:
Hi,
I wanted to do a REST API call for determining the outgoing number for bridge application. My REST API call response is
{ phone: "+1415800000"
}
How can I parse my response and get the phone number in my dialplan? I am right now using mod_curl.
-- Thanks and Regards, Ashwin Jain _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto: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 (mailto: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
Is their anyway I can tokenize string? I will change the return type to plain text string as CSV. I want to return multiple key value pairs and set in the dialplan so that they can be inserted in CDR. On Sat, Nov 16, 2013 at 5:58 PM, Seven Du <dujinfang@gmail.com> wrote:
make your API to response a plain test string, or parse anything use lua or javascript etc.
On Saturday, November 16, 2013 at 6:52 PM, Ashwin Jain wrote:
Hi,
I wanted to do a REST API call for determining the outgoing number for bridge application. My REST API call response is
{
- phone: "+1415800000"
}
How can I parse my response and get the phone number in my dialplan? I am right now using mod_curl.
-- Thanks and Regards, Ashwin Jain _________________________________________________________________________ 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
_________________________________________________________________________ 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
-- Thanks and Regards, Ashwin Jain
participants (2)
-
Ashwin Jain
-
Seven Du