No I don't think you can do that. Sent from my iPhone
On Jan 27, 2015, at 00:51, Ben Hood <0x6e6562@gmail.com> wrote:
On Mon, Jan 26, 2015 at 8:00 PM, Ben Hood <0x6e6562@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§ion=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?