Hi, I am trying to originate a call, using a mod command through the xml_rpc, but I am doing something wrong - not sure what it is. I post this url: http://1.2.3.4/webapi/originate?{origination_caller_id_number=14007654321}sofia/carriers/111#18001234567@4.5.6.7%20&playback(/vr/migstory.wav) (numbers and IPs modified here) The reponse I get is this: -USAGE: <call url> <exten>|&<application_name>(<app_args>) [<dialplan>] [<context>] [<cid_name>] [<cid_num>] [<timeout_sec>] I can do other commands directly in the browser like this (such as http://1.2.3.4/webapi/show?calls) without any problems. Therefore my conclusion is that I am doing something wrong in this syntax for http. Any ideas? Thanks in advance! //Anders
Don't you have to URL encode the & character? -MC On Mon, Dec 19, 2011 at 11:14 AM, Anders <vaerge@gmail.com> wrote:
Hi,
I am trying to originate a call, using a mod command through the xml_rpc, but I am doing something wrong - not sure what it is. I post this url:
(numbers and IPs modified here)
The reponse I get is this: -USAGE: <call url> <exten>|&<application_name>(<app_args>) [<dialplan>] [<context>] [<cid_name>] [<cid_num>] [<timeout_sec>]
I can do other commands directly in the browser like this (such as http://1.2.3.4/webapi/show?calls) without any problems. Therefore my conclusion is that I am doing something wrong in this syntax for http.
Any ideas?
Thanks in advance!
//Anders
_________________________________________________________________________ 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
You were right - thanks a lot. I did URL encoding on the whole thing and it (almost) worked. For some reason it decided that the space before '&' should be encoded to + but I changed that manually to %20, and it worked. Now, I just need to understand how I can originate a call to use the lcr and not a specific carrier...pointers? Thanks! On Mon, Dec 19, 2011 at 1:56 PM, Michael Collins <msc@freeswitch.org> wrote:
Don't you have to URL encode the & character? -MC
On Mon, Dec 19, 2011 at 11:14 AM, Anders <vaerge@gmail.com> wrote:
Hi,
I am trying to originate a call, using a mod command through the xml_rpc, but I am doing something wrong - not sure what it is. I post this url:
(numbers and IPs modified here)
The reponse I get is this: -USAGE: <call url> <exten>|&<application_name>(<app_args>) [<dialplan>] [<context>] [<cid_name>] [<cid_num>] [<timeout_sec>]
I can do other commands directly in the browser like this (such as http://1.2.3.4/webapi/show?calls) without any problems. Therefore my conclusion is that I am doing something wrong in this syntax for http.
Any ideas?
Thanks in advance!
//Anders
_________________________________________________________________________ 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
You could use loopback and send it to an extension that calls lcr, or you could use the inline dialplan and create an epic URL that does it all in one go. :) -MC On Mon, Dec 19, 2011 at 1:22 PM, Anders <vaerge@gmail.com> wrote:
You were right - thanks a lot. I did URL encoding on the whole thing and it (almost) worked. For some reason it decided that the space before '&' should be encoded to + but I changed that manually to %20, and it worked. Now, I just need to understand how I can originate a call to use the lcr and not a specific carrier...pointers? Thanks! On Mon, Dec 19, 2011 at 1:56 PM, Michael Collins <msc@freeswitch.org> wrote:
Don't you have to URL encode the & character? -MC
On Mon, Dec 19, 2011 at 11:14 AM, Anders <vaerge@gmail.com> wrote:
Hi,
I am trying to originate a call, using a mod command through the xml_rpc, but I am doing something wrong - not sure what it is. I post this url:
(numbers and IPs modified here)
The reponse I get is this: -USAGE: <call url> <exten>|&<application_name>(<app_args>) [<dialplan>] [<context>] [<cid_name>] [<cid_num>] [<timeout_sec>]
I can do other commands directly in the browser like this (such as http://1.2.3.4/webapi/show?calls) without any problems. Therefore my conclusion is that I am doing something wrong in this syntax for http.
Any ideas?
Thanks in advance!
//Anders
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
_________________________________________________________________________ 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
participants (2)
-
Anders
-
Michael Collins