[Freeswitch-users] originate via rpc

Michael Collins msc at freeswitch.org
Mon Dec 19 22:56:50 MSK 2011


Don't you have to URL encode the & character?
-MC

On Mon, Dec 19, 2011 at 11:14 AM, Anders <vaerge at 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:
>
>
> 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
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111219/a349147a/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list