[Freeswitch-users] mod_python3 - python_fetch

Adrian Fretwell adrian at a2es.co.uk
Wed Dec 28 13:18:21 UTC 2022


Hello One & All,

Just an update.  I believe I have solved this.  I have created the 
following pull request:

https://github.com/signalwire/freeswitch/pull/1908

If anyone can see a better or more efficient way of doing this, please 
let me know.


Kind regards,

Adrian Fretwell

On 23/12/2022 21:51, Adrian Fretwell wrote:
>
> Hello,
>
> I notice that in mod_python3.c there are some parameters passed to the 
> python_fetch function that do not appear to be used:
>
> static switch_xml_t python_fetch(const char *section, const char 
> *tag_name, const char *key_name, const char *key_value, switch_event_t 
> *params, void *user_data)
>
> section, tag_name, key_name and key_vlaue do not appear to be passed 
> into the python interpreter  Where as in the lua language equivalent 
> they are passed through.
>
> Can anyone help me work out how to get these variables made visible 
> within the python environment?  I believe there are key to making a 
> python based xml handler.
>
> Any help greatly appreciated.
>
>
> -- 
> Kind regards,
>
> Adrian Fretwell
>
>
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWirehttps://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real timehttps://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://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
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20221228/03cc28e5/attachment.html>


More information about the FreeSWITCH-users mailing list