VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
adrian at a2es.co.uk Guest
|
Posted: Fri Dec 23, 2022 4:58 pm Post subject: [Freeswitch-users] mod_python3 - python_fetch |
|
|
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 |
|
Back to top |
|
|
adrian at a2es.co.uk Guest
|
Posted: Wed Dec 28, 2022 8:32 am Post subject: [Freeswitch-users] mod_python3 - python_fetch |
|
|
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:
Quote: |
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
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|