signalwire / freeswitch

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
https://freeswitch.com/#getting-started
Other
3.54k stars 1.41k forks source link

[mod_httapi] unable to do getVariable #2462

Open surabhigarg1234 opened 4 months ago

surabhigarg1234 commented 4 months ago

I have enabled required permission in httapi.conf.xml

<permission name="all" value="true"/>

and when I am trying to do get varaible from freeswitch it is working fine..

fs_cli -x "uuid_getvar d4d773aa-5d7f-495d-b49e-a1bbe88332f3 R_ANI"
1

Only when I am trying to fetch using getVariable in httapi it not working, getting blank data. <getVariable name="R_ANI"/>

please help me if I am missing anything here.

Also, when I am enabling same variable in enable-post-var it works fine <param name="enable-post-var" value="R_ANI"/>

surabhigarg1234 commented 2 months ago

Hi Team, any update here would be helpful.

anthmFS commented 2 months ago

do you have the get-vars configured right in httapi.conf.xml per the sample configs?