[Freeswitch-users] Configuring request parameters with mod_xml_curl

Ben Hood 0x6e6562 at gmail.com
Tue Jan 27 00:51:29 MSK 2015


On Mon, Jan 26, 2015 at 8:00 PM, Ben Hood <0x6e6562 at gmail.com> wrote:
> Aha - does enable-post-var also work when you're using the GET method,
> or do you also have to use POST to enable this?

I found out by trial and error that by specifying a request parameter
per enable-post-var entry, I could effectively cherry pick the request
even using the GET method. For example, adding these two lines:

<param name="enable-post-var" value="variable_sip_to_user"/>
<param name="enable-post-var" value="variable_sip_from_user_stripped"/>

Results in the following request:

data: [hostname=x&section=dialplan&tag_name=&key_name=&key_value=&variable_sip_from_user_stripped=1234567890&variable_sip_to_user=0987654321]

So thank you very much for the tip off.

Do you happen to know how I could even get rid of the empty tag_name,
key_name and key_value request parameters?



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list