Don't you have to URL encode the & character?<div>-MC<br><br><div class="gmail_quote">On Mon, Dec 19, 2011 at 11:14 AM, Anders <span dir="ltr"><<a href="mailto:vaerge@gmail.com">vaerge@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am trying to originate a call, using a mod command through the<br>
xml_rpc, but I am doing something wrong - not sure what it is. I post<br>
this url:<br>
<br>
<a href="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)" target="_blank">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)</a><br>
<br>
(numbers and IPs modified here)<br>
<br>
The reponse I get is this: -USAGE: <call url><br>
<exten>|&<application_name>(<app_args>) [<dialplan>] [<context>]<br>
[<cid_name>] [<cid_num>] [<timeout_sec>]<br>
<br>
I can do other commands directly in the browser like this (such as<br>
<a href="http://1.2.3.4/webapi/show?calls" target="_blank">http://1.2.3.4/webapi/show?calls</a>) without any problems. Therefore my<br>
conclusion is that I am doing something wrong in this syntax for http.<br>
<br>
Any ideas?<br>
<br>
Thanks in advance!<br>
<br>
//Anders<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>